Lines Matching refs:Call
108 auto *Call = dyn_cast<CallInst>(&I); in removePassThroughBuiltin() local
109 if (!Call) in removePassThroughBuiltin()
111 auto *GV = dyn_cast<GlobalValue>(Call->getCalledOperand()); in removePassThroughBuiltin()
117 Value *Arg = Call->getArgOperand(1); in removePassThroughBuiltin()
118 Call->replaceAllUsesWith(Arg); in removePassThroughBuiltin()
119 ToBeDeleted = Call; in removePassThroughBuiltin()
138 auto *Call = dyn_cast<CallInst>(&I); in removeCompareBuiltin() local
139 if (!Call) in removeCompareBuiltin()
141 auto *GV = dyn_cast<GlobalValue>(Call->getCalledOperand()); in removeCompareBuiltin()
148 Value *Arg0 = Call->getArgOperand(0); in removeCompareBuiltin()
149 Value *Arg1 = Call->getArgOperand(1); in removeCompareBuiltin()
150 Value *Arg2 = Call->getArgOperand(2); in removeCompareBuiltin()
156 BB.getInstList().insert(Call->getIterator(), ICmp); in removeCompareBuiltin()
158 Call->replaceAllUsesWith(ICmp); in removeCompareBuiltin()
159 ToBeDeleted = Call; in removeCompareBuiltin()