LLVM 24.0.0git
llvm::ir2vec Namespace Reference

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<double>. 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...

Typedefs

using InstEmbeddingsMap = DenseMap<const Instruction *, Embedding>
using BBEmbeddingsMap = DenseMap<const BasicBlock *, Embedding>

Functions

LLVM_ABI StringRef getVocabFile (const LLVMContext &C)
 Return -ir2vec-vocab-path.
LLVM_ABI IR2VecKind getEmbeddingKind (const LLVMContext &C)
 Return -ir2vec-kind.

Typedef Documentation

◆ BBEmbeddingsMap

Definition at line 149 of file IR2Vec.h.

◆ InstEmbeddingsMap

Function Documentation

◆ getEmbeddingKind()

IR2VecKind llvm::ir2vec::getEmbeddingKind ( const LLVMContext & C)

Return -ir2vec-kind.

Definition at line 42 of file IR2Vec.cpp.

References C(), and llvm::getAnalysisOptions().

◆ getVocabFile()

StringRef llvm::ir2vec::getVocabFile ( const LLVMContext & C)

Return -ir2vec-vocab-path.

Definition at line 39 of file IR2Vec.cpp.

References C(), and llvm::getAnalysisOptions().