Running passes from loadable module with new pass manager in opt

Hi,

I notice that if a pass is written in the new PassManager style, it should be listed in “PassRegistry.def”, otherwise opt will not be able to correctly schedule it to the pass pipeline.

So I guess currently we cannot run the new PassManger style passes from a loadable module (e.g. Polly) with opt, right?

If we cannot run passes from loadable module with new pass manager in opt now, is there any plan to support that?

Thanks

Hongbin