Lines Matching refs:DirectCallee

218   Function *DirectCallee = Symtab->getFunction(Target);  in isPromotionLegal()  local
219 if (DirectCallee == nullptr) in isPromotionLegal()
224 Type *FuncRetType = DirectCallee->getReturnType(); in isPromotionLegal()
231 FunctionType *DirectCalleeType = DirectCallee->getFunctionType(); in isPromotionLegal()
250 TargetFunction = DirectCallee; in isPromotionLegal()
311 static void createIfThenElse(Instruction *Inst, Function *DirectCallee, in createIfThenElse() argument
324 BBBuilder.CreateBitCast(DirectCallee, Type::getInt8PtrTy(Ctx), ""); in createIfThenElse()
426 Function *DirectCallee) { in insertCallRetCast() argument
431 Type *FuncRetType = DirectCallee->getReturnType(); in insertCallRetCast()
454 Function *DirectCallee, in createDirectCallInst() argument
459 CI->setCalledFunction(DirectCallee); in createDirectCallInst()
460 CI->mutateFunctionType(DirectCallee->getFunctionType()); in createDirectCallInst()
468 II->setCalledFunction(DirectCallee); in createDirectCallInst()
469 II->mutateFunctionType(DirectCallee->getFunctionType()); in createDirectCallInst()
479 FunctionType *DirectCalleeType = DirectCallee->getFunctionType(); in createDirectCallInst()
490 return insertCallRetCast(Inst, NewInst, DirectCallee); in createDirectCallInst()
495 Function *DirectCallee) { in insertCallRetPHI() argument
527 void ICallPromotionFunc::promote(Instruction *Inst, Function *DirectCallee, in promote() argument
529 assert(DirectCallee != nullptr); in promote()
537 createIfThenElse(Inst, DirectCallee, Count, TotalCount, &DirectCallBB, in promote()
541 createDirectCallInst(Inst, DirectCallee, DirectCallBB, MergeBB); in promote()
565 insertCallRetPHI(Inst, NewInst, DirectCallee); in promote()
572 Twine("Promote indirect call to ") + DirectCallee->getName() + in promote()