Lines Matching refs:AggFunc
819 Function *AggFunc = Group.OutlinedFunction; in replaceCalledFunction() local
820 assert(AggFunc && "Function to replace with is nullptr?"); in replaceCalledFunction()
825 if (AggFunc->arg_size() == Call->arg_size()) { in replaceCalledFunction()
827 << *AggFunc << " with same number of arguments\n"); in replaceCalledFunction()
828 Call->setCalledFunction(AggFunc); in replaceCalledFunction()
836 for (unsigned AggArgIdx = 0; AggArgIdx < AggFunc->arg_size(); AggArgIdx++) { in replaceCalledFunction()
838 if (AggArgIdx == AggFunc->arg_size() - 1 && in replaceCalledFunction()
877 static_cast<PointerType *>(AggFunc->getArg(AggArgIdx)->getType()))); in replaceCalledFunction()
881 << *AggFunc << " with new set of arguments\n"); in replaceCalledFunction()
883 Call = CallInst::Create(AggFunc->getFunctionType(), AggFunc, NewCallArgs, "", in replaceCalledFunction()
1169 Function *AggFunc = OG.OutlinedFunction; in createSwitchStatement() local
1172 BasicBlock::Create(M.getContext(), "final_block", AggFunc); in createSwitchStatement()
1177 LLVM_DEBUG(dbgs() << "Create switch statement in " << *AggFunc << " for " in createSwitchStatement()
1180 SwitchInst::Create(AggFunc->getArg(AggFunc->arg_size() - 1), in createSwitchStatement()