/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | GVNHoist.cpp | 500 Instruction *Gep) const; 959 Instruction *Gep) const { in makeGepsAvailable() 960 assert(allGepOperandsAvailable(Gep, HoistPt) && "GEP operands not available"); in makeGepsAvailable() 962 Instruction *ClonedGep = Gep->clone(); in makeGepsAvailable() 963 for (unsigned i = 0, e = Gep->getNumOperands(); i != e; ++i) in makeGepsAvailable() 964 if (Instruction *Op = dyn_cast<Instruction>(Gep->getOperand(i))) { in makeGepsAvailable() 995 Repl->replaceUsesOfWith(Gep, ClonedGep); in makeGepsAvailable() 1078 GetElementPtrInst *Gep = nullptr; in makeGepOperandsAvailable() local 1081 Gep = dyn_cast<GetElementPtrInst>(Ld->getPointerOperand()); in makeGepOperandsAvailable() 1083 Gep = dyn_cast<GetElementPtrInst>(St->getPointerOperand()); in makeGepOperandsAvailable() [all …]
|
D | ScalarizeMaskedMemIntrin.cpp | 171 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedLoad() local 172 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad() 215 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedLoad() local 216 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad() 306 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedStore() local 307 Builder.CreateAlignedStore(OneElt, Gep, AdjustedAlignVal); in scalarizeMaskedStore() 348 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedStore() local 349 Builder.CreateAlignedStore(OneElt, Gep, AdjustedAlignVal); in scalarizeMaskedStore()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | GVNHoist.cpp | 851 Instruction *Gep) const { in makeGepsAvailable() 852 assert(allGepOperandsAvailable(Gep, HoistPt) && in makeGepsAvailable() 855 Instruction *ClonedGep = Gep->clone(); in makeGepsAvailable() 856 for (unsigned i = 0, e = Gep->getNumOperands(); i != e; ++i) in makeGepsAvailable() 857 if (Instruction *Op = dyn_cast<Instruction>(Gep->getOperand(i))) { in makeGepsAvailable() 888 Repl->replaceUsesOfWith(Gep, ClonedGep); in makeGepsAvailable() 979 GetElementPtrInst *Gep = nullptr; in makeGepOperandsAvailable() local 982 Gep = dyn_cast<GetElementPtrInst>(Ld->getPointerOperand()); in makeGepOperandsAvailable() 984 Gep = dyn_cast<GetElementPtrInst>(St->getPointerOperand()); in makeGepOperandsAvailable() 998 if (!Gep || !allGepOperandsAvailable(Gep, HoistPt)) in makeGepOperandsAvailable() [all …]
|
/external/llvm/lib/Analysis/ |
D | VectorUtils.cpp | 101 unsigned llvm::getGEPInductionOperand(const GetElementPtrInst *Gep) { in getGEPInductionOperand() argument 102 const DataLayout &DL = Gep->getModule()->getDataLayout(); in getGEPInductionOperand() 103 unsigned LastOperand = Gep->getNumOperands() - 1; in getGEPInductionOperand() 104 unsigned GEPAllocSize = DL.getTypeAllocSize(Gep->getResultElementType()); in getGEPInductionOperand() 107 while (LastOperand > 1 && match(Gep->getOperand(LastOperand), m_Zero())) { in getGEPInductionOperand() 109 gep_type_iterator GEPTI = gep_type_begin(Gep); in getGEPInductionOperand()
|
D | Delinearization.cpp | 77 else if (GetElementPtrInst *Gep = dyn_cast<GetElementPtrInst>(&Inst)) in getPointerOperand() local 78 return Gep->getPointerOperand(); in getPointerOperand()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | ScalarizeMaskedMemIntrin.cpp | 168 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedLoad() local 169 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AlignVal); in scalarizeMaskedLoad() 212 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedLoad() local 213 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AlignVal); in scalarizeMaskedLoad() 302 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedStore() local 303 Builder.CreateAlignedStore(OneElt, Gep, AlignVal); in scalarizeMaskedStore() 344 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedStore() local 345 Builder.CreateAlignedStore(OneElt, Gep, AlignVal); in scalarizeMaskedStore()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/ |
D | CoroCleanup.cpp | 51 auto *Gep = Builder.CreateConstInBoundsGEP2_32(FrameTy, FramePtr, 0, Index); in lowerSubFn() local 52 auto *Load = Builder.CreateLoad(FrameTy->getElementType(Index), Gep); in lowerSubFn()
|
/external/llvm-project/llvm/lib/Transforms/Coroutines/ |
D | CoroCleanup.cpp | 50 auto *Gep = Builder.CreateConstInBoundsGEP2_32(FrameTy, FramePtr, 0, Index); in lowerSubFn() local 51 auto *Load = Builder.CreateLoad(FrameTy->getElementType(Index), Gep); in lowerSubFn()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 2041 GetElementPtrInst *Gep = getGEPInstruction(Ptr); in isConsecutivePtr() local 2042 if (!Gep) in isConsecutivePtr() 2045 unsigned NumOperands = Gep->getNumOperands(); in isConsecutivePtr() 2046 Value *GpPtr = Gep->getPointerOperand(); in isConsecutivePtr() 2059 if (!SE->isLoopInvariant(PSE.getSCEV(Gep->getOperand(i)), TheLoop)) in isConsecutivePtr() 2066 unsigned InductionOperand = getGEPInductionOperand(Gep); in isConsecutivePtr() 2072 !SE->isLoopInvariant(PSE.getSCEV(Gep->getOperand(i)), TheLoop)) in isConsecutivePtr() 2078 if (!getSymbolicStrides() || !getSymbolicStrides()->count(Gep)) in isConsecutivePtr() 2079 Last = PSE.getSCEV(Gep->getOperand(InductionOperand)); in isConsecutivePtr() 2091 Gep->getOperand(InductionOperand), Gep); in isConsecutivePtr() [all …]
|
/external/llvm-project/polly/lib/CodeGen/ |
D | IRBuilder.cpp | 198 if (auto *Gep = dyn_cast<GEPOperator>(Val)) { in findBasePtr() local 199 Val = Gep->getPointerOperand(); in findBasePtr()
|
/external/llvm/include/llvm/Analysis/ |
D | VectorUtils.h | 54 unsigned getGEPInductionOperand(const GetElementPtrInst *Gep);
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | VectorUtils.cpp | 129 unsigned llvm::getGEPInductionOperand(const GetElementPtrInst *Gep) { in getGEPInductionOperand() argument 130 const DataLayout &DL = Gep->getModule()->getDataLayout(); in getGEPInductionOperand() 131 unsigned LastOperand = Gep->getNumOperands() - 1; in getGEPInductionOperand() 132 unsigned GEPAllocSize = DL.getTypeAllocSize(Gep->getResultElementType()); in getGEPInductionOperand() 135 while (LastOperand > 1 && match(Gep->getOperand(LastOperand), m_Zero())) { in getGEPInductionOperand() 137 gep_type_iterator GEPTI = gep_type_begin(Gep); in getGEPInductionOperand()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | VectorUtils.cpp | 136 unsigned llvm::getGEPInductionOperand(const GetElementPtrInst *Gep) { in getGEPInductionOperand() argument 137 const DataLayout &DL = Gep->getModule()->getDataLayout(); in getGEPInductionOperand() 138 unsigned LastOperand = Gep->getNumOperands() - 1; in getGEPInductionOperand() 139 TypeSize GEPAllocSize = DL.getTypeAllocSize(Gep->getResultElementType()); in getGEPInductionOperand() 142 while (LastOperand > 1 && match(Gep->getOperand(LastOperand), m_Zero())) { in getGEPInductionOperand() 144 gep_type_iterator GEPTI = gep_type_begin(Gep); in getGEPInductionOperand()
|
/external/llvm-project/llvm/unittests/Transforms/Utils/ |
D | ScalarEvolutionExpanderTest.cpp | 129 Instruction *Gep = cast<Instruction>(V)->getPrevNode(); in TEST_F() local 130 EXPECT_TRUE(isa<GetElementPtrInst>(Gep)); in TEST_F() 131 EXPECT_TRUE(isa<ConstantInt>(Gep->getOperand(1))); in TEST_F() 132 EXPECT_EQ(cast<ConstantInt>(Gep->getOperand(1))->getSExtValue(), -1); in TEST_F() 133 EXPECT_TRUE(isa<BitCastInst>(Gep->getPrevNode())); in TEST_F()
|
/external/llvm/test/Instrumentation/AddressSanitizer/ |
D | instrument_global.ll | 40 ; GlobSt is accessed with Gep that has non-0 first index -- can't optimize.
|
/external/llvm-project/llvm/test/Instrumentation/AddressSanitizer/ |
D | instrument_global.ll | 43 ; GlobSt is accessed with Gep that has non-0 first index -- can't optimize.
|
/external/llvm-project/polly/lib/Support/ |
D | ScopHelper.cpp | 551 static bool hasVariantIndex(GetElementPtrInst *Gep, Loop *L, Region &R, in hasVariantIndex() argument 553 for (const Use &Val : llvm::drop_begin(Gep->operands(), 1)) { in hasVariantIndex()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | VectorUtils.h | 202 unsigned getGEPInductionOperand(const GetElementPtrInst *Gep);
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 1227 Value *Gep = in scalarizeMaskedLoad() local 1229 LoadInst* Load = Builder.CreateAlignedLoad(Gep, AlignVal); in scalarizeMaskedLoad() 1272 Value *Gep = in scalarizeMaskedLoad() local 1274 LoadInst *Load = Builder.CreateAlignedLoad(Gep, AlignVal); in scalarizeMaskedLoad() 1365 Value *Gep = in scalarizeMaskedStore() local 1367 Builder.CreateAlignedStore(OneElt, Gep, AlignVal); in scalarizeMaskedStore() 1396 Value *Gep = in scalarizeMaskedStore() local 1398 Builder.CreateAlignedStore(OneElt, Gep, AlignVal); in scalarizeMaskedStore()
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | VectorUtils.h | 334 unsigned getGEPInductionOperand(const GetElementPtrInst *Gep);
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64InstructionSelector.cpp | 4437 MachineInstr *Gep = MRI.getVRegDef(Root.getReg()); in selectAddrModeRegisterOffset() local 4438 if (!Gep || Gep->getOpcode() != TargetOpcode::G_PTR_ADD) in selectAddrModeRegisterOffset() 4444 if (!MRI.hasOneUse(Gep->getOperand(0).getReg())) in selectAddrModeRegisterOffset() 4449 MIB.addUse(Gep->getOperand(1).getReg()); in selectAddrModeRegisterOffset() 4452 MIB.addUse(Gep->getOperand(2).getReg()); in selectAddrModeRegisterOffset()
|
/external/llvm-project/llvm/lib/Target/AArch64/GISel/ |
D | AArch64InstructionSelector.cpp | 5310 MachineInstr *Gep = MRI.getVRegDef(Root.getReg()); in selectAddrModeRegisterOffset() local 5311 if (!Gep || Gep->getOpcode() != TargetOpcode::G_PTR_ADD) in selectAddrModeRegisterOffset() 5317 if (!MRI.hasOneNonDBGUse(Gep->getOperand(0).getReg())) in selectAddrModeRegisterOffset() 5322 MIB.addUse(Gep->getOperand(1).getReg()); in selectAddrModeRegisterOffset() 5325 MIB.addUse(Gep->getOperand(2).getReg()); in selectAddrModeRegisterOffset()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 5766 auto *Gep = dyn_cast<GetElementPtrInst>(Ptr); in getAddressAccessSCEV() local 5767 if (!Gep) in getAddressAccessSCEV() 5773 unsigned NumOperands = Gep->getNumOperands(); in getAddressAccessSCEV() 5775 Value *Opd = Gep->getOperand(i); in getAddressAccessSCEV()
|
/external/llvm-project/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 6509 auto *Gep = dyn_cast<GetElementPtrInst>(Ptr); in getAddressAccessSCEV() local 6510 if (!Gep) in getAddressAccessSCEV() 6516 unsigned NumOperands = Gep->getNumOperands(); in getAddressAccessSCEV() 6518 Value *Opd = Gep->getOperand(i); in getAddressAccessSCEV()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | Instructions.h | 5274 if (auto *Gep = dyn_cast<GetElementPtrInst>(V)) 5275 return Gep->getPointerOperand();
|