Hi:
My pass needs to run on LLVM Regions, I’m currently using the following code
RGPassManager RPM;
RPM.add(createRegionPrinterPass());
RPM.doInitialization(M);
for (Function &func : M.functions()) {
RPM.runOnFunction(func);
}
RPM.doFinalization(M);
However when adding the pass, it asserts with PMTopLevelManager::findAnalysisUsage due to top level pass manager is null
Zhang