Displaying 1 result from an estimated 1 matches for "buildpermoduledefaultpipeline".
2018 Jul 21
2
Registering passes on a module
Hi all,
I'm trying to build passes with the PassBuilder to optimize the result of
MCJIT (I assume, this is a requirement for performance).
So I do this:
llvm::PassBuilder passBuilder;
llvm::ModulePassManager modulePassManager =
passBuilder.buildPerModuleDefaultPipeline(llvm::PassBuilder::OptimizationLevel::O3);
llvm::ModuleAnalysisManager moduleAnalysisManager;
passBuilder.registerModuleAnalyses(moduleAnalysisManager);
modulePassManager.run(*module, moduleAnalysisManager);
with module being a pointer to an LLVM module.
Unfortunately, the moduleAnalys...