Displaying 1 result from an estimated 1 matches for "plugininfo".
2019 Sep 20
4
[RFC] Generalize out-of-tree pass support
...lowing minimal ``CMakeLists.txt``:
.. code-block:: cmake
add_llvm_pass_plugin(Name source0.cpp)
The pass must provide two entry points for the new pass manager, one for static
registration and one for dynamically loaded plugins:
- ``llvm::PassPluginLibraryInfo get##Name##PluginInfo();``
- ``extern "C" ::llvm::PassPluginLibraryInfo llvmGetPassPluginInfo() LLVM_ATTRIBUTE_WEAK;``
Pass plugins are compiled and link dynamically by default, but it's
possible to set the following variables to change this behavior:
- ``LLVM_${NAME}_LINK_INTO_TOOLS``,...