Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DGVNHoist.cpp493 Instruction *Gep) const;
952 Instruction *Gep) const { in makeGepsAvailable()
955 Instruction *ClonedGep = Gep->clone(); in makeGepsAvailable()
956 for (unsigned i = 0, e = Gep->getNumOperands(); i != e; ++i) in makeGepsAvailable()
957 if (Instruction *Op = dyn_cast<Instruction>(Gep->getOperand(i))) { in makeGepsAvailable()
988 Repl->replaceUsesOfWith(Gep, ClonedGep); in makeGepsAvailable()
1071 GetElementPtrInst *Gep = nullptr; in makeGepOperandsAvailable() local
1074 Gep = dyn_cast<GetElementPtrInst>(Ld->getPointerOperand()); in makeGepOperandsAvailable()
1076 Gep = dyn_cast<GetElementPtrInst>(St->getPointerOperand()); in makeGepOperandsAvailable()
1090 if (!Gep || !allGepOperandsAvailable(Gep, HoistPt)) in makeGepOperandsAvailable()
[all …]
H A DScalarizeMaskedMemIntrin.cpp185 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedLoad() local
186 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad()
234 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedLoad() local
235 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad()
322 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedStore() local
323 Builder.CreateAlignedStore(OneElt, Gep, AdjustedAlignVal); in scalarizeMaskedStore()
369 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedStore() local
370 Builder.CreateAlignedStore(OneElt, Gep, AdjustedAlignVal); in scalarizeMaskedStore()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroCleanup.cpp41 auto *Gep = Builder.CreateConstInBoundsGEP2_32(FrameTy, FramePtr, 0, Index); in lowerSubFn() local
42 auto *Load = Builder.CreateLoad(FrameTy->getElementType(Index), Gep); in lowerSubFn()
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DIRBuilder.cpp196 if (auto *Gep = dyn_cast<GEPOperator>(Val)) { in findBasePtr() local
197 Val = Gep->getPointerOperand(); in findBasePtr()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DVectorUtils.cpp152 unsigned llvm::getGEPInductionOperand(const GetElementPtrInst *Gep) { in getGEPInductionOperand() argument
153 const DataLayout &DL = Gep->getModule()->getDataLayout(); in getGEPInductionOperand()
154 unsigned LastOperand = Gep->getNumOperands() - 1; in getGEPInductionOperand()
155 TypeSize GEPAllocSize = DL.getTypeAllocSize(Gep->getResultElementType()); in getGEPInductionOperand()
158 while (LastOperand > 1 && match(Gep->getOperand(LastOperand), m_Zero())) { in getGEPInductionOperand()
160 gep_type_iterator GEPTI = gep_type_begin(Gep); in getGEPInductionOperand()
/llvm-project-15.0.7/llvm/test/Instrumentation/AddressSanitizer/
H A Dinstrument_global.ll42 ; GlobSt is accessed with Gep that has non-0 first index -- can't optimize.
/llvm-project-15.0.7/polly/lib/Support/
H A DScopHelper.cpp505 static bool hasVariantIndex(GetElementPtrInst *Gep, Loop *L, Region &R, in hasVariantIndex() argument
507 for (const Use &Val : llvm::drop_begin(Gep->operands(), 1)) { in hasVariantIndex()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp2919 auto SelectGepWithBase = [&](GetElementPtrInst *Gep, Value *Base, in visitSelectInst()
2921 Value *Ptr = Gep->getPointerOperand(); in visitSelectInst()
2922 if (Gep->getNumOperands() != 2 || Gep->getPointerOperand() != Base || in visitSelectInst()
2923 !Gep->hasOneUse()) in visitSelectInst()
2925 Value *Idx = Gep->getOperand(1); in visitSelectInst()
2928 Type *ElementType = Gep->getResultElementType(); in visitSelectInst()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DVectorUtils.h332 unsigned getGEPInductionOperand(const GetElementPtrInst *Gep);
/llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp6198 MachineInstr *Gep = MRI.getVRegDef(Root.getReg()); in selectAddrModeRegisterOffset() local
6199 if (Gep->getOpcode() != TargetOpcode::G_PTR_ADD) in selectAddrModeRegisterOffset()
6205 if (!MRI.hasOneNonDBGUse(Gep->getOperand(0).getReg())) in selectAddrModeRegisterOffset()
6210 MIB.addUse(Gep->getOperand(1).getReg()); in selectAddrModeRegisterOffset()
6213 MIB.addUse(Gep->getOperand(2).getReg()); in selectAddrModeRegisterOffset()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstructions.h5345 if (auto *Gep = dyn_cast<GetElementPtrInst>(V))
5346 return Gep->getPointerOperand();
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp4533 } else if (auto *Gep = dyn_cast<GetElementPtrInst>(I)) { in generateKeySubkey() local
4534 if (Gep->getNumOperands() == 2 && isa<ConstantInt>(Gep->getOperand(1))) in generateKeySubkey()
4535 SubKey = hash_value(Gep->getPointerOperand()); in generateKeySubkey()
4537 SubKey = hash_value(Gep); in generateKeySubkey()
H A DLoopVectorize.cpp6276 auto *Gep = dyn_cast<GetElementPtrInst>(Ptr); in getAddressAccessSCEV() local
6277 if (!Gep) in getAddressAccessSCEV()
6283 unsigned NumOperands = Gep->getNumOperands(); in getAddressAccessSCEV()
6285 Value *Opd = Gep->getOperand(i); in getAddressAccessSCEV()