LLVM API Documentation

llvm::BasicInliner Class Reference

#include <BasicInliner.h>

Collaboration diagram for llvm::BasicInliner:
[legend]

List of all members.

Public Member Functions

 BasicInliner (TargetData *T=NULL)
 ~BasicInliner ()
void addFunction (Function *F)
void neverInlineFunction (Function *F)
void inlineFunctions ()


Detailed Description

BasicInliner - BasicInliner provides function level inlining interface. Clients provide list of functions which are inline without using module level call graph information. Note that the BasicInliner is free to delete a function if it is inlined into all call sites.

Definition at line 30 of file BasicInliner.h.


Constructor & Destructor Documentation

llvm::BasicInliner::BasicInliner ( TargetData *  T = NULL  )  [explicit]

Definition at line 152 of file BasicInliner.cpp.

llvm::BasicInliner::~BasicInliner (  ) 

Definition at line 156 of file BasicInliner.cpp.


Member Function Documentation

void llvm::BasicInliner::addFunction ( Function *  F  ) 

addFunction - Add function into the list of functions to process. All functions must be inserted using this interface before invoking inlineFunctions().

addFunction - Add function into the list of functions to process. All functions must be inserted using this interface before invoking inlineFunctions().

Definition at line 163 of file BasicInliner.cpp.

References llvm::BasicInlinerImpl::addFunction().

void llvm::BasicInliner::neverInlineFunction ( Function *  F  ) 

neverInlineFunction - Sometimes a function is never to be inlined because of one or other reason.

neverInlineFunction - Sometimes a function is never to be inlined because of one or other reason.

Definition at line 169 of file BasicInliner.cpp.

References llvm::BasicInlinerImpl::neverInlineFunction().

void llvm::BasicInliner::inlineFunctions (  ) 

inlineFuctions - Walk all call sites in all functions supplied by client. Inline as many call sites as possible. Delete completely inlined functions.

inlineFuctions - Walk all call sites in all functions supplied by client. Inline as many call sites as possible. Delete completely inlined functions.

Definition at line 176 of file BasicInliner.cpp.

References llvm::BasicInlinerImpl::inlineFunctions().


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