LLVM 20.0.0git
Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
InlineModelFeatureMaps.h File Reference
#include "llvm/Analysis/TensorSpec.h"
#include <array>
#include <vector>

Go to the source code of this file.

Namespaces

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

Macros

#define INLINE_COST_FEATURE_ITERATOR(M)
 
#define POPULATE_INDICES(DTYPE, SHAPE, NAME, DOC)   NAME,
 
#define INLINE_FEATURE_ITERATOR(M)
 
#define POPULATE_INDICES(DTYPE, SHAPE, NAME, COMMENT)   NAME,
 

Typedefs

using llvm::InlineCostFeatures = std::array< int, static_cast< size_t >(InlineCostFeatureIndex::NumberOfFeatures)>
 
using llvm::InlineFeatures = std::vector< int64_t >
 

Enumerations

enum class  llvm::InlineCostFeatureIndex : size_t { llvm::POPULATE_INDICES , llvm::NumberOfFeatures }
 
enum class  llvm::FeatureIndex : size_t { llvm::POPULATE_INDICES , llvm::NumberOfFeatures }
 

Functions

constexpr bool llvm::isHeuristicInlineCostFeature (InlineCostFeatureIndex Feature)
 
constexpr FeatureIndex llvm::inlineCostFeatureToMlFeature (InlineCostFeatureIndex Feature)
 

Variables

constexpr size_t llvm::NumberOfFeatures
 
const std::vector< TensorSpecllvm::FeatureMap
 
const char *const llvm::DecisionName = "inlining_decision"
 
const TensorSpec llvm::InlineDecisionSpec
 
const char *const llvm::DefaultDecisionName = "inlining_default"
 
const TensorSpec llvm::DefaultDecisionSpec
 
const char *const llvm::RewardName = "delta_size"
 

Macro Definition Documentation

◆ INLINE_COST_FEATURE_ITERATOR

#define INLINE_COST_FEATURE_ITERATOR (   M)

Definition at line 23 of file InlineModelFeatureMaps.h.

◆ INLINE_FEATURE_ITERATOR

#define INLINE_FEATURE_ITERATOR (   M)

Definition at line 101 of file InlineModelFeatureMaps.h.

◆ POPULATE_INDICES [1/2]

#define POPULATE_INDICES (   DTYPE,
  SHAPE,
  NAME,
  COMMENT 
)    NAME,

Definition at line 136 of file InlineModelFeatureMaps.h.

◆ POPULATE_INDICES [2/2]

#define POPULATE_INDICES (   DTYPE,
  SHAPE,
  NAME,
  DOC 
)    NAME,

Definition at line 136 of file InlineModelFeatureMaps.h.