LLVM 22.0.0git
Public Types | Public Member Functions | Static Public Attributes | List of all members
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< DerivedT >
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< DerivedT >
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 415 of file IR2Vec.h.

Member Typedef Documentation

◆ Result

Definition at line 432 of file IR2Vec.h.

Constructor & Destructor Documentation

◆ IR2VecVocabAnalysis() [1/3]

llvm::IR2VecVocabAnalysis::IR2VecVocabAnalysis ( )
default

◆ IR2VecVocabAnalysis() [2/3]

IR2VecVocabAnalysis::IR2VecVocabAnalysis ( const VocabVector &  Vocab)
explicit

Definition at line 522 of file IR2Vec.cpp.

◆ IR2VecVocabAnalysis() [3/3]

IR2VecVocabAnalysis::IR2VecVocabAnalysis ( VocabVector &&  Vocab)
explicit

Definition at line 525 of file IR2Vec.cpp.

Member Function Documentation

◆ run()

IR2VecVocabAnalysis::Result IR2VecVocabAnalysis::run ( Module M,
ModuleAnalysisManager MAM 
)

Member Data Documentation

◆ Key

AnalysisKey IR2VecVocabAnalysis::Key
static

Definition at line 428 of file IR2Vec.h.


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