Home
last modified time | relevance | path

Searched refs:Gep (Results 1 – 16 of 16) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DScalarizeMaskedMemIntrin.cpp164 Value *Gep = in scalarizeMaskedLoad() local
166 LoadInst *Load = Builder.CreateAlignedLoad(Gep, AlignVal); in scalarizeMaskedLoad()
209 Value *Gep = in scalarizeMaskedLoad() local
211 LoadInst *Load = Builder.CreateAlignedLoad(Gep, AlignVal); in scalarizeMaskedLoad()
302 Value *Gep = in scalarizeMaskedStore() local
304 Builder.CreateAlignedStore(OneElt, Gep, AlignVal); in scalarizeMaskedStore()
333 Value *Gep = in scalarizeMaskedStore() local
335 Builder.CreateAlignedStore(OneElt, Gep, AlignVal); in scalarizeMaskedStore()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DGVNHoist.cpp852 Instruction *Gep) const { in makeGepsAvailable()
853 assert(allGepOperandsAvailable(Gep, HoistPt) && in makeGepsAvailable()
856 Instruction *ClonedGep = Gep->clone(); in makeGepsAvailable()
857 for (unsigned i = 0, e = Gep->getNumOperands(); i != e; ++i) in makeGepsAvailable()
858 if (Instruction *Op = dyn_cast<Instruction>(Gep->getOperand(i))) { in makeGepsAvailable()
889 Repl->replaceUsesOfWith(Gep, ClonedGep); in makeGepsAvailable()
980 GetElementPtrInst *Gep = nullptr; in makeGepOperandsAvailable() local
983 Gep = dyn_cast<GetElementPtrInst>(Ld->getPointerOperand()); in makeGepOperandsAvailable()
985 Gep = dyn_cast<GetElementPtrInst>(St->getPointerOperand()); in makeGepOperandsAvailable()
999 if (!Gep || !allGepOperandsAvailable(Gep, HoistPt)) in makeGepOperandsAvailable()
[all …]
/external/llvm/lib/Analysis/
DVectorUtils.cpp101 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()
DDelinearization.cpp77 else if (GetElementPtrInst *Gep = dyn_cast<GetElementPtrInst>(&Inst)) in getPointerOperand() local
78 return Gep->getPointerOperand(); in getPointerOperand()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DVectorUtils.cpp103 unsigned llvm::getGEPInductionOperand(const GetElementPtrInst *Gep) { in getGEPInductionOperand() argument
104 const DataLayout &DL = Gep->getModule()->getDataLayout(); in getGEPInductionOperand()
105 unsigned LastOperand = Gep->getNumOperands() - 1; in getGEPInductionOperand()
106 unsigned GEPAllocSize = DL.getTypeAllocSize(Gep->getResultElementType()); in getGEPInductionOperand()
109 while (LastOperand > 1 && match(Gep->getOperand(LastOperand), m_Zero())) { in getGEPInductionOperand()
111 gep_type_iterator GEPTI = gep_type_begin(Gep); in getGEPInductionOperand()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Coroutines/
DCoroCleanup.cpp52 auto *Gep = Builder.CreateConstInBoundsGEP2_32(FrameTy, FramePtr, 0, Index); in lowerSubFn() local
53 auto *Load = Builder.CreateLoad(Gep); in lowerSubFn()
DCoroEarly.cpp100 auto *Gep = Builder.CreateConstInBoundsGEP1_32(FrameTy, BCI, 0); in lowerCoroDone() local
101 auto *Load = Builder.CreateLoad(Gep); in lowerCoroDone()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp2041 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/include/llvm/Analysis/
DVectorUtils.h54 unsigned getGEPInductionOperand(const GetElementPtrInst *Gep);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DVectorUtils.h55 unsigned getGEPInductionOperand(const GetElementPtrInst *Gep);
/external/llvm/test/Instrumentation/AddressSanitizer/
Dinstrument_global.ll40 ; GlobSt is accessed with Gep that has non-0 first index -- can't optimize.
/external/swiftshader/third_party/llvm-7.0/llvm/test/Instrumentation/AddressSanitizer/
Dinstrument_global.ll41 ; GlobSt is accessed with Gep that has non-0 first index -- can't optimize.
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp199 Instruction *Gep = cast<Instruction>(V)->getPrevNode(); in TEST_F() local
200 EXPECT_TRUE(isa<GetElementPtrInst>(Gep)); in TEST_F()
201 EXPECT_TRUE(isa<ConstantInt>(Gep->getOperand(1))); in TEST_F()
202 EXPECT_EQ(cast<ConstantInt>(Gep->getOperand(1))->getSExtValue(), -1); in TEST_F()
203 EXPECT_TRUE(isa<BitCastInst>(Gep->getPrevNode())); in TEST_F()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1227 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp5666 auto *Gep = dyn_cast<GetElementPtrInst>(Ptr); in getAddressAccessSCEV() local
5667 if (!Gep) in getAddressAccessSCEV()
5673 unsigned NumOperands = Gep->getNumOperands(); in getAddressAccessSCEV()
5675 Value *Opd = Gep->getOperand(i); in getAddressAccessSCEV()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DInstructions.h5246 if (auto *Gep = dyn_cast<GetElementPtrInst>(V))
5247 return Gep->getPointerOperand();