Displaying 1 result from an estimated 1 matches for "add_llvm_pass_plugin".
2019 Sep 20
4
[RFC] Generalize out-of-tree pass support
...t`` and ``bugpoint``. One first needs to create an independent
project and add it to either ``tools/`` or, using the MonoRepo layout, at the
root of the repo alongside other projects. This project must contain the
following 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 llvmGetPassPlugi...