/external/llvm/lib/IR/ |
H A D | Verifier.cpp | 328 void VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy); 902 void Verifier::VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy) { argument 904 unsigned SrcBitSize = SrcTy->getPrimitiveSizeInBits(); 909 Assert1(SrcTy->isPointerTy() == DestTy->isPointerTy(), 915 Assert1(!SrcTy->isAggregateType(), 924 !SrcTy->isPtrOrPtrVectorTy() || 926 SrcTy->isVectorTy() != DestTy->isVectorTy()) { 930 unsigned SrcAS = SrcTy->getPointerAddressSpace(); 942 Type *SrcTy = CE->getOperand(0)->getType(); local 944 VerifyBitcastType(CE, DstTy, SrcTy); 1210 Type *SrcTy = I.getOperand(0)->getType(); local 1228 Type *SrcTy = I.getOperand(0)->getType(); local 1281 Type *SrcTy = I.getOperand(0)->getType(); local 1322 Type *SrcTy = I.getOperand(0)->getType(); local 1345 Type *SrcTy = I.getOperand(0)->getType(); local 1368 Type *SrcTy = I.getOperand(0)->getType(); local 1391 Type *SrcTy = I.getOperand(0)->getType(); local 1413 Type *SrcTy = I.getOperand(0)->getType(); local 1432 Type *SrcTy = I.getOperand(0)->getType(); local [all...] |
H A D | Instructions.cpp | 2064 Type* SrcTy = getOperand(0)->getType(); 2066 if (SrcTy == DstTy) 2070 if (SrcTy->isPointerTy()) 2084 Type *SrcTy, 2106 SrcTy->getScalarSizeInBits(); 2118 /// * %F = firstOpcode SrcTy %x to MidTy 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); 2185 if ((isFirstBitcast && isa<VectorType>(SrcTy) ! 2083 isNoopCast(Instruction::CastOps Opcode, Type *SrcTy, Type *DestTy, Type *IntPtrTy) argument 2123 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, Type *DstIntPtrTy) argument 2504 isCastable(Type *SrcTy, Type *DestTy) argument 2565 isBitCastable(Type *SrcTy, Type *DestTy) argument 2615 Type *SrcTy = Src->getType(); local 2718 Type *SrcTy = S->getType(); local [all...] |
H A D | ConstantFold.cpp | 85 Type *SrcTy = Op->getOperand(0)->getType(); local 96 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, 101 Type *SrcTy = V->getType(); local 102 if (SrcTy == DestTy) 139 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) { 140 assert(DestPTy->getBitWidth() == SrcTy->getBitWidth() && 142 SrcTy = NULL;
|
/external/llvm/lib/Linker/ |
H A D | LinkModules.cpp | 62 void addTypeMapping(Type *DstTy, Type *SrcTy); 70 Type *get(Type *SrcTy); 89 Type *remapType(Type *SrcTy) { argument 90 return get(SrcTy); 93 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy); 97 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { argument 98 Type *&Entry = MappedTypes[SrcTy]; 101 if (DstTy == SrcTy) { 108 if (!areTypesIsomorphic(DstTy, SrcTy)) { 119 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { argument 692 ArrayType *SrcTy = local [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 241 Type *SrcTy = CI->getOperand(0)->getType(); // A from above local 247 Type *SrcIntPtrTy = TD && SrcTy->isPtrOrPtrVectorTy() ? 248 TD->getIntPtrType(SrcTy) : 0; 253 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, 259 if ((Res == Instruction::IntToPtr && SrcTy != DstIntPtrTy) || 446 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); local 452 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && 773 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local 780 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && 782 assert(BitsToClear < SrcTy 1074 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local 1206 Type *SrcTy = OpI->getType(); local 1431 VectorType *SrcTy = cast<VectorType>(InVal->getType()); local 1684 Type *SrcTy = Src->getType(); local [all...] |
H A D | InstCombineLoadStoreAlloca.cpp | 289 if (PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType())) { 292 if (DestTy->getAddressSpace() != SrcTy->getAddressSpace()) 295 Type *SrcPTy = SrcTy->getElementType(); 309 SrcTy = cast<PointerType>(CastOp->getType()); 310 SrcPTy = SrcTy->getElementType(); 454 PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType()); local 455 if (SrcTy == 0) return 0; 457 Type *SrcPTy = SrcTy->getElementType(); 490 SrcTy = PointerType::get(SrcPTy, SrcTy [all...] |
H A D | InstCombineAndOrXor.cpp | 1204 Type *SrcTy = Op0C->getOperand(0)->getType(); local 1206 SrcTy == Op1C->getOperand(0)->getType() && 1207 SrcTy->isIntOrIntVectorTy()) { 2045 Type *SrcTy = Op0C->getOperand(0)->getType(); local 2046 if (SrcTy == Op1C->getOperand(0)->getType() && 2047 SrcTy->isIntOrIntVectorTy()) { 2359 Type *SrcTy = Op0C->getOperand(0)->getType(); local 2360 if (SrcTy == Op1C->getOperand(0)->getType() && SrcTy->isIntegerTy() &&
|
H A D | InstCombineCalls.cpp | 776 Type* SrcTy = 779 if (!SrcTy->isSized() || !DstTy->isSized()) 781 if (!TD || TD->getTypeAllocSize(SrcTy) != TD->getTypeAllocSize(DstTy))
|
/external/llvm/include/llvm/Transforms/Utils/ |
H A D | ValueMapper.h | 34 virtual Type *remapType(Type *SrcTy) = 0;
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | Execution.cpp | 1237 Type *SrcTy = SrcVal->getType(); 1238 if (SrcTy->isVectorTy()) { 1256 const Type *SrcTy = SrcVal->getType(); 1258 if (SrcTy->isVectorTy()) { 1276 const Type *SrcTy = SrcVal->getType(); 1278 if (SrcTy->isVectorTy()) { 1342 Type *SrcTy = SrcVal->getType(); 1345 if (SrcTy->getTypeID() == Type::VectorTyID) { 1347 const Type *SrcVecTy = SrcTy->getScalarType(); 1366 assert(SrcTy [all...] |
/external/llvm/lib/Target/ARM/ |
H A D | ARMTargetTransformInfo.cpp | 201 EVT SrcTy = TLI->getValueType(Src); local 204 if (!SrcTy.isSimple() || !DstTy.isSimple()) 285 if (SrcTy.isVector() && ST->hasNEON()) { 288 ISD, DstTy.getSimpleVT(), SrcTy.getSimpleVT()); 316 if (SrcTy.isFloatingPoint() && ST->hasNEON()) { 320 SrcTy.getSimpleVT()); 349 if (SrcTy.isInteger() && ST->hasNEON()) { 353 SrcTy.getSimpleVT()); 370 if (SrcTy.isInteger()) { 375 SrcTy [all...] |
/external/llvm/lib/Analysis/ |
H A D | CostModel.cpp | 183 Type *SrcTy = I->getOperand(0)->getType(); local 184 return TTI->getCastInstrCost(I->getOpcode(), I->getType(), SrcTy);
|
H A D | ScalarEvolution.cpp | 2820 Type *SrcTy = V->getType(); 2821 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && 2824 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) 2826 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty)) 2837 Type *SrcTy = V->getType(); 2838 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && 2841 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) 2843 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBit [all...] |
H A D | InstructionSimplify.cpp | 2030 Type *SrcTy = SrcOp->getType(); local 2036 Q.TD->getTypeSizeInBits(SrcTy) == DstTy->getPrimitiveSizeInBits()) { 2040 ConstantExpr::getIntToPtr(RHSC, SrcTy), 2044 if (RI->getOperand(0)->getType() == SrcTy) 2056 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType()) 2066 // Compute the constant that would happen if we truncated to SrcTy then 2068 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); 2116 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType()) 2125 // Compute the constant that would happen if we truncated to SrcTy then 2127 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); [all...] |
H A D | ValueTracking.cpp | 431 Type *SrcTy = I->getOperand(0)->getType(); local 437 SrcBitWidth = TD->getTypeSizeInBits(SrcTy->getScalarType()); 439 SrcBitWidth = SrcTy->getScalarSizeInBits(); 455 Type *SrcTy = I->getOperand(0)->getType(); local 456 if ((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) &&
|
/external/clang/lib/CodeGen/ |
H A D | CGExprScalar.cpp | 113 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy); 119 QualType SrcTy, QualType DstTy); 560 llvm::Type *SrcTy = Src->getType(); 563 if (llvm::IntegerType *IntTy = dyn_cast<llvm::IntegerType>(SrcTy)) { 700 llvm::Type *SrcTy = Src->getType(); local 706 SrcTy = CGF.FloatTy; 716 if (SrcTy == DstTy) 724 if (isa<llvm::PointerType>(SrcTy)) 738 if (isa<llvm::PointerType>(SrcTy)) { 756 if (isa<llvm::VectorType>(SrcTy) || 810 EmitComplexToScalarConversion(CodeGenFunction::ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument 3113 llvm::Type *SrcTy = Src->getType(); local 3181 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy) argument 3191 EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument [all...] |
H A D | CGCall.cpp | 640 llvm::Type *SrcTy = local 642 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) 710 llvm::Type *SrcTy = local 713 // If SrcTy and Ty are the same, just do a load. 714 if (SrcTy == Ty) 719 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) { 721 SrcTy = cast<llvm::PointerType>(SrcPtr->getType())->getElementType(); 724 uint64_t SrcSize = CGF.CGM.getDataLayout().getTypeAllocSize(SrcTy); 729 (isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy))) { 797 llvm::Type *SrcTy = Src->getType(); local 2417 llvm::Type *SrcTy = local [all...] |
H A D | MicrosoftCXXABI.cpp | 1099 const MemberPointerType *SrcTy = local 1102 MSInheritanceModel SrcInheritance = getInheritanceFromMemptr(SrcTy); 1104 bool IsFunc = SrcTy->isMemberFunctionPointer(); 1116 llvm::Value *IsNotNull = EmitMemberPointerIsNotNull(CGF, Src, SrcTy); 1199 const MemberPointerType *SrcTy = local 1205 if (MemberPointerConstantIsNull(SrcTy, Src)) 1214 MSInheritanceModel SrcInheritance = getInheritanceFromMemptr(SrcTy); 1222 bool IsFunc = SrcTy->isMemberFunctionPointer();
|
H A D | CGObjC.cpp | 2886 QualType SrcTy = Ty; local 2887 SrcTy.addConst(); 2888 SrcTy = C.getPointerType(SrcTy); 2893 ImplicitParamDecl srcDecl(FD, SourceLocation(), 0, SrcTy); 2918 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy, 2920 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(), 2970 QualType SrcTy = Ty; local 2971 SrcTy.addConst(); 2972 SrcTy [all...] |
H A D | CGObjCMac.cpp | 4167 llvm::Type * SrcTy = src->getType(); local 4168 if (!isa<llvm::PointerType>(SrcTy)) { 4169 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); 4189 llvm::Type * SrcTy = src->getType(); local 4190 if (!isa<llvm::PointerType>(SrcTy)) { 4191 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); 4216 llvm::Type * SrcTy = src->getType(); local 4217 if (!isa<llvm::PointerType>(SrcTy)) { 4218 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); 4236 llvm::Type * SrcTy local 6834 llvm::Type * SrcTy = src->getType(); local 6854 llvm::Type * SrcTy = src->getType(); local 6901 llvm::Type * SrcTy = src->getType(); local 6922 llvm::Type * SrcTy = src->getType(); local [all...] |
H A D | CGExprCXX.cpp | 1791 QualType SrcTy, QualType DestTy, 1823 SrcRecordTy = SrcTy->castAs<PointerType>()->getPointeeType(); 1826 SrcRecordTy = SrcTy; 1890 QualType SrcTy = DCE->getSubExpr()->getType(); 1895 bool ShouldNullCheckSrcValue = SrcTy->isPointerType(); 1910 Value = EmitDynamicCastCall(*this, Value, SrcTy, DestTy, CastEnd); 1790 EmitDynamicCastCall(CodeGenFunction &CGF, llvm::Value *Value, QualType SrcTy, QualType DestTy, llvm::BasicBlock *CastEnd) argument
|
/external/llvm/include/llvm/IR/ |
H A D | InstrTypes.h | 530 Type *SrcTy, ///< The Type from which the value should be cast. 536 Type *SrcTy, ///< The Type from which the value should be cast. 575 Type *SrcTy, ///< SrcTy of cast 589 /// the pair, casting SrcTy to DstTy. 594 Type *SrcTy, ///< SrcTy of 1st cast 595 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast 597 Type *SrcIntPtrTy, ///< Integer type corresponding to Ptr SrcTy, or null
|
/external/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.cpp | 397 EVT SrcTy = TLI->getValueType(Src); local 401 if (!SrcTy.isSimple() || !DstTy.isSimple()) 451 ISD, DstTy.getSimpleVT(), SrcTy.getSimpleVT());
|
/external/clang/lib/Sema/ |
H A D | SemaCast.cpp | 1600 QualType SrcTy, DestTy; local 1605 SrcTy = SrcType->getPointeeType(); 1611 SrcTy = SrcType; 1616 if (Context.hasSameUnqualifiedType(DestTy, SrcTy)) { 1621 SrcTy->isAnyCharacterType() || SrcTy->isVoidType()) { 1625 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) { 1630 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) || 1631 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) { 1632 if (Context.getTypeSize(DestTy) == Context.getTypeSize(SrcTy)) { [all...] |
/external/llvm/lib/Transforms/Vectorize/ |
H A D | SLPVectorizer.cpp | 684 Type *SrcTy = VL0->getOperand(0)->getType(); local 687 if (Ty != SrcTy || Ty->isAggregateType() || Ty->isVectorTy()) { 836 Type *SrcTy = VL0->getOperand(0)->getType(); local 840 VL0->getType(), SrcTy); 842 VectorType *SrcVecTy = VectorType::get(SrcTy, VL.size());
|