LLVM 20.0.0git
|
A loaded pass plugin. More...
#include "llvm/Passes/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 | registerPassBuilderCallbacks (PassBuilder &PB) const |
Invoke the PassBuilder callback registration. | |
Static Public Member Functions | |
static 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 60 of file PassPlugin.h.
|
inline |
Get the plugin API version.
Definition at line 79 of file PassPlugin.h.
References llvm::PassPluginLibraryInfo::APIVersion.
|
inline |
Get the filename of the loaded plugin.
Definition at line 70 of file PassPlugin.h.
|
inline |
Get the plugin name.
Definition at line 73 of file PassPlugin.h.
References llvm::PassPluginLibraryInfo::PluginName.
|
inline |
Get the plugin version.
Definition at line 76 of file PassPlugin.h.
References llvm::PassPluginLibraryInfo::PluginVersion.
|
static |
Attempts to load a pass plugin from a given file.
Definition at line 16 of file PassPlugin.cpp.
References llvm::sys::DynamicLibrary::getAddressOfSymbol(), llvm::sys::DynamicLibrary::getPermanentLibrary(), llvm::inconvertibleErrorCode(), llvm::sys::DynamicLibrary::isValid(), LLVM_PLUGIN_API_VERSION, llvmGetPassPluginInfo(), and P.
Referenced by RegisterPassPlugins().
|
inline |
Invoke the PassBuilder callback registration.
Definition at line 82 of file PassPlugin.h.
References PB(), and llvm::PassPluginLibraryInfo::RegisterPassBuilderCallbacks.
Referenced by RegisterPassPlugins().