/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | GVNHoist.cpp | 478 Instruction *Gep) const; 909 Instruction *Gep) const { in makeGepsAvailable() 910 assert(allGepOperandsAvailable(Gep, HoistPt) && "GEP operands not available"); in makeGepsAvailable() 912 Instruction *ClonedGep = Gep->clone(); in makeGepsAvailable() 913 for (unsigned i = 0, e = Gep->getNumOperands(); i != e; ++i) in makeGepsAvailable() 914 if (Instruction *Op = dyn_cast<Instruction>(Gep->getOperand(i))) { in makeGepsAvailable() 946 if (OtherGep != Gep) { in makeGepsAvailable() 953 Repl->replaceUsesOfWith(Gep, ClonedGep); in makeGepsAvailable() 1036 GetElementPtrInst *Gep = nullptr; in makeGepOperandsAvailable() local 1039 Gep = dyn_cast<GetElementPtrInst>(Ld->getPointerOperand()); in makeGepOperandsAvailable() [all …]
|
H A D | ScalarizeMaskedMemIntrin.cpp | 182 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/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroCleanup.cpp | 40 auto *Gep = Builder.CreateConstInBoundsGEP2_32(FrameTy, FramePtr, 0, Index); in lowerSubFn() local 41 auto *Load = Builder.CreateLoad(FrameTy->getElementType(Index), Gep); in lowerSubFn()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | LoopAccessAnalysis.cpp | 2806 static unsigned getGEPInductionOperand(const GetElementPtrInst *Gep) { in getGEPInductionOperand() argument 2807 const DataLayout &DL = Gep->getDataLayout(); in getGEPInductionOperand() 2808 unsigned LastOperand = Gep->getNumOperands() - 1; in getGEPInductionOperand() 2809 TypeSize GEPAllocSize = DL.getTypeAllocSize(Gep->getResultElementType()); in getGEPInductionOperand() 2812 while (LastOperand > 1 && match(Gep->getOperand(LastOperand), m_Zero())) { in getGEPInductionOperand() 2814 gep_type_iterator GEPTI = gep_type_begin(Gep); in getGEPInductionOperand()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSelect.cpp | 3761 auto SelectGepWithBase = [&](GetElementPtrInst *Gep, Value *Base, in visitSelectInst() 3763 Value *Ptr = Gep->getPointerOperand(); in visitSelectInst() 3764 if (Gep->getNumOperands() != 2 || Gep->getPointerOperand() != Base || in visitSelectInst() 3765 !Gep->hasOneUse()) in visitSelectInst() 3767 Value *Idx = Gep->getOperand(1); in visitSelectInst() 3770 Type *ElementType = Gep->getSourceElementType(); in visitSelectInst() 3778 Gep->getNoWrapFlags()); in visitSelectInst()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64InstructionSelector.cpp | 7229 MachineInstr *Gep = MRI.getVRegDef(Root.getReg()); in selectAddrModeRegisterOffset() local 7230 if (Gep->getOpcode() != TargetOpcode::G_PTR_ADD) in selectAddrModeRegisterOffset() 7236 if (!MRI.hasOneNonDBGUse(Gep->getOperand(0).getReg())) in selectAddrModeRegisterOffset() 7241 MIB.addUse(Gep->getOperand(1).getReg()); in selectAddrModeRegisterOffset() 7244 MIB.addUse(Gep->getOperand(2).getReg()); in selectAddrModeRegisterOffset()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Instructions.h | 4891 if (auto *Gep = dyn_cast<GetElementPtrInst>(V)) 4892 return Gep->getPointerOperand();
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | LoopVectorize.cpp | 5541 auto *Gep = dyn_cast<GetElementPtrInst>(Ptr); in getAddressAccessSCEV() local 5542 if (!Gep) in getAddressAccessSCEV() 5548 unsigned NumOperands = Gep->getNumOperands(); in getAddressAccessSCEV() 5550 Value *Opd = Gep->getOperand(i); in getAddressAccessSCEV()
|
H A D | SLPVectorizer.cpp | 868 if (auto *Gep = dyn_cast<GetElementPtrInst>(I)) { in getSameOpcode() local 869 if (Gep->getNumOperands() != 2 || in getSameOpcode() 870 Gep->getOperand(0)->getType() != IBase->getOperand(0)->getType()) in getSameOpcode() 6158 } else if (auto *Gep = dyn_cast<GetElementPtrInst>(I)) { in generateKeySubkey() local 6159 if (Gep->getNumOperands() == 2 && isa<ConstantInt>(Gep->getOperand(1))) in generateKeySubkey() 6160 SubKey = hash_value(Gep->getPointerOperand()); in generateKeySubkey() 6162 SubKey = hash_value(Gep); in generateKeySubkey()
|