ΒΆ::llvm::PassPluginLibraryInfo
llvmGetPassPluginInfo()

Description

The public entry point for a pass plugin. When a plugin is loaded by the driver, it will call this entry point to obtain information about this plugin and about how to register its passes. This function needs to be implemented by the plugin, see the example below: ``` extern "C" ::llvm::PassPluginLibraryInfo LLVM_ATTRIBUTE_WEAK llvmGetPassPluginInfo() { return { LLVM_PLUGIN_API_VERSION, "MyPlugin", "v0.1", [](PassBuilder &PB ) { ... } }; } ```

Declared at: llvm/include/llvm/Passes/PassPlugin.h:111