Home | History | Annotate | Download | only in IPA

Lines Matching refs:Function

13 // call-graph in SCC order: that is, they process function bottom-up, except for
21 #include "llvm/Function.h"
142 if (Function *F = (*I)->getFunction()) {
149 // The function pass(es) modified the IR, they may have clobbered the
165 /// This function returns true if it devirtualized an existing function call,
167 /// a function pass like GVN optimizes away stuff feeding the indirect call.
189 Function *F = CGN->getFunction();
192 // Walk the function body looking for call sites. Sync up the call sites in
193 // CGN with those actually in the function.
199 // Get the set of call sites currently in the function.
201 // If this call site is null, then the function pass deleted the call
209 // If the call edge is not from a call or invoke, then the function
242 // Loop over all of the instructions in the function, getting the callsites.
246 for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB)
280 if (Function *Callee = CS.getCalledFunction()) {
304 if (Function *Callee = CS.getCalledFunction()) {
330 // After scanning this function, if we still have entries in callsites, then
359 /// specified SCC. This keeps track of whether a function pass devirtualizes
367 // CallGraphSCC Passes and other random function passes. Because other
368 // random function passes are not CallGraph aware, they may clobber the
370 // is set to false when we run a function pass so that we know to clean up
438 // case where a function pass devirtualizes a call to a function. For
439 // example, it is very common for a function pass (often GVN or instcombine)