Lines Matching refs:Function
1 //===- BasicInliner.cpp - Basic function level inliner --------------------===//
10 // This file defines a simple function based inliner that does not use
17 #include "llvm/Function.h"
44 /// addFunction - Add function into the list of functions to process.
47 void addFunction(Function *F) {
51 /// neverInlineFunction - Sometimes a function is never to be inlined
53 void neverInlineFunction(Function *F) {
64 std::vector<Function *> Functions;
65 SmallPtrSet<const Function *, 16> NeverInline;
66 SmallPtrSet<Function *, 8> DeadFunctions;
80 for (std::vector<Function *>::iterator FI = Functions.begin(),
82 Function *F = *FI;
83 for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB)
101 if (Function *Callee = CS.getCalledFunction()) {
146 for(SmallPtrSet<Function *, 8>::iterator I = DeadFunctions.begin(),
148 Function *D = *I;
162 /// addFunction - Add function into the list of functions to process.
165 void BasicInliner::addFunction(Function *F) {
169 /// neverInlineFunction - Sometimes a function is never to be inlined because
171 void BasicInliner::neverInlineFunction(Function *F) {