Lines Matching refs:GetElementPtrInst

194   SmallVector<GetElementPtrInst *> Members;
277 static GetElementPtrInst *reconstructGEP(CallInst *Call, int Delta) { in reconstructGEP()
283 GetElementPtrInst::Create(GEPPointeeType, Call->getOperand(Delta), in reconstructGEP()
290 static void reconstructCommon(CallInst *Call, GetElementPtrInst *GEP, T *Insn, in reconstructCommon()
302 std::pair<GetElementPtrInst *, LoadInst *>
304 GetElementPtrInst *GEP = reconstructGEP(Call, 0); in reconstructLoad()
313 std::pair<GetElementPtrInst *, StoreInst *>
315 GetElementPtrInst *GEP = reconstructGEP(Call, 1); in reconstructStore()
331 static bool foldGEPChainAsStructAccess(SmallVector<GetElementPtrInst *> &GEPs, in foldGEPChainAsStructAccess()
336 if (!all_of(GEPs, [=](GetElementPtrInst *GEP) { in foldGEPChainAsStructAccess()
341 GetElementPtrInst *First = GEPs[0]; in foldGEPChainAsStructAccess()
349 GetElementPtrInst *GEP = *Iter; in foldGEPChainAsStructAccess()
371 static bool foldGEPChainAsU8Access(SmallVector<GetElementPtrInst *> &GEPs, in foldGEPChainAsU8Access()
376 GetElementPtrInst *First = GEPs[0]; in foldGEPChainAsU8Access()
381 for (GetElementPtrInst *GEP : GEPs) { in foldGEPChainAsU8Access()
407 static bool allZeroIndices(SmallVector<GetElementPtrInst *> &GEPs) { in allZeroIndices()
408 return GEPs.empty() || all_of(GEPs, [=](GetElementPtrInst *GEP) { in allZeroIndices()
414 SmallVector<GetElementPtrInst *> &GEPs, in tryToReplaceWithGEPBuiltin()
440 if (auto *GEP = dyn_cast<GetElementPtrInst>(U)) in isPointerOperand()
456 SmallVector<GetElementPtrInst *> &GEPs,
461 SmallVector<GetElementPtrInst *> &GEPs, in rewriteUses()
502 SmallVector<GetElementPtrInst *> &GEPs, in rewriteAccessChain()
544 } else if (auto *GEP = dyn_cast<GetElementPtrInst>(Insn)) { in rewriteAccessChain()
575 SmallVector<GetElementPtrInst *> GEPs; in rewriteAccessChain()
615 if (auto *GEP = dyn_cast<GetElementPtrInst>(U)) in removePAICalls()