|
LLVM 22.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. | |
| bool | invokePreCodeGenCallback (Module &M, TargetMachine &TM, CodeGenFileType CGFT, raw_pwrite_stream &OS) const |
| Invoke the pre-codegen callback. | |
Static Public Member Functions | |
| static LLVM_ABI 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 71 of file PassPlugin.h.
|
inline |
Get the plugin API version.
Definition at line 90 of file PassPlugin.h.
|
inline |
Get the filename of the loaded plugin.
Definition at line 81 of file PassPlugin.h.
|
inline |
Get the plugin name.
Definition at line 84 of file PassPlugin.h.
|
inline |
Get the plugin version.
Definition at line 87 of file PassPlugin.h.
|
inline |
Invoke the pre-codegen callback.
Definition at line 99 of file PassPlugin.h.
|
static |
Attempts to load a pass plugin from a given file.
Definition at line 16 of file PassPlugin.cpp.
References llvm::sys::DynamicLibrary::getPermanentLibrary(), llvm::inconvertibleErrorCode(), LLVM_PLUGIN_API_VERSION, llvmGetPassPluginInfo(), llvm::make_error(), and P.
Referenced by RegisterPassPlugins().
|
inline |
Invoke the PassBuilder callback registration.
Definition at line 93 of file PassPlugin.h.
References PB().
Referenced by RegisterPassPlugins().