/external/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | Interpreter.h | 216 GenericValue executeTruncInst(Value *SrcVal, Type *DstTy, 218 GenericValue executeSExtInst(Value *SrcVal, Type *DstTy, 220 GenericValue executeZExtInst(Value *SrcVal, Type *DstTy, 222 GenericValue executeFPTruncInst(Value *SrcVal, Type *DstTy, 224 GenericValue executeFPExtInst(Value *SrcVal, Type *DstTy, 226 GenericValue executeFPToUIInst(Value *SrcVal, Type *DstTy, 228 GenericValue executeFPToSIInst(Value *SrcVal, Type *DstTy, 230 GenericValue executeUIToFPInst(Value *SrcVal, Type *DstTy, 232 GenericValue executeSIToFPInst(Value *SrcVal, Type *DstTy, 234 GenericValue executePtrToIntInst(Value *SrcVal, Type *DstTy, [all...] |
H A D | Execution.cpp | 1234 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy, 1239 Type *DstVecTy = DstTy->getScalarType(); 1247 IntegerType *DITy = cast<IntegerType>(DstTy); 1254 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy, 1259 const Type *DstVecTy = DstTy->getScalarType(); 1267 const IntegerType *DITy = cast<IntegerType>(DstTy); 1274 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy, 1279 const Type *DstVecTy = DstTy->getScalarType(); 1288 const IntegerType *DITy = cast<IntegerType>(DstTy); 1295 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy, [all...] |
/external/llvm/lib/Linker/ |
H A D | LinkModules.cpp | 62 void addTypeMapping(Type *DstTy, Type *SrcTy); 93 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy); 97 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { argument 101 if (DstTy == SrcTy) { 102 Entry = DstTy; 108 if (!areTypesIsomorphic(DstTy, SrcTy)) { 119 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { argument 121 if (DstTy->getTypeID() != SrcTy->getTypeID()) return false; 126 return Entry == DstTy; 130 if (DstTy [all...] |
/external/clang/lib/CodeGen/ |
H A D | CGExprScalar.cpp | 103 Value *EmitConversionToBool(Value *Src, QualType DstTy); 109 QualType DstType, llvm::Type *DstTy); 113 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy); 119 QualType SrcTy, QualType DstTy); 556 llvm::Type *DstTy) { 592 if (isa<llvm::IntegerType>(DstTy)) { 713 llvm::Type *DstTy = ConvertType(DstType); 716 if (SrcTy == DstTy) 722 if (isa<llvm::PointerType>(DstTy)) { 725 return Builder.CreateBitCast(Src, DstTy, "con 552 EmitFloatConversionCheck(Value *OrigSrc, QualType OrigSrcType, Value *Src, QualType SrcType, QualType DstType, llvm::Type *DstTy) argument 810 EmitComplexToScalarConversion(CodeGenFunction::ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument 1366 llvm::Type *DstTy = ConvertType(DestTy); local 3109 llvm::Type *DstTy = ConvertType(E->getType()); local 3181 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy) argument 3191 EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument [all...] |
H A D | MicrosoftCXXABI.cpp | 1101 const MemberPointerType *DstTy = E->getType()->castAs<MemberPointerType>(); local 1103 MSInheritanceModel DstInheritance = getInheritanceFromMemptr(DstTy); 1117 llvm::Constant *DstNull = EmitNullMemberPointer(DstTy); 1201 const MemberPointerType *DstTy = E->getType()->castAs<MemberPointerType>(); local 1206 return EmitNullMemberPointer(DstTy); 1215 MSInheritanceModel DstInheritance = getInheritanceFromMemptr(DstTy);
|
H A D | CGCall.cpp | 798 llvm::Type *DstTy = local 800 if (SrcTy == DstTy) { 807 if (llvm::StructType *DstSTy = dyn_cast<llvm::StructType>(DstTy)) { 809 DstTy = cast<llvm::PointerType>(DstPtr->getType())->getElementType(); 815 (isa<llvm::IntegerType>(DstTy) || isa<llvm::PointerType>(DstTy))) { 816 Src = CoerceIntOrPtrToIntOrPtr(Src, DstTy, CGF); 821 uint64_t DstSize = CGF.CGM.getDataLayout().getTypeAllocSize(DstTy); 1383 llvm::Type *DstTy = local 1385 uint64_t DstSize = CGM.getDataLayout().getTypeAllocSize(DstTy); [all...] |
H A D | CodeGenFunction.h | 2250 QualType DstTy); 2256 QualType DstTy);
|
/external/llvm/lib/IR/ |
H A D | Instructions.cpp | 2065 Type* DstTy = getType(); local 2066 if (SrcTy == DstTy) 2071 return DstTy->isPointerTy(); 2119 /// * %S = secondOpcode MidTy %F to DstTy 2121 /// * %Replacement = resultOpcode %SrcTy %x to DstTy 2125 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, 2182 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast); 2186 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) 2206 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) 2212 if (DstTy 2123 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, Type *DstIntPtrTy) argument 2715 castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) argument [all...] |
H A D | ConstantFold.cpp | 44 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 D | Constants.cpp | 1630 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy) { argument 1633 assert(DstTy->getScalarType()->isIntegerTy() && 1635 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy)); 1637 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&& 1639 return getFoldedCast(Instruction::PtrToInt, C, DstTy); 1642 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy) { argument 1645 assert(DstTy->getScalarType()->isPointerTy() && 1647 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy)); 1649 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&& 1651 return getFoldedCast(Instruction::IntToPtr, C, DstTy); 1654 getBitCast(Constant *C, Type *DstTy) argument [all...] |
H A D | Verifier.cpp | 943 Type *DstTy = CE->getType(); local 944 VerifyBitcastType(CE, DstTy, SrcTy);
|
/external/llvm/lib/Target/ARM/ |
H A D | ARMTargetTransformInfo.cpp | 202 EVT DstTy = TLI->getValueType(Dst); local 204 if (!SrcTy.isSimple() || !DstTy.isSimple()) 288 ISD, DstTy.getSimpleVT(), SrcTy.getSimpleVT()); 319 ISD, DstTy.getSimpleVT(), 352 ISD, DstTy.getSimpleVT(), 374 ISD, DstTy.getSimpleVT(),
|
/external/llvm/include/llvm/IR/ |
H A D | InstrTypes.h | 576 Type *DstTy, ///< DstTy of cast 589 /// the pair, casting SrcTy to DstTy. 595 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast 596 Type *DstTy, ///< DstTy of 2nd cast 599 Type *DstIntPtrTy ///< Integer type corresponding to Ptr DstTy, or null 612 /// This method can be used to determine if a cast from S to DstTy using 616 static bool castIsValid(Instruction::CastOps op, Value *S, Type *DstTy);
|
/external/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.cpp | 398 EVT DstTy = TLI->getValueType(Dst); local 401 if (!SrcTy.isSimple() || !DstTy.isSimple()) 451 ISD, DstTy.getSimpleVT(), SrcTy.getSimpleVT());
|
H A D | X86ISelLowering.cpp | 8661 EVT DstTy = Op.getValueType(); local 8663 if (!IsSigned && !isIntegerTypeFTOL(DstTy)) { 8664 assert(DstTy == MVT::i32 && "Unexpected FP_TO_UINT"); 8665 DstTy = MVT::i64; 8668 assert(DstTy.getSimpleVT() <= MVT::i64 && 8669 DstTy.getSimpleVT() >= MVT::i16 && 8673 if (DstTy == MVT::i32 && 8677 DstTy == MVT::i64 && 8684 unsigned MemSize = DstTy.getSizeInBits()/8; 8689 if (!IsSigned && isIntegerTypeFTOL(DstTy)) [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 237 Type *DstTy, ///< The target type for the second cast instruction 251 Type *DstIntPtrTy = TD && DstTy->isPtrOrPtrVectorTy() ? 252 TD->getIntPtrType(DstTy) : 0; 254 DstTy, SrcIntPtrTy, MidIntPtrTy, 260 (Res == Instruction::PtrToInt && DstTy != SrcIntPtrTy)) 234 isEliminableCastPair( const CastInst *CI, unsigned opcode, Type *DstTy, DataLayout *TD ) argument
|
H A D | InstCombineCalls.cpp | 778 Type* DstTy = cast<PointerType>(CI->getType())->getElementType(); local 779 if (!SrcTy->isSized() || !DstTy->isSized()) 781 if (!TD || TD->getTypeAllocSize(SrcTy) != TD->getTypeAllocSize(DstTy))
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | LoopStrengthReduce.cpp | 3489 Type *DstTy = Base.getType(); 3490 if (!DstTy) return; 3491 DstTy = SE.getEffectiveSCEVType(DstTy); 3496 if (SrcTy != DstTy && TTI.isTruncateFree(SrcTy, DstTy)) {
|
/external/llvm/lib/Analysis/ |
H A D | InstructionSimplify.cpp | 2031 Type *DstTy = LI->getType(); local 2036 Q.TD->getTypeSizeInBits(SrcTy) == DstTy->getPrimitiveSizeInBits()) { 2067 // reextended to DstTy. 2069 Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy); 2126 // reextended to DstTy. 2128 Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy);
|
/external/llvm/lib/Transforms/Vectorize/ |
H A D | LoopVectorize.cpp | 2311 IntegerType *DstTy = cast<IntegerType>(II.StartValue->getType()); local 2312 Value *CNI = Builder.CreateSExtOrTrunc(NormalizedIdx, DstTy,
|
/external/clang/lib/Sema/ |
H A D | SemaChecking.cpp | 3847 QualType DstTy = DstArg->getType(); local 3848 bool isKnownSizeArray = isConstantSizeArrayWithMoreThanOneElement(DstTy,
|
H A D | SemaExpr.cpp | 4454 QualType DstTy = GetTypeFromParser(ParsedDestTy); local 4456 if (Context.getTypeSize(DstTy) != Context.getTypeSize(SrcTy)) 4459 << DstTy 4462 return Owned(new (Context) AsTypeExpr(E, DstTy, VK, OK, BuiltinLoc,
|