LLVM: lib/Analysis/MLInlineAdvisor.cpp File Reference (original) (raw)

Go to the source code of this file.

Macros
#define DEBUG_TYPE "inline-ml"
#define POPULATE_NAMES(DTYPE, SHAPE, NAME, __)
Enumerations
enum class SkipMLPolicyCriteria { Never, IfCallerIsNotCold }
Variables
static cl::opt< std::string > InteractiveChannelBaseName ("inliner-interactive-channel-base", cl::Hidden, cl::desc("Base file path for the interactive mode. The incoming filename should " "have the name .in, while the " "outgoing name should be .out"))
static const std::string InclDefaultMsg
static cl::opt< bool > InteractiveIncludeDefault ("inliner-interactive-include-default", cl::Hidden, cl::desc(InclDefaultMsg))
static cl::opt< SkipMLPolicyCriteria > SkipPolicy ("ml-inliner-skip-policy", cl::Hidden, cl::init(SkipMLPolicyCriteria::Never), cl::values(clEnumValN(SkipMLPolicyCriteria::Never, "never", "never"), clEnumValN(SkipMLPolicyCriteria::IfCallerIsNotCold, "if-caller-not-cold", "if the caller is not cold")))
static cl::opt< std::string > ModelSelector ("ml-inliner-model-selector", cl::Hidden, cl::init(""))
static cl::opt< bool > StopImmediatelyForTest ("ml-inliner-stop-immediately", cl::Hidden)
static cl::opt< float > SizeIncreaseThreshold ("ml-advisor-size-increase-threshold", cl::Hidden, cl::desc("Maximum factor by which expected native size may increase before " "blocking any further inlining."), cl::init(2.0))
static cl::opt< bool > KeepFPICache ("ml-advisor-keep-fpi-cache", cl::Hidden, cl::desc("For test - keep the ML Inline advisor's FunctionPropertiesInfo cache"), cl::init(false))

DEBUG_TYPE

#define DEBUG_TYPE "inline-ml"

POPULATE_NAMES

#define POPULATE_NAMES ( DTYPE,
SHAPE,
NAME,
__ )

CompiledModelType

SkipMLPolicyCriteria

enum class SkipMLPolicyCriteria strong

getInlinableCS()

InclDefaultMsg

Initial value:

=

(Twine("In interactive mode, also send the default policy decision: ") +

.str()

Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...

LLVM_ABI const char *const DefaultDecisionName

Definition at line 45 of file MLInlineAdvisor.cpp.

InteractiveChannelBaseName

cl::opt< std::string > InteractiveChannelBaseName("inliner-interactive-channel-base", cl::Hidden, cl::desc( "Base file path for the interactive mode. The incoming filename should " "have the name .in, while the " "outgoing name should be .out")) ( "inliner-interactive-channel-base" , cl::Hidden , cl::desc( "Base file path for the interactive mode. The incoming filename should " "have the name .in, while the " "outgoing name should be .out") ) static

InteractiveIncludeDefault

cl::opt< bool > InteractiveIncludeDefault("inliner-interactive-include-default", cl::Hidden, cl::desc(InclDefaultMsg)) ( "inliner-interactive-include-default" , cl::Hidden , cl::desc(InclDefaultMsg) ) static

KeepFPICache

ModelSelector

cl::opt< std::string > ModelSelector("ml-inliner-model-selector", cl::Hidden, cl::init("")) ( "ml-inliner-model-selector" , cl::Hidden , cl::init("") ) static

SizeIncreaseThreshold

cl::opt< float > SizeIncreaseThreshold("ml-advisor-size-increase-threshold", cl::Hidden, cl::desc("Maximum factor by which expected native size may increase before " "blocking any further inlining."), cl::init(2.0)) ( "ml-advisor-size-increase-threshold" , cl::Hidden , cl::desc("Maximum factor by which expected native size may increase before " "blocking any further inlining.") , cl::init(2.0) ) static

SkipPolicy

cl::opt< SkipMLPolicyCriteria > SkipPolicy("ml-inliner-skip-policy", cl::Hidden, cl::init(SkipMLPolicyCriteria::Never), cl::values(clEnumValN(SkipMLPolicyCriteria::Never, "never", "never"), clEnumValN(SkipMLPolicyCriteria::IfCallerIsNotCold, "if-caller-not-cold", "if the caller is not cold"))) ( "ml-inliner-skip-policy" , cl::Hidden , cl::init(SkipMLPolicyCriteria::Never) , cl::values(clEnumValN(SkipMLPolicyCriteria::Never, "never", "never"), clEnumValN(SkipMLPolicyCriteria::IfCallerIsNotCold, "if-caller-not-cold", "if the caller is not cold")) ) static

StopImmediatelyForTest

cl::opt< bool > StopImmediatelyForTest("ml-inliner-stop-immediately", cl::Hidden) ( "ml-inliner-stop-immediately" , cl::Hidden ) static