LLVM API Documentation

llvm::InlineCostAnalyzer Class Reference

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

#include <InlineCost.h>

Collaboration diagram for llvm::InlineCostAnalyzer:
[legend]

List of all members.

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.

Classes

struct  ArgInfo
struct  FunctionInfo


Detailed Description

InlineCostAnalyzer - Cost analyzer used by inliner.

Definition at line 64 of file InlineCost.h.


Member Function Documentation

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

float 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.

Definition at line 302 of file InlineCost.cpp.

References FunctionInfo, and llvm::CallSite::getCalledFunction().

void llvm::InlineCostAnalyzer::resetCachedCostInfo ( Function *  Caller  )  [inline]

resetCachedFunctionInfo - erase any cached cost info for this function.

Definition at line 133 of file InlineCost.h.


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