Helpers and data types for generating IR2Vec embeddings.

Types

Name

Description

Embedder

Interface for generating IR2Vec embeddings from a function and vocabulary.

Embedding

Fixed‐dimension vector of doubles used as an IR2Vec embedding.

FlowAwareEmbedder

Computes FlowAware IR2Vec embeddings for a function.

SymbolicEmbedder

Computes Symbolic IR2Vec embeddings for a function.

VocabStorage

Generic storage class for section‐based vocabularies. VocabStorage provides a generic foundation for storing and accessing embeddings organized into sections.

Vocabulary

Stores and looks up seed embeddings for LLVM IR entities.

Type Aliases

Name

Description

BBEmbeddingsMap

Map from basic blocks to their computed embeddings.

InstEmbeddingsMap

Map from instructions to their computed embeddings.

Variables

Name

Description

ArgWeight

Weight applied to argument/operand components when forming embeddings.

IR2VecCategory

Command‐line option category for IR2Vec‐related flags.

IR2VecEmbeddingKind

Selects which IR2Vec embedding kind to generate.

OpcWeight

Weight applied to opcode components when forming embeddings.

TypeWeight

Weight applied to type components when forming embeddings.

VocabFile

Path to the JSON vocabulary file used to seed embeddings.

Created with MrDocs