14 #define DEBUG_TYPE "inline"
36 class SimpleInliner :
public Inliner {
52 return ICA->getInlineCost(CS, getInlineThreshold(CS));
63 "Function Integration/Inlining",
false,
false)
72 return new SimpleInliner(Threshold);
76 ICA = &getAnalysis<InlineCostAnalysis>();
80 void SimpleInliner::getAnalysisUsage(
AnalysisUsage &AU)
const {
static PassRegistry * getPassRegistry()
Function Integration Inlining
void initializeSimpleInlinerPass(PassRegistry &)
Represents the cost of inlining a function.
AnalysisUsage & addRequired()
#define INITIALIZE_PASS_DEPENDENCY(depName)
#define INITIALIZE_PASS_END(passName, arg, name, cfg, analysis)
ID
LLVM Calling Convention Representation.
Cost analyzer used by inliner.
Function Integration false
virtual void getAnalysisUsage(AnalysisUsage &Info) const
static int const Threshold
Pass * createFunctionInliningPass()
CallGraphSCC - This is a single SCC that a CallGraphSCCPass is run on.
virtual bool runOnSCC(CallGraphSCC &SCC)
INITIALIZE_PASS_BEGIN(SimpleInliner,"inline","Function Integration/Inlining", false, false) INITIALIZE_PASS_END(SimpleInliner