LLVM 20.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"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "inline-order"
 

Enumerations

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

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."), clEnumValN(InlinePriorityMode::ML, "ml", "Use ML.")))
 
static cl::opt< int > ModuleInlinerTopPriorityThreshold ("module-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 class InlinePriorityMode : int
strong
Enumerator
Size 
Cost 
CostBenefit 
ML 

Definition at line 25 of file InlineOrder.cpp.

Variable Documentation

◆ ModuleInlinerTopPriorityThreshold

cl::opt< int > ModuleInlinerTopPriorityThreshold("module-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")) ( "module-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."), clEnumValN(InlinePriorityMode::ML, "ml", "Use ML."))) ( "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."), clEnumValN(InlinePriorityMode::ML, "ml", "Use ML."))   
)
static