/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXFavorNonGenericAddrSpaces.cpp | 96 PointerType *SrcTy = cast<PointerType>(Src->getType()); local 102 if (SrcTy->getElementType() != DestTy->getElementType()) 107 return (SrcTy->getAddressSpace() != AddressSpace::ADDRESS_SPACE_GENERIC &&
|
/external/llvm/lib/IR/ |
H A D | Instructions.cpp | 2076 Type* SrcTy = getOperand(0)->getType(); 2078 if (SrcTy == DstTy) 2082 if (SrcTy->isPointerTy()) 2096 Type *SrcTy, 2120 SrcTy->getScalarSizeInBits(); 2151 /// * %F = firstOpcode SrcTy %x to MidTy 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); 2220 if ((isFirstBitcast && isa<VectorType>(SrcTy) ! 2095 isNoopCast(Instruction::CastOps Opcode, Type *SrcTy, Type *DestTy, Type *IntPtrTy) argument 2156 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, Type *DstIntPtrTy) argument 2566 isCastable(Type *SrcTy, Type *DestTy) argument 2627 isBitCastable(Type *SrcTy, Type *DestTy) argument 2677 Type *SrcTy = Src->getType(); local 2781 Type *SrcTy = S->getType(); local [all...] |
H A D | Verifier.cpp | 338 void VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy); 961 void Verifier::VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy) { argument 963 unsigned SrcBitSize = SrcTy->getPrimitiveSizeInBits(); 968 Assert1(SrcTy->isPointerTy() == DestTy->isPointerTy(), 974 Assert1(!SrcTy->isAggregateType(), 983 !SrcTy->isPtrOrPtrVectorTy() || 985 SrcTy->isVectorTy() != DestTy->isVectorTy()) { 989 unsigned SrcAS = SrcTy->getPointerAddressSpace(); 999 Type *SrcTy = CE->getOperand(0)->getType(); local 1001 VerifyBitcastType(CE, DstTy, SrcTy); 1256 Type *SrcTy = I.getOperand(0)->getType(); local 1274 Type *SrcTy = I.getOperand(0)->getType(); local 1327 Type *SrcTy = I.getOperand(0)->getType(); local 1368 Type *SrcTy = I.getOperand(0)->getType(); local 1391 Type *SrcTy = I.getOperand(0)->getType(); local 1414 Type *SrcTy = I.getOperand(0)->getType(); local 1437 Type *SrcTy = I.getOperand(0)->getType(); local 1459 Type *SrcTy = I.getOperand(0)->getType(); local 1478 Type *SrcTy = I.getOperand(0)->getType(); local 1485 Type *SrcTy = I.getOperand(0)->getType(); local [all...] |
H A D | AutoUpgrade.cpp | 530 Type *SrcTy = V->getType(); local 531 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && 532 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) { 550 Type *SrcTy = C->getType(); 551 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && 552 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) {
|
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 = nullptr;
|
/external/llvm/include/llvm/Transforms/Utils/ |
H A D | ValueMapper.h | 34 virtual Type *remapType(Type *SrcTy) = 0;
|
/external/llvm/lib/Linker/ |
H A D | LinkModules.cpp | 64 void addTypeMapping(Type *DstTy, Type *SrcTy); 72 Type *get(Type *SrcTy); 91 Type *remapType(Type *SrcTy) override { 92 return get(SrcTy); 95 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy); 99 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { argument 100 Type *&Entry = MappedTypes[SrcTy]; 103 if (DstTy == SrcTy) { 110 if (!areTypesIsomorphic(DstTy, SrcTy)) { 121 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { argument 824 ArrayType *SrcTy = local [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 244 Type *SrcTy = CI->getOperand(0)->getType(); // A from above local 250 Type *SrcIntPtrTy = DL && SrcTy->isPtrOrPtrVectorTy() ? 251 DL->getIntPtrType(SrcTy) : nullptr; 256 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, 262 if ((Res == Instruction::IntToPtr && SrcTy != DstIntPtrTy) || 449 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); local 455 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && 776 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local 783 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && 785 assert(BitsToClear < SrcTy 1056 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local 1522 VectorType *SrcTy = cast<VectorType>(InVal->getType()); local 1787 Type *SrcTy = Src->getType(); local 1916 PointerType *SrcTy = cast<PointerType>(Src->getType()->getScalarType()); local [all...] |
H A D | InstCombineLoadStoreAlloca.cpp | 302 if (PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType())) { 305 if (DestTy->getAddressSpace() != SrcTy->getAddressSpace()) 308 Type *SrcPTy = SrcTy->getElementType(); 319 ? DL->getIntPtrType(SrcTy) 320 : Type::getInt64Ty(SrcTy->getContext()); 324 SrcTy = cast<PointerType>(CastOp->getType()); 325 SrcPTy = SrcTy->getElementType(); 477 PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType()); local 478 if (!SrcTy) return nullptr; 480 Type *SrcPTy = SrcTy [all...] |
/external/llvm/lib/Target/ARM/ |
H A D | ARMTargetTransformInfo.cpp | 204 EVT SrcTy = TLI->getValueType(Src); local 207 if (!SrcTy.isSimple() || !DstTy.isSimple()) 289 if (SrcTy.isVector() && ST->hasNEON()) { 291 DstTy.getSimpleVT(), SrcTy.getSimpleVT()); 320 if (SrcTy.isFloatingPoint() && ST->hasNEON()) { 322 DstTy.getSimpleVT(), SrcTy.getSimpleVT()); 352 if (SrcTy.isInteger() && ST->hasNEON()) { 354 DstTy.getSimpleVT(), SrcTy.getSimpleVT()); 372 if (SrcTy.isInteger()) { 374 DstTy.getSimpleVT(), SrcTy [all...] |
/external/clang/lib/CodeGen/ |
H A D | CGExprScalar.cpp | 114 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy); 120 QualType SrcTy, QualType DstTy); 563 llvm::Type *SrcTy = Src->getType(); 566 if (llvm::IntegerType *IntTy = dyn_cast<llvm::IntegerType>(SrcTy)) { 703 llvm::Type *SrcTy = Src->getType(); local 709 SrcTy = CGF.FloatTy; 719 if (SrcTy == DstTy) 727 if (isa<llvm::PointerType>(SrcTy)) 741 if (isa<llvm::PointerType>(SrcTy)) { 759 if (isa<llvm::VectorType>(SrcTy) || 813 EmitComplexToScalarConversion(CodeGenFunction::ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument 987 llvm::Type *SrcTy = Src->getType(); local 1299 llvm::Type *SrcTy = Src->getType(); local 3228 llvm::Type *SrcTy = Src->getType(); local 3296 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy) argument 3306 EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument [all...] |
H A D | CGCall.cpp | 681 llvm::Type *SrcTy = local 683 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) 752 llvm::Type *SrcTy = local 755 // If SrcTy and Ty are the same, just do a load. 756 if (SrcTy == Ty) 761 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) { 763 SrcTy = cast<llvm::PointerType>(SrcPtr->getType())->getElementType(); 766 uint64_t SrcSize = CGF.CGM.getDataLayout().getTypeAllocSize(SrcTy); 771 (isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy))) { 839 llvm::Type *SrcTy = Src->getType(); local 2809 llvm::Type *SrcTy = local [all...] |
H A D | CGObjC.cpp | 2899 QualType SrcTy = Ty; local 2900 SrcTy.addConst(); 2901 SrcTy = C.getPointerType(SrcTy); 2906 ImplicitParamDecl srcDecl(getContext(), FD, SourceLocation(), nullptr, SrcTy); local 2926 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy, 2928 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(), 2978 QualType SrcTy = Ty; local 2979 SrcTy.addConst(); 2980 SrcTy 2985 ImplicitParamDecl srcDecl(getContext(), FD, SourceLocation(), nullptr, SrcTy); local [all...] |
H A D | CGObjCMac.cpp | 4137 llvm::Type * SrcTy = src->getType(); local 4138 if (!isa<llvm::PointerType>(SrcTy)) { 4139 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); 4159 llvm::Type * SrcTy = src->getType(); local 4160 if (!isa<llvm::PointerType>(SrcTy)) { 4161 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); 4186 llvm::Type * SrcTy = src->getType(); local 4187 if (!isa<llvm::PointerType>(SrcTy)) { 4188 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); 4206 llvm::Type * SrcTy local 6828 llvm::Type * SrcTy = src->getType(); local 6848 llvm::Type * SrcTy = src->getType(); local 6895 llvm::Type * SrcTy = src->getType(); local 6916 llvm::Type * SrcTy = src->getType(); local [all...] |
/external/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | Execution.cpp | 1220 Type *SrcTy = SrcVal->getType(); 1221 if (SrcTy->isVectorTy()) { 1239 const Type *SrcTy = SrcVal->getType(); 1241 if (SrcTy->isVectorTy()) { 1259 const Type *SrcTy = SrcVal->getType(); 1261 if (SrcTy->isVectorTy()) { 1325 Type *SrcTy = SrcVal->getType(); 1328 if (SrcTy->getTypeID() == Type::VectorTyID) { 1330 const Type *SrcVecTy = SrcTy->getScalarType(); 1349 assert(SrcTy [all...] |
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.cpp | 300 EVT SrcTy = TLI->getValueType(Src); local 303 if (!SrcTy.isSimple() || !DstTy.isSimple()) 371 SrcTy.getSimpleVT());
|
/external/llvm/lib/Transforms/IPO/ |
H A D | MergeFunctions.cpp | 1287 Type *SrcTy = V->getType(); local 1288 if (SrcTy->isStructTy()) { 1290 assert(SrcTy->getStructNumElements() == DestTy->getStructNumElements()); 1292 for (unsigned int I = 0, E = SrcTy->getStructNumElements(); I < E; ++I) { 1303 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) 1305 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy())
|
/external/llvm/lib/Analysis/ |
H A D | CostModel.cpp | 456 Type *SrcTy = I->getOperand(0)->getType(); local 457 return TTI->getCastInstrCost(I->getOpcode(), I->getType(), SrcTy);
|
H A D | ScalarEvolution.cpp | 2908 Type *SrcTy = V->getType(); 2909 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && 2912 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) 2914 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty)) 2925 Type *SrcTy = V->getType(); 2926 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && 2929 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) 2931 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBit [all...] |
H A D | ConstantFolding.cpp | 488 Type *SrcTy = C->getType(); local 492 if (DL->getTypeSizeInBits(DestTy) == DL->getTypeSizeInBits(SrcTy)) { 496 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) 498 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy()) 507 if (!SrcTy->isAggregateType())
|
H A D | InstructionSimplify.cpp | 2022 Type *SrcTy = SrcOp->getType(); local 2028 Q.DL->getTypeSizeInBits(SrcTy) == DstTy->getPrimitiveSizeInBits()) { 2032 ConstantExpr::getIntToPtr(RHSC, SrcTy), 2036 if (RI->getOperand(0)->getType() == SrcTy) 2048 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType()) 2058 // Compute the constant that would happen if we truncated to SrcTy then 2060 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); 2108 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType()) 2117 // Compute the constant that would happen if we truncated to SrcTy then 2119 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); [all...] |
H A D | ValueTracking.cpp | 423 Type *SrcTy = I->getOperand(0)->getType(); local 429 SrcBitWidth = TD->getTypeSizeInBits(SrcTy->getScalarType()); 431 SrcBitWidth = SrcTy->getScalarSizeInBits(); 447 Type *SrcTy = I->getOperand(0)->getType(); local 448 if ((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) &&
|
/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 594 /// the pair, casting SrcTy to DstTy. 599 Type *SrcTy, ///< SrcTy of 1st cast 600 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast 602 Type *SrcIntPtrTy, ///< Integer type corresponding to Ptr SrcTy, or null
|
/external/clang/lib/Sema/ |
H A D | SemaCast.cpp | 1620 QualType SrcTy, DestTy; 1625 SrcTy = SrcType->getPointeeType(); 1631 SrcTy = SrcType; 1636 if (Context.hasSameUnqualifiedType(DestTy, SrcTy)) { 1641 SrcTy->isAnyCharacterType() || SrcTy->isVoidType()) { 1645 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) { 1650 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) || 1651 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) { 1652 if (Context.getTypeSize(DestTy) == Context.getTypeSize(SrcTy)) { [all...] |
/external/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.cpp | 560 EVT SrcTy = TLI->getValueType(Src); local 564 if (!SrcTy.isSimple() || !DstTy.isSimple()) 667 DstTy.getSimpleVT(), SrcTy.getSimpleVT()); 674 SrcTy.getSimpleVT());
|