|
MLIR 22.0.0git
|
A loaded pass plugin. More...
#include "mlir/Tools/Plugins/PassPlugin.h"
Public Member Functions | |
| StringRef | getFilename () const |
| Get the filename of the loaded plugin. | |
| StringRef | getPluginName () const |
| Get the plugin name. | |
| StringRef | getPluginVersion () const |
| Get the plugin version. | |
| uint32_t | getAPIVersion () const |
| Get the plugin API version. | |
| void | registerPassRegistryCallbacks () const |
| Invoke the PassRegistry callback registration. | |
Static Public Member Functions | |
| static llvm::Expected< PassPlugin > | load (const std::string &filename) |
| Attempts to load a pass plugin from a given file. | |
A loaded pass plugin.
An instance of this class wraps a loaded pass plugin and gives access to its interface defined by the PassPluginLibraryInfo it exposes.
Definition at line 58 of file PassPlugin.h.
|
inline |
Get the plugin API version.
Definition at line 77 of file PassPlugin.h.
|
inline |
Get the filename of the loaded plugin.
Definition at line 68 of file PassPlugin.h.
|
inline |
Get the plugin name.
Definition at line 71 of file PassPlugin.h.
|
inline |
Get the plugin version.
Definition at line 74 of file PassPlugin.h.
|
static |
Attempts to load a pass plugin from a given file.
Definition at line 16 of file PassPlugin.cpp.
References mlir::PassPluginLibraryInfo::apiVersion, MLIR_PLUGIN_API_VERSION, mlirGetPassPluginInfo(), and mlir::PassPluginLibraryInfo::registerPassRegistryCallbacks.
|
inline |
Invoke the PassRegistry callback registration.
Definition at line 80 of file PassPlugin.h.