LLVM  16.0.0git
Macros | Functions | Variables
MLInlineAdvisor.cpp File Reference
#include "llvm/Analysis/MLInlineAdvisor.h"
#include "llvm/ADT/SCCIterator.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/FunctionPropertiesAnalysis.h"
#include "llvm/Analysis/InlineCost.h"
#include "llvm/Analysis/InlineModelFeatureMaps.h"
#include "llvm/Analysis/LazyCallGraph.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/MLModelRunner.h"
#include "llvm/Analysis/OptimizationRemarkEmitter.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/PassManager.h"
#include "llvm/Support/CommandLine.h"
Include dependency graph for MLInlineAdvisor.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "inline-ml"
 
#define POPULATE_NAMES(_, NAME)   TensorSpec::createSpec<int64_t>(NAME, {1} ),
 
#define POPULATE_NAMES(_, NAME, __)   TensorSpec::createSpec<int64_t>(NAME, {1} ),
 

Functions

CallBasegetInlinableCS (Instruction &I)
 

Variables

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))
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "inline-ml"

Definition at line 47 of file MLInlineAdvisor.cpp.

◆ POPULATE_NAMES [1/2]

#define POPULATE_NAMES (   _,
  NAME 
)    TensorSpec::createSpec<int64_t>(NAME, {1} ),

◆ POPULATE_NAMES [2/2]

#define POPULATE_NAMES (   _,
  NAME,
  __ 
)    TensorSpec::createSpec<int64_t>(NAME, {1} ),

Function Documentation

◆ getInlinableCS()

CallBase* getInlinableCS ( Instruction I)

Definition at line 79 of file MLInlineAdvisor.cpp.

References Callee, and I.

Referenced by llvm::MLInlineAdvisor::MLInlineAdvisor().

Variable Documentation

◆ KeepFPICache

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))
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))
static