Lines Matching refs:Function
11 // that surrounds the body of the function.
40 Function* unswitchFunction(Function* F);
50 Function* PartialInliner::unswitchFunction(Function* F) {
51 // First, verify that this function is an unswitching candidate...
71 // Clone the function, so that we can hack away on it.
73 Function* duplicateFunction = CloneFunction(F, VMap,
114 for (Function::iterator FI = duplicateFunction->begin(),
125 Function* extractedFunction = ExtractCodeRegion(DT, toExtract);
140 // users (function pointers, etc.) back to the original function.
150 std::vector<Function*> worklist;
158 Function* currFunc = worklist.back();
164 for (Function::use_iterator UI = currFunc->use_begin(),
174 if (Function* newFunc = unswitchFunction(currFunc)) {