LLVM API Documentation

Inliner.cpp File Reference

#include "llvm/Module.h"
#include "llvm/Instructions.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Support/CallSite.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Transforms/IPO/InlinerPass.h"
#include "llvm/Transforms/Utils/Cloning.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/ADT/Statistic.h"
#include <set>

Include dependency graph for Inliner.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "inline"

Functions

 STATISTIC (NumInlined,"Number of functions inlined")
 STATISTIC (NumDeleted,"Number of functions deleted because all callers found")
static bool InlineCallIfPossible (CallSite CS, CallGraph &CG, const std::set< Function * > &SCCFunctions, const TargetData &TD)

Variables

static cl::opt< int > InlineLimit ("inline-threshold", cl::Hidden, cl::init(200), cl::desc("Control the amount of inlining to perform (default = 200)"))


Define Documentation

#define DEBUG_TYPE   "inline"

Definition at line 16 of file Inliner.cpp.


Function Documentation

static bool InlineCallIfPossible ( CallSite  CS,
CallGraph CG,
const std::set< Function * > &  SCCFunctions,
const TargetData TD 
) [static]

STATISTIC ( NumDeleted  ,
"Number of functions deleted because all callers found"   
)

STATISTIC ( NumInlined  ,
"Number of functions inlined"   
)


Variable Documentation

cl::opt<int> InlineLimit("inline-threshold", cl::Hidden, cl::init(200), cl::desc("Control the amount of inlining to perform (default = 200)")) [static]




This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.