|
LLVM 22.0.0git
|
This analysis provides the vocabulary for IR2Vec. More...
#include "llvm/Analysis/IR2Vec.h"
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 AnalysisKey * | ID () |
| 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. | |
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.
|
default |
|
inlineexplicit |
Definition at line 627 of file IR2Vec.h.
References LLVM_ABI, and llvm::move().
| IR2VecVocabAnalysis::Result IR2VecVocabAnalysis::run | ( | Module & | M, |
| ModuleAnalysisManager & | MAM ) |
Definition at line 612 of file IR2Vec.cpp.
References llvm::ir2vec::ArgWeight, llvm::ir2vec::OpcWeight, llvm::ir2vec::TypeWeight, and llvm::ir2vec::VocabFile.
|
static |