Lines Matching defs:Gep
478 Instruction *Gep) const;
897 // Gep is available if all operands of GepOp are available.
899 // Gep is not available if it has operands other than GEPs that are
909 Instruction *Gep) const {
910 assert(allGepOperandsAvailable(Gep, HoistPt) && "GEP operands not available");
912 Instruction *ClonedGep = Gep->clone();
913 for (unsigned i = 0, e = Gep->getNumOperands(); i != e; ++i)
914 if (Instruction *Op = dyn_cast<Instruction>(Gep->getOperand(i))) {
925 // Copy Gep and replace its uses in Repl with ClonedGep.
945 // Gepd, so Gep is skipped to avoid merging it twice.
946 if (OtherGep != Gep) {
952 // Replace uses of Gep with ClonedGep in Repl.
953 Repl->replaceUsesOfWith(Gep, ClonedGep);
1036 GetElementPtrInst *Gep = nullptr;
1039 Gep = dyn_cast<GetElementPtrInst>(Ld->getPointerOperand());
1041 Gep = dyn_cast<GetElementPtrInst>(St->getPointerOperand());
1054 // Check whether we can compute the Gep at HoistPt.
1055 if (!Gep || !allGepOperandsAvailable(Gep, HoistPt))
1058 makeGepsAvailable(Repl, HoistPt, InstructionsToHoist, Gep);