LLVM 22.0.0git
InlineModelFeatureMaps.h File Reference
#include "llvm/Analysis/TensorSpec.h"
#include "llvm/Support/Compiler.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)
#define INLINE_FEATURE_ITERATOR(M)
#define POPULATE_INDICES(DTYPE, SHAPE, NAME, COMMENT)

Typedefs

using llvm::InlineCostFeatures
using llvm::InlineFeatures = std::vector<int64_t>

Enumerations

enum class  llvm::InlineCostFeatureIndex : size_t { llvm::NumberOfFeatures }
enum class  llvm::FeatureIndex : size_t { llvm::callee_embedding , llvm::caller_embedding }

Functions

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

Variables

LLVM_ABI const char *const llvm::DecisionName = "inlining_decision"
LLVM_ABI const TensorSpec llvm::InlineDecisionSpec
LLVM_ABI const char *const llvm::DefaultDecisionName = "inlining_default"
LLVM_ABI const TensorSpec llvm::DefaultDecisionSpec
LLVM_ABI const char *const llvm::RewardName = "delta_size"

Macro Definition Documentation

◆ INLINE_COST_FEATURE_ITERATOR

#define INLINE_COST_FEATURE_ITERATOR ( M)

◆ INLINE_FEATURE_ITERATOR

#define INLINE_FEATURE_ITERATOR ( M)

◆ POPULATE_INDICES [1/2]

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

Definition at line 71 of file InlineModelFeatureMaps.h.

◆ POPULATE_INDICES [2/2]

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

Definition at line 71 of file InlineModelFeatureMaps.h.