search for: llvmgetpassplugininfo

Displaying 3 results from an estimated 3 matches for "llvmgetpassplugininfo".

2019 Dec 12
3
Adding custom callback function before/after passes
Hello Fedor. Thank you for the information. I made a simple patch that exposes PassInstrumentationCallback so llvmGetPassPluginInfo can use it: https://reviews.llvm.org/D71086 . Would this change make sense? Thanks, Juneyoung Lee On Thu, Dec 12, 2019 at 12:44 AM Fedor Sergeev <fedor.sergeev at azul.com> wrote: > > > On 12/3/19 8:01 PM, Juneyoung Lee via llvm-dev wrote: > > Hello all, > > Is there a...
2019 Sep 20
4
[RFC] Generalize out-of-tree pass support
...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``, when sets to ``ON``, turns the project into a statically linked extension The r...
2019 Dec 03
3
Adding custom callback function before/after passes
Hello all, Is there a way to register callback that runs before/after passes? PassTimingInfo seems to do a similar thing by calling PassInstrumentationCallbacks::registerBeforePassCallback / registerAfterPassCallback, but it is hard-wired with StandardInstrumentations class. Do we have something similar to RegisterStandardPasses, so custom callbacks can be added from somewhere outside LLVM?