LLVM 22.0.0git
|
MIR2Vec vocabulary provider used by pass managers and standalone tools. More...
#include "llvm/CodeGen/MIR2Vec.h"
Public Member Functions | |
MIR2VecVocabProvider (const MachineModuleInfo &MMI) | |
Expected< mir2vec::MIRVocabulary > | getVocabulary (const Module &M) |
MIR2Vec vocabulary provider used by pass managers and standalone tools.
This class encapsulates the core vocabulary loading logic and can be used independently of the pass manager infrastructure. For pass-based usage, see MIR2VecVocabLegacyAnalysis.
Note: This provider pattern makes new PM migration straightforward when needed. A new PM analysis wrapper can be added that delegates to this provider, similar to how MIR2VecVocabLegacyAnalysis currently wraps it.
|
inline |
Expected< mir2vec::MIRVocabulary > MIR2VecVocabProvider::getVocabulary | ( | const Module & | M | ) |
Definition at line 424 of file MIR2Vec.cpp.
References llvm::mir2vec::MIRVocabulary::create(), llvm::createStringError(), F, llvm::invalid_argument, TII, and TRI.