Lines Matching refs:Function
13 // call-graph in SCC order: that is, they process function bottom-up, except for
23 #include "llvm/IR/Function.h"
145 if (Function *F = (*I)->getFunction()) {
152 // The function pass(es) modified the IR, they may have clobbered the
168 /// This function returns true if it devirtualized an existing function call,
170 /// a function pass like GVN optimizes away stuff feeding the indirect call.
192 Function *F = CGN->getFunction();
195 // Walk the function body looking for call sites. Sync up the call sites in
196 // CGN with those actually in the function.
202 // Get the set of call sites currently in the function.
204 // If this call site is null, then the function pass deleted the call
212 // If the call edge is not from a call or invoke, then the function
245 // Loop over all of the instructions in the function, getting the callsites.
249 for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB)
253 Function *Callee = CS.getCalledFunction();
285 if (Function *Callee = CS.getCalledFunction()) {
309 if (Function *Callee = CS.getCalledFunction()) {
335 // After scanning this function, if we still have entries in callsites, then
364 /// specified SCC. This keeps track of whether a function pass devirtualizes
372 // CallGraphSCC Passes and other random function passes. Because other
373 // random function passes are not CallGraph aware, they may clobber the
375 // is set to false when we run a function pass so that we know to clean up
443 // case where a function pass devirtualizes a call to a function. For
444 // example, it is very common for a function pass (often GVN or instcombine)