Lines Matching refs:Call
119 auto *Call = dyn_cast<CallInst>(&I); in removePassThroughBuiltin() local
120 if (!Call) in removePassThroughBuiltin()
122 auto *GV = dyn_cast<GlobalValue>(Call->getCalledOperand()); in removePassThroughBuiltin()
128 Value *Arg = Call->getArgOperand(1); in removePassThroughBuiltin()
129 Call->replaceAllUsesWith(Arg); in removePassThroughBuiltin()
130 ToBeDeleted = Call; in removePassThroughBuiltin()
149 auto *Call = dyn_cast<CallInst>(&I); in removeCompareBuiltin() local
150 if (!Call) in removeCompareBuiltin()
152 auto *GV = dyn_cast<GlobalValue>(Call->getCalledOperand()); in removeCompareBuiltin()
159 Value *Arg0 = Call->getArgOperand(0); in removeCompareBuiltin()
160 Value *Arg1 = Call->getArgOperand(1); in removeCompareBuiltin()
161 Value *Arg2 = Call->getArgOperand(2); in removeCompareBuiltin()
167 ICmp->insertBefore(Call); in removeCompareBuiltin()
169 Call->replaceAllUsesWith(ICmp); in removeCompareBuiltin()
170 ToBeDeleted = Call; in removeCompareBuiltin()
204 auto *Call = dyn_cast<CallInst>(V); in sinkMinMaxInBB() local
205 if (!Call) in sinkMinMaxInBB()
208 auto *Called = dyn_cast<Function>(Call->getCalledOperand()); in sinkMinMaxInBB()
222 if (!Filter(Call)) in sinkMinMaxInBB()
225 Info.MinMax = Call; in sinkMinMaxInBB()
371 static void unrollGEPLoad(CallInst *Call) { in unrollGEPLoad() argument
372 auto [GEP, Load] = BPFPreserveStaticOffsetPass::reconstructLoad(Call); in unrollGEPLoad()
373 GEP->insertBefore(Call); in unrollGEPLoad()
374 Load->insertBefore(Call); in unrollGEPLoad()
375 Call->replaceAllUsesWith(Load); in unrollGEPLoad()
376 Call->eraseFromParent(); in unrollGEPLoad()
379 static void unrollGEPStore(CallInst *Call) { in unrollGEPStore() argument
380 auto [GEP, Store] = BPFPreserveStaticOffsetPass::reconstructStore(Call); in unrollGEPStore()
381 GEP->insertBefore(Call); in unrollGEPStore()
382 Store->insertBefore(Call); in unrollGEPStore()
383 Call->eraseFromParent(); in unrollGEPStore()
391 if (auto *Call = dyn_cast<CallInst>(&Insn)) in removeGEPBuiltinsInFunc() local
392 if (auto *Called = Call->getCalledFunction()) in removeGEPBuiltinsInFunc()
395 GEPLoads.push_back(Call); in removeGEPBuiltinsInFunc()
398 GEPStores.push_back(Call); in removeGEPBuiltinsInFunc()