llvm::InlineCostAnalyzer Class Reference

InlineCostAnalyzer - Cost analyzer used by inliner. More...

#include <InlineCost.h>

List of all members.

Classes

struct  ArgInfo
struct  FunctionInfo

Public Member Functions

InlineCost getInlineCost (CallSite CS, SmallPtrSet< const Function *, 16 > &NeverInline)
float getInlineFudgeFactor (CallSite CS)
void resetCachedCostInfo (Function *Caller)
 resetCachedFunctionInfo - erase any cached cost info for this function.
void growCachedCostInfo (Function *Caller, Function *Callee)


Detailed Description

InlineCostAnalyzer - Cost analyzer used by inliner.

Member Function Documentation

InlineCost llvm::InlineCostAnalyzer::getInlineCost ( CallSite  CS,
SmallPtrSet< const Function *, 16 > &  NeverInline 
)

getInlineCost - The heuristic used to determine if we should inline the function call or not.

float llvm::InlineCostAnalyzer::getInlineFudgeFactor ( CallSite  CS  ) 

getInlineFudgeFactor - Return a > 1.0 factor if the inliner should use a higher threshold to determine if the function call should be inlined.

void llvm::InlineCostAnalyzer::growCachedCostInfo ( Function *  Caller,
Function *  Callee 
)

growCachedCostInfo - update the cached cost info for Caller after Callee has been inlined. If Callee is NULL it means a dead call has been eliminated.


The documentation for this class was generated from the following file:

Generated on Fri Mar 19 01:41:24 2010 by  doxygen 1.5.8