Searched refs:DstTy (Results 1 - 25 of 25) sorted by relevance

/external/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h222 GenericValue executeTruncInst(Value *SrcVal, Type *DstTy,
224 GenericValue executeSExtInst(Value *SrcVal, Type *DstTy,
226 GenericValue executeZExtInst(Value *SrcVal, Type *DstTy,
228 GenericValue executeFPTruncInst(Value *SrcVal, Type *DstTy,
230 GenericValue executeFPExtInst(Value *SrcVal, Type *DstTy,
232 GenericValue executeFPToUIInst(Value *SrcVal, Type *DstTy,
234 GenericValue executeFPToSIInst(Value *SrcVal, Type *DstTy,
236 GenericValue executeUIToFPInst(Value *SrcVal, Type *DstTy,
238 GenericValue executeSIToFPInst(Value *SrcVal, Type *DstTy,
240 GenericValue executePtrToIntInst(Value *SrcVal, Type *DstTy,
[all...]
H A DExecution.cpp1217 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy,
1222 Type *DstVecTy = DstTy->getScalarType();
1230 IntegerType *DITy = cast<IntegerType>(DstTy);
1237 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy,
1242 const Type *DstVecTy = DstTy->getScalarType();
1250 const IntegerType *DITy = cast<IntegerType>(DstTy);
1257 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy,
1262 const Type *DstVecTy = DstTy->getScalarType();
1271 const IntegerType *DITy = cast<IntegerType>(DstTy);
1278 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy,
[all...]
/external/clang/lib/CodeGen/
H A DCGExprScalar.cpp104 Value *EmitConversionToBool(Value *Src, QualType DstTy);
110 QualType DstType, llvm::Type *DstTy);
114 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy);
120 QualType SrcTy, QualType DstTy);
559 llvm::Type *DstTy) {
595 if (isa<llvm::IntegerType>(DstTy)) {
716 llvm::Type *DstTy = ConvertType(DstType);
719 if (SrcTy == DstTy)
725 if (isa<llvm::PointerType>(DstTy)) {
728 return Builder.CreateBitCast(Src, DstTy, "con
555 EmitFloatConversionCheck(Value *OrigSrc, QualType OrigSrcType, Value *Src, QualType SrcType, QualType DstType, llvm::Type *DstTy) argument
813 EmitComplexToScalarConversion(CodeGenFunction::ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
988 llvm::Type *DstTy = ConvertType(DstType); local
1300 llvm::Type *DstTy = ConvertType(DestTy); local
1456 llvm::Type *DstTy = ConvertType(DestTy); local
3224 llvm::Type *DstTy = ConvertType(E->getType()); local
3296 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy) argument
3306 EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
[all...]
H A DCGCall.cpp840 llvm::Type *DstTy = local
842 if (SrcTy == DstTy) {
849 if (llvm::StructType *DstSTy = dyn_cast<llvm::StructType>(DstTy)) {
851 DstTy = cast<llvm::PointerType>(DstPtr->getType())->getElementType();
857 (isa<llvm::IntegerType>(DstTy) || isa<llvm::PointerType>(DstTy))) {
858 Src = CoerceIntOrPtrToIntOrPtr(Src, DstTy, CGF);
863 uint64_t DstSize = CGF.CGM.getDataLayout().getTypeAllocSize(DstTy);
1531 llvm::Type *DstTy = local
1533 uint64_t DstSize = CGM.getDataLayout().getTypeAllocSize(DstTy);
[all...]
H A DMicrosoftCXXABI.cpp2266 const MemberPointerType *DstTy = E->getType()->castAs<MemberPointerType>(); local
2275 CXXRecordDecl *DstRD = DstTy->getMostRecentCXXRecordDecl();
2284 llvm::Constant *DstNull = EmitNullMemberPointer(DstTy);
2370 const MemberPointerType *DstTy = E->getType()->castAs<MemberPointerType>(); local
2375 return EmitNullMemberPointer(DstTy);
2384 MSInheritanceAttr::Spelling DstInheritance = getInheritanceFromMemptr(DstTy);
H A DCodeGenFunction.h2342 QualType DstTy);
2348 QualType DstTy);
/external/llvm/lib/Linker/
H A DLinkModules.cpp64 void addTypeMapping(Type *DstTy, Type *SrcTy);
95 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
99 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { argument
103 if (DstTy == SrcTy) {
104 Entry = DstTy;
110 if (!areTypesIsomorphic(DstTy, SrcTy)) {
121 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { argument
123 if (DstTy->getTypeID() != SrcTy->getTypeID()) return false;
128 return Entry == DstTy;
132 if (DstTy
[all...]
/external/llvm/lib/IR/
H A DInstructions.cpp2077 Type* DstTy = getType(); local
2078 if (SrcTy == DstTy)
2083 return DstTy->isPointerTy();
2152 /// * %S = secondOpcode MidTy %F to DstTy
2154 /// * %Replacement = resultOpcode %SrcTy %x to DstTy
2158 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy,
2217 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast);
2221 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy)))
2241 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy())
2247 if (DstTy
2156 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, Type *DstIntPtrTy) argument
2778 castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) argument
[all...]
H A DConstants.cpp1697 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy) { argument
1700 assert(DstTy->getScalarType()->isIntegerTy() &&
1702 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
1704 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
1706 return getFoldedCast(Instruction::PtrToInt, C, DstTy);
1709 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy) { argument
1712 assert(DstTy->getScalarType()->isPointerTy() &&
1714 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
1716 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
1718 return getFoldedCast(Instruction::IntToPtr, C, DstTy);
1721 getBitCast(Constant *C, Type *DstTy) argument
1732 getAddrSpaceCast(Constant *C, Type *DstTy) argument
[all...]
H A DConstantFold.cpp44 static Constant *BitCastConstantVector(Constant *CV, VectorType *DstTy) { argument
46 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy);
47 if (CV->isNullValue()) return Constant::getNullValue(DstTy);
52 unsigned NumElts = DstTy->getNumElements();
56 Type *DstEltTy = DstTy->getElementType();
78 Type *DstTy ///< destination type of the first cast
81 assert(DstTy && DstTy->isFirstClassType() && "Invalid cast destination type");
93 IntegerType *FakeIntPtrTy = Type::getInt64Ty(DstTy->getContext());
96 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy,
[all...]
H A DVerifier.cpp1000 Type *DstTy = CE->getType(); local
1001 VerifyBitcastType(CE, DstTy, SrcTy);
/external/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp205 EVT DstTy = TLI->getValueType(Dst); local
207 if (!SrcTy.isSimple() || !DstTy.isSimple())
291 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
322 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
354 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
374 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
/external/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp301 EVT DstTy = TLI->getValueType(Dst); local
303 if (!SrcTy.isSimple() || !DstTy.isSimple())
370 ConversionTbl, array_lengthof(ConversionTbl), ISD, DstTy.getSimpleVT(),
/external/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp561 EVT DstTy = TLI->getValueType(Dst); local
564 if (!SrcTy.isSimple() || !DstTy.isSimple())
667 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
673 int Idx = ConvertCostTableLookup(AVXConversionTbl, ISD, DstTy.getSimpleVT(),
H A DX86ISelLowering.cpp10984 EVT DstTy = Op.getValueType();
10986 if (!IsSigned && !isIntegerTypeFTOL(DstTy)) {
10987 assert(DstTy == MVT::i32 && "Unexpected FP_TO_UINT");
10988 DstTy = MVT::i64;
10991 assert(DstTy.getSimpleVT() <= MVT::i64 &&
10992 DstTy.getSimpleVT() >= MVT::i16 &&
10996 if (DstTy == MVT::i32 &&
11000 DstTy == MVT::i64 &&
11007 unsigned MemSize = DstTy.getSizeInBits()/8;
11012 if (!IsSigned && isIntegerTypeFTOL(DstTy))
[all...]
/external/llvm/include/llvm/IR/
H A DInstrTypes.h576 Type *DstTy, ///< DstTy of cast
594 /// the pair, casting SrcTy to DstTy.
600 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
601 Type *DstTy, ///< DstTy of 2nd cast
604 Type *DstIntPtrTy ///< Integer type corresponding to Ptr DstTy, or null
617 /// This method can be used to determine if a cast from S to DstTy using
621 static bool castIsValid(Instruction::CastOps op, Value *S, Type *DstTy);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp240 Type *DstTy, ///< The target type for the second cast instruction
254 Type *DstIntPtrTy = DL && DstTy->isPtrOrPtrVectorTy() ?
255 DL->getIntPtrType(DstTy) : nullptr;
257 DstTy, SrcIntPtrTy, MidIntPtrTy,
263 (Res == Instruction::PtrToInt && DstTy != SrcIntPtrTy))
237 isEliminableCastPair( const CastInst *CI, unsigned opcode, Type *DstTy, const DataLayout *DL ) argument
H A DInstCombineCalls.cpp1025 Type* DstTy = cast<PointerType>(CI->getType())->getElementType(); local
1026 if (!SrcTy->isSized() || !DstTy->isSized())
1028 if (!DL || DL->getTypeAllocSize(SrcTy) != DL->getTypeAllocSize(DstTy))
/external/llvm/lib/Target/PowerPC/
H A DPPCFastISel.cpp919 Type *DstTy = I->getType(); local
920 if (!isTypeLegal(DstTy, DstVT))
1026 Type *DstTy = I->getType(); local
1027 if (!isTypeLegal(DstTy, DstVT))
/external/clang/lib/Sema/
H A DSemaChecking.cpp1900 QualType DstTy = TInfo->getType(); local
1907 if (!DstTy->isVectorType() && !DstTy->isDependentType())
1911 if (!SrcTy->isDependentType() && !DstTy->isDependentType()) {
1913 unsigned DstElts = DstTy->getAs<VectorType>()->getNumElements();
1921 ConvertVectorExpr(E, TInfo, DstTy, VK, OK, BuiltinLoc, RParenLoc);
4390 QualType DstTy = DstArg->getType(); local
4391 bool isKnownSizeArray = isConstantSizeArrayWithMoreThanOneElement(DstTy,
H A DSemaExpr.cpp4616 QualType DstTy = GetTypeFromParser(ParsedDestTy); local
4618 if (Context.getTypeSize(DstTy) != Context.getTypeSize(SrcTy))
4621 << DstTy
4624 return new (Context) AsTypeExpr(E, DstTy, VK, OK, BuiltinLoc, RParenLoc);
/external/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp3651 Type *DstTy = Base.getType();
3652 if (!DstTy) return;
3653 DstTy = SE.getEffectiveSCEVType(DstTy);
3658 if (SrcTy != DstTy && TTI.isTruncateFree(SrcTy, DstTy)) {
/external/llvm/lib/Analysis/
H A DInstructionSimplify.cpp2023 Type *DstTy = LI->getType(); local
2028 Q.DL->getTypeSizeInBits(SrcTy) == DstTy->getPrimitiveSizeInBits()) {
2059 // reextended to DstTy.
2061 Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy);
2118 // reextended to DstTy.
2120 Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy);
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp159 PointerType *DstTy = cast<PointerType>(CE->getType()); local
161 if (SrcTy->getAddressSpace() == 1 && DstTy->getAddressSpace() == 0) {
/external/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp3002 IntegerType *DstTy = cast<IntegerType>(II.StartValue->getType()); local
3003 Value *CNI = Builder.CreateSExtOrTrunc(NormalizedIdx, DstTy,

Completed in 1277 milliseconds