LLVM: llvm::mir2vec Namespace Reference (original ) (raw )
Classes
class
MIREmbedder
Base class for MIR embedders. More...
class
MIRVocabulary
Class for storing and accessing the MIR2Vec vocabulary. More...
class
SymbolicMIREmbedder
Class for computing Symbolic embeddings Symbolic embeddings are constructed based on the entity-level representations obtained from the MIR Vocabulary. More...
Functions
cl::OptionCategory
MIR2VecCategory ("MIR2Vec Options")
cl::opt < float >
OpcWeight ("mir2vec-opc-weight", cl::Optional , cl::init (1.0), cl::desc ("Weight for machine opcode embeddings"), cl::cat (MIR2VecCategory ))
cl::opt < float >
CommonOperandWeight ("mir2vec-common-operand-weight", cl::Optional , cl::init (1.0), cl::desc ("Weight for common operand embeddings"), cl::cat (MIR2VecCategory ))
cl::opt < float >
RegOperandWeight ("mir2vec-reg-operand-weight", cl::Optional , cl::init (1.0), cl::desc ("Weight for register operand embeddings"), cl::cat (MIR2VecCategory ))
Variables
LLVM_ABI llvm:🆑:OptionCategory
MIR2VecCategory
LLVM_ABI cl::opt < float >
OpcWeight
LLVM_ABI cl::opt < float >
CommonOperandWeight
LLVM_ABI cl::opt < float >
RegOperandWeight
static cl::opt < std::string >
VocabFile ("mir2vec-vocab -path", cl::Optional , cl::desc ("Path to the vocabulary file for MIR2Vec"), cl::init (""), cl::cat (MIR2VecCategory ))
cl::opt < MIR2VecKind >
MIR2VecEmbeddingKind ("mir2vec-kind", cl::Optional , cl::values (clEnumValN (MIR2VecKind::Symbolic , "symbolic", "Generate symbolic embeddings for MIR")), cl::init (MIR2VecKind::Symbolic ), cl::desc ("MIR2Vec embedding kind"), cl::cat (MIR2VecCategory ))
â—† Embeddingâ—† MachineBlockEmbeddingsMapInitial value:
Definition at line 81 of file MIR2Vec.h .
â—† MachineInstEmbeddingsMapâ—† CommonOperandWeight()â—† MIR2VecCategory()â—† OpcWeight()â—† RegOperandWeight()â—† CommonOperandWeightâ—† MIR2VecCategoryâ—† MIR2VecEmbeddingKind
cl::opt < MIR2VecKind > llvm::mir2vec::MIR2VecEmbeddingKind("mir2vec-kind", cl::Optional , cl::values (clEnumValN (MIR2VecKind::Symbolic , "symbolic", "Generate symbolic embeddings for MIR")), cl::init (MIR2VecKind::Symbolic ), cl::desc ("MIR2Vec embedding kind"), cl::cat (MIR2VecCategory ))
(
"mir2vec-kind"
,
cl::Optional
,
cl::values (clEnumValN (MIR2VecKind::Symbolic , "symbolic", "Generate symbolic embeddings for MIR"))
,
cl::init (MIR2VecKind::Symbolic )
,
cl::desc ("MIR2Vec embedding kind")
,
cl::cat (MIR2VecCategory )
)
â—† OpcWeightâ—† RegOperandWeightâ—† VocabFile