Lines Matching defs:Gep
477 Instruction *Gep) const;
896 // Gep is available if all operands of GepOp are available.
898 // Gep is not available if it has operands other than GEPs that are
908 Instruction *Gep) const {
909 assert(allGepOperandsAvailable(Gep, HoistPt) && "GEP operands not available");
911 Instruction *ClonedGep = Gep->clone();
912 for (unsigned i = 0, e = Gep->getNumOperands(); i != e; ++i)
913 if (Instruction *Op = dyn_cast<Instruction>(Gep->getOperand(i))) {
924 // Copy Gep and replace its uses in Repl with ClonedGep.
944 // Gepd, so Gep is skipped to avoid merging it twice.
945 if (OtherGep != Gep) {
951 // Replace uses of Gep with ClonedGep in Repl.
952 Repl->replaceUsesOfWith(Gep, ClonedGep);
1035 GetElementPtrInst *Gep = nullptr;
1038 Gep = dyn_cast<GetElementPtrInst>(Ld->getPointerOperand());
1040 Gep = dyn_cast<GetElementPtrInst>(St->getPointerOperand());
1053 // Check whether we can compute the Gep at HoistPt.
1054 if (!Gep || !allGepOperandsAvailable(Gep, HoistPt))
1057 makeGepsAvailable(Repl, HoistPt, InstructionsToHoist, Gep);