I am writing a tool within an external project, and I need to use an instance of the new pass manager to invoke LLVM analyses. It used to be possible to create an initialized instance of the legacy::FunctionPassManager by providing the Module to the constructor. I was unable to find a corresponding way to initialize an instance of the new FunctionAnalysisManager. When I tried to construct an instance of FunctionAnalysisManager and use it, none of the passes were registered and I found myself having to register every single LLVM pass, even if it is not directly invoked by my tool (which is not feasible). What is the correct way to do this?