How to get RegionInfo analysis result in a module pass

I’d like to get all functions’ RegionInfo analysis results in an llvm module pass, but there seems no example code in llvm.

Is anyone know how to do this?

Thanks,
Ming-Hwa

In general, getting information from a FunctionPass analysis from a
module pass is difficult with the current (legacy) pass manager.
However, Chandler's new pass manager should allow you to obtain this
information easily. Hence, I would suggest to look into the design of
the new pass manager and consider using it together with the
RegionPasse.

Best,
Tobias