I'm working on a project and would prefer to use LLVM's new API with specializations of LLVM::PassManager. I tried looking at llc's code, but it uses the legacy PassManager. Is there a way to do it with the new API?
No. This is currently WIP. Patches are welcome :)