LLVM: llvm::ir2vec Namespace Reference (original) (raw)

Classes
class Embedder
Embedder provides the interface to generate embeddings (vector representations) for instructions, basic blocks, and functions. More...
struct Embedding
Embedding is a datatype that wraps std::vector. More...
class FlowAwareEmbedder
Class for computing the Flow-aware embeddings of IR2Vec. More...
class SymbolicEmbedder
Class for computing the Symbolic embeddings of IR2Vec. More...
class VocabStorage
Generic storage class for section-based vocabularies. More...
class Vocabulary
Class for storing and accessing the IR2Vec vocabulary. More...
Functions
cl::OptionCategory IR2VecCategory ("IR2Vec Options")
cl::opt< float > OpcWeight ("ir2vec-opc-weight", cl::Optional, cl::init(1.0), cl::desc("Weight for opcode embeddings"), cl::cat(IR2VecCategory))
cl::opt< float > TypeWeight ("ir2vec-type-weight", cl::Optional, cl::init(0.5), cl::desc("Weight for type embeddings"), cl::cat(IR2VecCategory))
cl::opt< float > ArgWeight ("ir2vec-arg-weight", cl::Optional, cl::init(0.2), cl::desc("Weight for argument embeddings"), cl::cat(IR2VecCategory))
cl::opt< IR2VecKind > IR2VecEmbeddingKind ("ir2vec-kind", cl::Optional, cl::values(clEnumValN(IR2VecKind::Symbolic, "symbolic", "Generate symbolic embeddings"), clEnumValN(IR2VecKind::FlowAware, "flow-aware", "Generate flow-aware embeddings")), cl::init(IR2VecKind::Symbolic), cl::desc("IR2Vec embedding kind"), cl::cat(IR2VecCategory))
Variables
LLVM_ABI llvm:🆑:OptionCategory IR2VecCategory
LLVM_ABI cl::opt< float > OpcWeight
LLVM_ABI cl::opt< float > TypeWeight
LLVM_ABI cl::opt< float > ArgWeight
LLVM_ABI cl::opt< IR2VecKind > IR2VecEmbeddingKind
static cl::opt< std::string > VocabFile ("ir2vec-vocab-path", cl::Optional, cl::desc("Path to the vocabulary file for IR2Vec"), cl::init(""), cl::cat(IR2VecCategory))

â—† BBEmbeddingsMap

â—† InstEmbeddingsMap

â—† ArgWeight()

â—† IR2VecCategory()

â—† IR2VecEmbeddingKind()

cl::opt< IR2VecKind > llvm::ir2vec::IR2VecEmbeddingKind ( "ir2vec-kind" ,
cl::Optional ,
cl::values(clEnumValN(IR2VecKind::Symbolic, "symbolic", "Generate symbolic embeddings"), clEnumValN(IR2VecKind::FlowAware, "flow-aware", "Generate flow-aware embeddings")) ,
cl::init(IR2VecKind::Symbolic) ,
cl::desc("IR2Vec embedding kind") ,
cl::cat(IR2VecCategory) )

â—† OpcWeight()

â—† TypeWeight()

â—† ArgWeight

â—† IR2VecCategory

â—† IR2VecEmbeddingKind

cl::opt< IR2VecKind > llvm::ir2vec::IR2VecEmbeddingKind("ir2vec-kind", cl::Optional, cl::values(clEnumValN(IR2VecKind::Symbolic, "symbolic", "Generate symbolic embeddings"), clEnumValN(IR2VecKind::FlowAware, "flow-aware", "Generate flow-aware embeddings")), cl::init(IR2VecKind::Symbolic), cl::desc("IR2Vec embedding kind"), cl::cat(IR2VecCategory))

â—† OpcWeight

â—† TypeWeight

â—† VocabFile