LLVM
8.0.1
|
A loaded pass plugin. More...
#include "llvm/Passes/PassPlugin.h"
Public Member Functions | |
StringRef | getFilename () const |
Get the filename of the loaded plugin. More... | |
StringRef | getPluginName () const |
Get the plugin name. More... | |
StringRef | getPluginVersion () const |
Get the plugin version. More... | |
uint32_t | getAPIVersion () const |
Get the plugin API version. More... | |
void | registerPassBuilderCallbacks (PassBuilder &PB) const |
Invoke the PassBuilder callback registration. More... | |
Static Public Member Functions | |
static Expected< PassPlugin > | Load (const std::string &Filename) |
Attempts to load a pass plugin from a given file. More... | |
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 61 of file PassPlugin.h.
|
inline |
|
inline |
Get the filename of the loaded plugin.
Definition at line 71 of file PassPlugin.h.
|
inline |
|
inline |
|
static |
Attempts to load a pass plugin from a given file.
Definition at line 17 of file PassPlugin.cpp.
References llvm::Error, llvm::sys::DynamicLibrary::getPermanentLibrary(), llvm::inconvertibleErrorCode(), llvm::sys::DynamicLibrary::isValid(), LLVM_PLUGIN_API_VERSION, llvmGetPassPluginInfo(), and P.
|
inline |
Invoke the PassBuilder callback registration.
Definition at line 83 of file PassPlugin.h.
References Info.