LLVM 24.0.0git
llvm::MIR2VecVocabProvider Class Reference

MIR2Vec vocabulary provider used by pass managers and standalone tools. More...

#include "llvm/CodeGen/MIR2Vec.h"

Public Member Functions

 MIR2VecVocabProvider (const MachineModuleInfo &MMI)
LLVM_ABI Expected< mir2vec::MIRVocabulary > getVocabulary (const Module &M)

Detailed Description

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 and MIR2VecVocabAnalysis.

Definition at line 393 of file MIR2Vec.h.

Constructor & Destructor Documentation

◆ MIR2VecVocabProvider()

llvm::MIR2VecVocabProvider::MIR2VecVocabProvider ( const MachineModuleInfo & MMI)
inline

Definition at line 395 of file MIR2Vec.h.

Member Function Documentation

◆ getVocabulary()

Expected< mir2vec::MIRVocabulary > MIR2VecVocabProvider::getVocabulary ( const Module & M)

Definition at line 532 of file MIR2Vec.cpp.

References buildVocabulary(), llvm::createStringError(), F, and llvm::invalid_argument.


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