LLVM API Documentation
#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>

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 DEBUG_TYPE "inline" |
Definition at line 16 of file Inliner.cpp.
| static bool InlineCallIfPossible | ( | CallSite | CS, | |
| CallGraph & | CG, | |||
| const std::set< Function * > & | SCCFunctions, | |||
| const TargetData & | TD | |||
| ) | [static] |
Definition at line 53 of file Inliner.cpp.
References llvm::Function::addFnAttr(), Caller, DOUT, llvm::CallSite::getCalledFunction(), llvm::CallSite::getCaller(), llvm::Value::getName(), llvm::Function::hasFnAttr(), llvm::GlobalValue::hasInternalLinkage(), llvm::InlineFunction(), llvm::CallGraphNode::removeAllCalledFunctions(), llvm::CallGraph::removeFunctionFromModule(), llvm::Attribute::StackProtect, llvm::Attribute::StackProtectReq, and llvm::Value::use_empty().
Referenced by llvm::Inliner::runOnSCC().
| STATISTIC | ( | NumDeleted | , | |
| "Number of functions deleted because all callers found" | ||||
| ) |
| STATISTIC | ( | NumInlined | , | |
| "Number of functions inlined" | ||||
| ) |
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.