/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 &&
|
H A D | NVPTXAsmPrinter.cpp | 160 PointerType *SrcTy = cast<PointerType>(CE->getOperand(0)->getType()); local 161 if (SrcTy->getAddressSpace() == 1 && DstTy->getAddressSpace() == 0) {
|
/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());
|
H A D | AArch64FastISel.cpp | 1648 Type *SrcTy = Op->getType(); local 1650 EVT SrcEVT = TLI.getValueType(SrcTy, true); 1821 Type *SrcTy = Src->getType(); local 1828 EVT SrcEVT = TLI.getValueType(SrcTy, true);
|
/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...] |
H A D | ARMFastISel.cpp | 2732 Type *SrcTy = Src->getType(); local 2739 SrcEVT = TLI.getValueType(SrcTy, true);
|
/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 | 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 | 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()) &&
|
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...] |
/external/llvm/lib/IR/ |
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;
|
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 | 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...] |
/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());
|
/external/llvm/lib/Transforms/InstCombine/ |
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...] |
H A D | InstCombineAndOrXor.cpp | 1303 Type *SrcTy = Op0C->getOperand(0)->getType(); local 1305 SrcTy == Op1C->getOperand(0)->getType() && 1306 SrcTy->isIntOrIntVectorTy()) { 2154 Type *SrcTy = Op0C->getOperand(0)->getType(); local 2155 if (SrcTy == Op1C->getOperand(0)->getType() && 2156 SrcTy->isIntOrIntVectorTy()) { 2471 Type *SrcTy = Op0C->getOperand(0)->getType(); local 2472 if (SrcTy == Op1C->getOperand(0)->getType() && SrcTy->isIntegerTy() &&
|
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 | InstCombineCompares.cpp | 1793 Type *SrcTy = LHSCIOp->getType(); local 1800 DL->getPointerTypeSizeInBits(SrcTy) == DestTy->getIntegerBitWidth()) { 1803 RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy); 1853 // Compute the constant that would happen if we truncated to SrcTy then 1855 Constant *Res1 = ConstantExpr::getTrunc(CI, SrcTy); 1887 Constant *NegOne = Constant::getAllOnesValue(SrcTy);
|
H A D | InstructionCombining.cpp | 701 VectorType *SrcTy = dyn_cast<VectorType>(BC->getSrcTy()); local 704 if ((SrcTy == nullptr) != (DestTy == nullptr)) return nullptr; 706 if (SrcTy && SrcTy->getNumElements() != DestTy->getNumElements())
|
/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/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/Target/PowerPC/ |
H A D | PPCFastISel.cpp | 1038 Type *SrcTy = Src->getType(); local 1039 if (!isTypeLegal(SrcTy, SrcVT)) 1725 Type *SrcTy = Src->getType(); local 1732 SrcEVT = TLI.getValueType(SrcTy, true);
|
/external/clang/lib/CodeGen/ |
H A D | CGBuiltin.cpp | 2567 llvm::VectorType *SrcTy = local 2571 Ops[0] = Builder.CreateBitCast(Ops[0], SrcTy); 2572 Ops[1] = Builder.CreateBitCast(Ops[1], SrcTy); 2576 Constant *ShiftAmt = ConstantInt::get(SrcTy->getElementType(), 2577 SrcTy->getScalarSizeInBits() / 2); 2839 llvm::Type *SrcTy = llvm::VectorType::getTruncatedElementVectorType(VTy); local 2840 Ops[0] = Builder.CreateBitCast(Ops[0], SrcTy); 2849 llvm::Type *SrcTy = llvm::VectorType::getExtendedElementVectorType(VTy); local 2850 Ops[0] = Builder.CreateBitCast(Ops[0], SrcTy); 2851 Ops[1] = EmitNeonShiftVector(Ops[1], SrcTy, fals 2878 llvm::VectorType *SrcTy = local [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...] |