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 (const VocabVector &Vocab)
LLVM_ABI IR2VecVocabAnalysis (VocabVector &&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 420 of file IR2Vec.h.

Member Typedef Documentation

◆ Result

Constructor & Destructor Documentation

◆ IR2VecVocabAnalysis() [1/3]

llvm::IR2VecVocabAnalysis::IR2VecVocabAnalysis ( )
default

References LLVM_ABI.

◆ IR2VecVocabAnalysis() [2/3]

IR2VecVocabAnalysis::IR2VecVocabAnalysis ( const VocabVector & Vocab)
explicit

Definition at line 515 of file IR2Vec.cpp.

◆ IR2VecVocabAnalysis() [3/3]

IR2VecVocabAnalysis::IR2VecVocabAnalysis ( VocabVector && Vocab)
explicit

Definition at line 518 of file IR2Vec.cpp.

References llvm::move().

Member Function Documentation

◆ run()

Member Data Documentation

◆ Key

AnalysisKey IR2VecVocabAnalysis::Key
static

Definition at line 433 of file IR2Vec.h.


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