Lines Matching refs:GetElementPtrInst

195   SmallVector<GetElementPtrInst *> Members;
278 static GetElementPtrInst *reconstructGEP(CallInst *Call, int Delta) { in reconstructGEP()
284 GetElementPtrInst::Create(GEPPointeeType, Call->getOperand(Delta), in reconstructGEP()
291 static void reconstructCommon(CallInst *Call, GetElementPtrInst *GEP, T *Insn, in reconstructCommon()
303 std::pair<GetElementPtrInst *, LoadInst *>
305 GetElementPtrInst *GEP = reconstructGEP(Call, 0); in reconstructLoad()
314 std::pair<GetElementPtrInst *, StoreInst *>
316 GetElementPtrInst *GEP = reconstructGEP(Call, 1); in reconstructStore()
332 static bool foldGEPChainAsStructAccess(SmallVector<GetElementPtrInst *> &GEPs, in foldGEPChainAsStructAccess()
337 if (!all_of(GEPs, [=](GetElementPtrInst *GEP) { in foldGEPChainAsStructAccess()
342 GetElementPtrInst *First = GEPs[0]; in foldGEPChainAsStructAccess()
350 GetElementPtrInst *GEP = *Iter; in foldGEPChainAsStructAccess()
372 static bool foldGEPChainAsU8Access(SmallVector<GetElementPtrInst *> &GEPs, in foldGEPChainAsU8Access()
377 GetElementPtrInst *First = GEPs[0]; in foldGEPChainAsU8Access()
382 for (GetElementPtrInst *GEP : GEPs) { in foldGEPChainAsU8Access()
408 static bool allZeroIndices(SmallVector<GetElementPtrInst *> &GEPs) { in allZeroIndices()
409 return GEPs.empty() || all_of(GEPs, [=](GetElementPtrInst *GEP) { in allZeroIndices()
415 SmallVector<GetElementPtrInst *> &GEPs, in tryToReplaceWithGEPBuiltin()
441 if (auto *GEP = dyn_cast<GetElementPtrInst>(U)) in isPointerOperand()
457 SmallVector<GetElementPtrInst *> &GEPs,
462 SmallVector<GetElementPtrInst *> &GEPs, in rewriteUses()
503 SmallVector<GetElementPtrInst *> &GEPs, in rewriteAccessChain()
545 } else if (auto *GEP = dyn_cast<GetElementPtrInst>(Insn)) { in rewriteAccessChain()
576 SmallVector<GetElementPtrInst *> GEPs; in rewriteAccessChain()
616 if (auto *GEP = dyn_cast<GetElementPtrInst>(U)) in removePAICalls()