LLVM  16.0.0git
Macros | Enumerations | Variables
InlineOrder.cpp File Reference
#include "llvm/Analysis/InlineOrder.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/BlockFrequencyInfo.h"
#include "llvm/Analysis/GlobalsModRef.h"
#include "llvm/Analysis/InlineAdvisor.h"
#include "llvm/Analysis/InlineCost.h"
#include "llvm/Analysis/OptimizationRemarkEmitter.h"
#include "llvm/Analysis/ProfileSummaryInfo.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/Support/CommandLine.h"
Include dependency graph for InlineOrder.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "inline-order"
 

Enumerations

enum  InlinePriorityMode : int { InlinePriorityMode::Size, InlinePriorityMode::Cost, InlinePriorityMode::CostBenefit }
 

Variables

static cl::opt< InlinePriorityModeUseInlinePriority ("inline-priority-mode", cl::init(InlinePriorityMode::Size), cl::Hidden, cl::desc("Choose the priority mode to use in module inline"), cl::values(clEnumValN(InlinePriorityMode::Size, "size", "Use callee size priority."), clEnumValN(InlinePriorityMode::Cost, "cost", "Use inline cost priority."), clEnumValN(InlinePriorityMode::CostBenefit, "cost-benefit", "Use cost-benefit ratio.")))
 
static cl::opt< intModuleInlinerTopPriorityThreshold ("moudle-inliner-top-priority-threshold", cl::Hidden, cl::init(0), cl::desc("The cost threshold for call sites that get inlined without the " "cost-benefit analysis"))
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "inline-order"

Definition at line 23 of file InlineOrder.cpp.

Enumeration Type Documentation

◆ InlinePriorityMode

enum InlinePriorityMode : int
strong
Enumerator
Size 
Cost 
CostBenefit 

Definition at line 25 of file InlineOrder.cpp.

Variable Documentation

◆ ModuleInlinerTopPriorityThreshold

cl::opt<int> ModuleInlinerTopPriorityThreshold("moudle-inliner-top-priority-threshold", cl::Hidden, cl::init(0), cl::desc("The cost threshold for call sites that get inlined without the " "cost-benefit analysis"))
static

◆ UseInlinePriority

cl::opt<InlinePriorityMode> UseInlinePriority("inline-priority-mode", cl::init(InlinePriorityMode::Size), cl::Hidden, cl::desc("Choose the priority mode to use in module inline"), cl::values(clEnumValN(InlinePriorityMode::Size, "size", "Use callee size priority."), clEnumValN(InlinePriorityMode::Cost, "cost", "Use inline cost priority."), clEnumValN(InlinePriorityMode::CostBenefit, "cost-benefit", "Use cost-benefit ratio.")))
static

Referenced by llvm::getInlineOrder().