Is there an easy way to register external passes in proteus?
The closest I've been able to do is reimplement runOptimizationPassPipeline and optimizeIR with a custom pass registered (and skip proteus::optimizeIR). Is there another way to do this?
If not, it would be nice to add a handle for registering passes. Something like below.
optimizeIR(Module, Arch, Config, [](PassBuilder &PB) {
registerMyCustomPasses(PB);
});
Is there an easy way to register external passes in proteus?
The closest I've been able to do is reimplement
runOptimizationPassPipelineandoptimizeIRwith a custom pass registered (and skip proteus::optimizeIR). Is there another way to do this?If not, it would be nice to add a handle for registering passes. Something like below.