LLVM 20.0.0git
Classes | Namespaces | Macros | Typedefs | Enumerations | Variables
MLRegAllocPriorityAdvisor.cpp File Reference
#include "AllocationOrder.h"
#include "RegAllocGreedy.h"
#include "RegAllocPriorityAdvisor.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/InteractiveModelRunner.h"
#include "llvm/Analysis/MLModelRunner.h"
#include "llvm/Analysis/ReleaseModeModelRunner.h"
#include "llvm/Analysis/TensorSpec.h"
#include "llvm/CodeGen/CalcSpillWeights.h"
#include "llvm/CodeGen/LiveRegMatrix.h"
#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/RegisterClassInfo.h"
#include "llvm/CodeGen/SlotIndexes.h"
#include "llvm/CodeGen/VirtRegMap.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/PassRegistry.h"
#include "llvm/Support/CommandLine.h"

Go to the source code of this file.

Classes

class  llvm::MLPriorityAdvisor
 
class  llvm::ReleaseModePriorityAdvisorAnalysis
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Macros

#define RA_PRIORITY_FEATURES_LIST(M)
 
#define DecisionName   "priority"
 
#define _FEATURE_IDX(_, name, __, ___)   name,
 
#define _DECL_FEATURES(type, name, shape, _)    TensorSpec::createSpec<type>(#name, shape),
 

Typedefs

using CompiledModelType = NoopSavedModelImpl
 

Enumerations

enum  llvm::FeatureIDs { llvm::FeatureCount }
 

Variables

static cl::opt< std::string > InteractiveChannelBaseName ("regalloc-priority-interactive-channel-base", cl::Hidden, cl::desc("Base file path for the interactive mode. The incoming filename should " "have the name <regalloc-priority-interactive-channel-base>.in, while " "the outgoing name should be " "<regalloc-priority-interactive-channel-base>.out"))
 
static const std::vector< int64_t > llvm::PerLiveRangeShape {1}
 
static const TensorSpec llvm::DecisionSpec
 
static const std::vector< TensorSpecllvm::InputFeatures
 

Macro Definition Documentation

◆ _DECL_FEATURES

#define _DECL_FEATURES (   type,
  name,
  shape,
  _ 
)     TensorSpec::createSpec<type>(#name, shape),

Definition at line 113 of file MLRegAllocPriorityAdvisor.cpp.

◆ _FEATURE_IDX

#define _FEATURE_IDX (   _,
  name,
  __,
  ___ 
)    name,

Definition at line 86 of file MLRegAllocPriorityAdvisor.cpp.

◆ DecisionName

#define DecisionName   "priority"

Definition at line 79 of file MLRegAllocPriorityAdvisor.cpp.

◆ RA_PRIORITY_FEATURES_LIST

#define RA_PRIORITY_FEATURES_LIST (   M)
Value:
M(int64_t, li_size, PerLiveRangeShape, "size") \
M(int64_t, stage, PerLiveRangeShape, "stage") \
M(float, weight, PerLiveRangeShape, "weight")
static const std::vector< int64_t > PerLiveRangeShape

Definition at line 74 of file MLRegAllocPriorityAdvisor.cpp.

Typedef Documentation

◆ CompiledModelType

Definition at line 53 of file MLRegAllocPriorityAdvisor.cpp.

Variable Documentation

◆ InteractiveChannelBaseName

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