LLVM API Documentation

llvm::InlineCost Class Reference

#include <InlineCost.h>

Collaboration diagram for llvm::InlineCost:
[legend]

List of all members.

Public Member Functions

bool isVariable () const
bool isAlways () const
bool isNever () const
int getValue () const

Static Public Member Functions

static InlineCost get (int Cost)
static InlineCost getAlways ()
static InlineCost getNever ()


Detailed Description

InlineCost - Represent the cost of inlining a function. This supports special values for functions which should "always" or "never" be inlined. Otherwise, the cost represents a unitless amount; smaller values increase the likelyhood of the function being inlined.

Definition at line 33 of file InlineCost.h.


Member Function Documentation

static InlineCost llvm::InlineCost::get ( int  Cost  )  [inline, static]

Definition at line 47 of file InlineCost.h.

Referenced by llvm::InlineCostAnalyzer::getInlineCost().

static InlineCost llvm::InlineCost::getAlways (  )  [inline, static]

Definition at line 48 of file InlineCost.h.

Referenced by llvm::InlineCostAnalyzer::getInlineCost().

static InlineCost llvm::InlineCost::getNever (  )  [inline, static]

Definition at line 49 of file InlineCost.h.

Referenced by llvm::InlineCostAnalyzer::getInlineCost().

bool llvm::InlineCost::isVariable (  )  const [inline]

Definition at line 51 of file InlineCost.h.

bool llvm::InlineCost::isAlways (  )  const [inline]

Definition at line 52 of file InlineCost.h.

Referenced by llvm::BasicInlinerImpl::inlineFunctions().

bool llvm::InlineCost::isNever (  )  const [inline]

Definition at line 53 of file InlineCost.h.

Referenced by llvm::BasicInlinerImpl::inlineFunctions().

int llvm::InlineCost::getValue (  )  const [inline]

getValue() - Return a "variable" inline cost's amount. It is an error to call this on an "always" or "never" InlineCost.

Definition at line 57 of file InlineCost.h.

Referenced by llvm::BasicInlinerImpl::inlineFunctions().


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