I have not tried the extension points or loading an LTO pass dynamically myself, but adding the author of the patch that added the new EPs (D61738) for insights. Not sure how they interact with dynamically loaded LTO passes.
On Tue, Jan 7, 2020 at 6:35 AM Marc via llvm-dev <[hidden email]> wrote:
so far I am using standard llvm and writing "standard" llvm pass
modules, e.g. with RegisterAFLPass(PassManagerBuilder::EP_OptimizerLast,
In llvm-9 there is now the new flag to run the module at link time. I
get a test module compiled but it does not seem to run.
Example module test.cc (based on an llvm example):