Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DGVNHoist.cpp490 Instruction *Gep) const;
921 Instruction *Gep) const { in makeGepsAvailable()
924 Instruction *ClonedGep = Gep->clone(); in makeGepsAvailable()
925 for (unsigned i = 0, e = Gep->getNumOperands(); i != e; ++i) in makeGepsAvailable()
926 if (Instruction *Op = dyn_cast<Instruction>(Gep->getOperand(i))) { in makeGepsAvailable()
957 Repl->replaceUsesOfWith(Gep, ClonedGep); in makeGepsAvailable()
1040 GetElementPtrInst *Gep = nullptr; in makeGepOperandsAvailable() local
1043 Gep = dyn_cast<GetElementPtrInst>(Ld->getPointerOperand()); in makeGepOperandsAvailable()
1045 Gep = dyn_cast<GetElementPtrInst>(St->getPointerOperand()); in makeGepOperandsAvailable()
1059 if (!Gep || !allGepOperandsAvailable(Gep, HoistPt)) in makeGepOperandsAvailable()
[all …]
H A DScalarizeMaskedMemIntrin.cpp182 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, Idx); in scalarizeMaskedLoad() local
183 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad()
231 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, Idx); in scalarizeMaskedLoad() local
232 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad()
315 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, Idx); in scalarizeMaskedStore() local
316 Builder.CreateAlignedStore(OneElt, Gep, AdjustedAlignVal); in scalarizeMaskedStore()
362 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, Idx); in scalarizeMaskedStore() local
363 Builder.CreateAlignedStore(OneElt, Gep, AdjustedAlignVal); in scalarizeMaskedStore()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroCleanup.cpp39 auto *Gep = Builder.CreateConstInBoundsGEP2_32(FrameTy, FramePtr, 0, Index); in lowerSubFn() local
40 auto *Load = Builder.CreateLoad(FrameTy->getElementType(Index), Gep); in lowerSubFn()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopAccessAnalysis.cpp2735 static unsigned getGEPInductionOperand(const GetElementPtrInst *Gep) { in getGEPInductionOperand() argument
2736 const DataLayout &DL = Gep->getModule()->getDataLayout(); in getGEPInductionOperand()
2737 unsigned LastOperand = Gep->getNumOperands() - 1; in getGEPInductionOperand()
2738 TypeSize GEPAllocSize = DL.getTypeAllocSize(Gep->getResultElementType()); in getGEPInductionOperand()
2741 while (LastOperand > 1 && match(Gep->getOperand(LastOperand), m_Zero())) { in getGEPInductionOperand()
2743 gep_type_iterator GEPTI = gep_type_begin(Gep); in getGEPInductionOperand()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp3540 auto SelectGepWithBase = [&](GetElementPtrInst *Gep, Value *Base, in visitSelectInst()
3542 Value *Ptr = Gep->getPointerOperand(); in visitSelectInst()
3543 if (Gep->getNumOperands() != 2 || Gep->getPointerOperand() != Base || in visitSelectInst()
3544 !Gep->hasOneUse()) in visitSelectInst()
3546 Value *Idx = Gep->getOperand(1); in visitSelectInst()
3549 Type *ElementType = Gep->getResultElementType(); in visitSelectInst()
3556 if (Gep->isInBounds()) in visitSelectInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp7099 MachineInstr *Gep = MRI.getVRegDef(Root.getReg()); in selectAddrModeRegisterOffset() local
7100 if (Gep->getOpcode() != TargetOpcode::G_PTR_ADD) in selectAddrModeRegisterOffset()
7106 if (!MRI.hasOneNonDBGUse(Gep->getOperand(0).getReg())) in selectAddrModeRegisterOffset()
7111 MIB.addUse(Gep->getOperand(1).getReg()); in selectAddrModeRegisterOffset()
7114 MIB.addUse(Gep->getOperand(2).getReg()); in selectAddrModeRegisterOffset()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp722 if (auto *Gep = dyn_cast<GetElementPtrInst>(I)) { in getSameOpcode() local
723 if (Gep->getNumOperands() != 2 || in getSameOpcode()
724 Gep->getOperand(0)->getType() != IBase->getOperand(0)->getType()) in getSameOpcode()
5210 } else if (auto *Gep = dyn_cast<GetElementPtrInst>(I)) { in generateKeySubkey() local
5211 if (Gep->getNumOperands() == 2 && isa<ConstantInt>(Gep->getOperand(1))) in generateKeySubkey()
5212 SubKey = hash_value(Gep->getPointerOperand()); in generateKeySubkey()
5214 SubKey = hash_value(Gep); in generateKeySubkey()
H A DLoopVectorize.cpp6037 auto *Gep = dyn_cast<GetElementPtrInst>(Ptr); in getAddressAccessSCEV() local
6038 if (!Gep) in getAddressAccessSCEV()
6044 unsigned NumOperands = Gep->getNumOperands(); in getAddressAccessSCEV()
6046 Value *Opd = Gep->getOperand(i); in getAddressAccessSCEV()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstructions.h5394 if (auto *Gep = dyn_cast<GetElementPtrInst>(V))
5395 return Gep->getPointerOperand();