<div><font>Hi:</font></div><div><font>My pass needs to run on LLVM Regions, I'm currently using the following code</font></div><div><font>```</font></div><div><font><div>RGPassManager RPM;</div><div>RPM.add(createRegionPrinterPass());</div><div>RPM.doInitialization(M);</div><div>for (Function &func : M.functions()) {</div><div>  RPM.runOnFunction(func);</div><div>}</div><div>RPM.doFinalization(M);</div></font></div><div><font>```</font></div><div><font><br></font></div><div><font>However when adding the pass, it asserts with PMTopLevelManager::findAnalysisUsage due to top level pass manager is null</font></div><div><font><br></font></div><div><font>Zhang</font></div><div><includetail><!--<![endif]--></includetail></div>