Lines Matching refs:Function
130 FunctionComparator(const Function *F1, const Function *F2) in FunctionComparator()
353 const Function *FnL, *FnR;
392 mutable AssertingVH<Function> F;
395 FunctionNode(Function *F) : F(F) {} in FunctionNode()
396 Function *getFunc() const { return F; } in getFunc()
400 void replaceBy(Function *G) const { in replaceBy()
1032 for (Function::const_arg_iterator ArgLI = FnL->arg_begin(), in compare()
1106 bool insert(Function *NewFunction);
1110 void remove(Function *F);
1118 void replaceDirectCallers(Function *Old, Function *New);
1123 void mergeTwoFunctions(Function *F, Function *G);
1126 void writeThunkOrAlias(Function *F, Function *G);
1130 void writeThunk(Function *F, Function *G);
1133 void writeAlias(Function *F, Function *G);
1136 void replaceFunctionInTree(FnTreeType::iterator &IterToF, Function *G);
1167 Function *F1 = cast<Function>(*I); in doSanityCheck()
1168 Function *F2 = cast<Function>(*J); in doSanityCheck()
1190 Function *F3 = cast<Function>(*K); in doSanityCheck()
1249 Function *F = cast<Function>(*I); in runOnModule()
1263 Function *F = cast<Function>(*I); in runOnModule()
1278 void MergeFunctions::replaceDirectCallers(Function *Old, Function *New) { in replaceDirectCallers()
1292 void MergeFunctions::writeThunkOrAlias(Function *F, Function *G) { in writeThunkOrAlias()
1334 void MergeFunctions::writeThunk(Function *F, Function *G) { in writeThunk()
1347 Function *NewG = Function::Create(G->getFunctionType(), G->getLinkage(), "", in writeThunk()
1355 for (Function::arg_iterator AI = NewG->arg_begin(), AE = NewG->arg_end(); in writeThunk()
1381 void MergeFunctions::writeAlias(Function *F, Function *G) { in writeAlias()
1396 void MergeFunctions::mergeTwoFunctions(Function *F, Function *G) { in mergeTwoFunctions()
1401 Function *H = Function::Create(F->getFunctionType(), F->getLinkage(), "", in mergeTwoFunctions()
1430 Function *G) { in replaceFunctionInTree()
1431 Function *F = IterToF->getFunc(); in replaceFunctionInTree()
1445 bool MergeFunctions::insert(Function *NewFunction) { in insert()
1478 Function *F = OldF.getFunc(); in insert()
1490 Function *DeleteF = NewFunction; in insert()
1497 void MergeFunctions::remove(Function *F) { in remove()