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 (const VocabVector &Vocab) |
LLVM_ABI | IR2VecVocabAnalysis (VocabVector &&Vocab) |
LLVM_ABI Result | run (Module &M, ModuleAnalysisManager &MAM) |
![]() | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Static Public Attributes | |
static LLVM_ABI AnalysisKey | Key |
Additional Inherited Members | |
![]() | |
static AnalysisKey * | ID () |
Returns an opaque, unique ID for this analysis type. | |
![]() | |
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 |
|
explicit |
Definition at line 522 of file IR2Vec.cpp.
|
explicit |
Definition at line 525 of file IR2Vec.cpp.
IR2VecVocabAnalysis::Result IR2VecVocabAnalysis::run | ( | Module & | M, |
ModuleAnalysisManager & | MAM | ||
) |
Definition at line 535 of file IR2Vec.cpp.
References llvm::ir2vec::ArgWeight, llvm::LLVMContext::emitError(), llvm::ir2vec::OpcWeight, llvm::ir2vec::TypeWeight, and llvm::ir2vec::VocabFile.
|
static |