LLVM 22.0.0git
llvm::IR2VecVocabAnalysis Class Reference

This analysis provides the vocabulary for IR2Vec. More...

#include "llvm/Analysis/IR2Vec.h"

Inheritance diagram for llvm::IR2VecVocabAnalysis:
[legend]

Public Types

using Result = ir2vec::Vocabulary

Public Member Functions

 IR2VecVocabAnalysis ()=default
LLVM_ABI IR2VecVocabAnalysis (ir2vec::VocabStorage &&Vocab)
LLVM_ABI Result run (Module &M, ModuleAnalysisManager &MAM)
Public Member Functions inherited from llvm::PassInfoMixin< IR2VecVocabAnalysis >
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)

Static Public Attributes

static LLVM_ABI AnalysisKey Key

Additional Inherited Members

Static Public Member Functions inherited from llvm::AnalysisInfoMixin< IR2VecVocabAnalysis >
static AnalysisKeyID ()
 Returns an opaque, unique ID for this analysis type.
Static Public Member Functions inherited from llvm::PassInfoMixin< IR2VecVocabAnalysis >
static StringRef name ()
 Gets the name of the pass we are mixed into.

Detailed Description

This analysis provides the vocabulary for IR2Vec.

The vocabulary provides a mapping between an entity of the IR (like opcode, type, argument, etc.) and its corresponding embedding.

Definition at line 597 of file IR2Vec.h.

Member Typedef Documentation

◆ Result

Constructor & Destructor Documentation

◆ IR2VecVocabAnalysis() [1/2]

llvm::IR2VecVocabAnalysis::IR2VecVocabAnalysis ( )
default

◆ IR2VecVocabAnalysis() [2/2]

LLVM_ABI llvm::IR2VecVocabAnalysis::IR2VecVocabAnalysis ( ir2vec::VocabStorage && Vocab)
inlineexplicit

Definition at line 612 of file IR2Vec.h.

References LLVM_ABI, and llvm::move().

Member Function Documentation

◆ run()

Member Data Documentation

◆ Key

AnalysisKey IR2VecVocabAnalysis::Key
static

Definition at line 610 of file IR2Vec.h.


The documentation for this class was generated from the following files: