Vocabulary provider used by pass managers and standalone tools.

Synopsis

Declared in <llvm/CodeGen/MIR2Vec.h>

class MIR2VecVocabProvider;

Description

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.

Member Functions

Name

Description

MIR2VecVocabProvider [constructor]

Construct a vocabulary provider using machine module info MMI.

getVocabulary

Load and return the MIR2Vec vocabulary for module M.

Created with MrDocs