LLVM API Documentation

InlineSimple.cpp File Reference

#include "Inliner.h"
#include "llvm/CallingConv.h"
#include "llvm/Instructions.h"
#include "llvm/IntrinsicInst.h"
#include "llvm/Function.h"
#include "llvm/Type.h"
#include "llvm/Support/CallSite.h"
#include "llvm/Transforms/IPO.h"

Include dependency graph for InlineSimple.cpp:

Go to the source code of this file.

Functions

ModulePassllvm::createFunctionInliningPass ()
static unsigned CountCodeReductionForConstant (Value *V)
static unsigned CountCodeReductionForAlloca (Value *V)

Variables

unsigned ConstantWeight
unsigned AllocaWeight
unsigned NumInsts
unsigned NumBlocks
std::vector< ArgInfo > ArgumentWeights
std::map< const Function *,
FunctionInfo
CachedFunctionInfo
RegisterOpt< SimpleInliner > X ("inline","Function Integration/Inlining")


Function Documentation

static unsigned CountCodeReductionForAlloca ( Value V  )  [static]

Definition at line 109 of file InlineSimple.cpp.

References E, I, and V.

static unsigned CountCodeReductionForConstant ( Value V  )  [static]

Definition at line 66 of file InlineSimple.cpp.

References E, llvm::User::getNumOperands(), llvm::User::getOperand(), II, Inst, and V.


Variable Documentation

unsigned AllocaWeight

Definition at line 27 of file InlineSimple.cpp.

std::vector<ArgInfo> ArgumentWeights

Definition at line 44 of file InlineSimple.cpp.

std::map<const Function*, FunctionInfo> CachedFunctionInfo

Definition at line 54 of file InlineSimple.cpp.

unsigned ConstantWeight

Definition at line 26 of file InlineSimple.cpp.

unsigned NumBlocks

Definition at line 38 of file InlineSimple.cpp.

unsigned NumInsts

Definition at line 38 of file InlineSimple.cpp.

RegisterOpt<SimpleInliner> X("inline","Function Integration/Inlining") [static]