[llvm] [NewPM/CodeGen] Rewrite pass manager nesting (PR #81068)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 18:55:42 PST 2024
================
@@ -133,17 +129,19 @@ template <typename DerivedT> class CodeGenPassBuilder {
Opt.OptimizeRegAlloc = getOptLevel() != CodeGenOptLevel::None;
}
- Error buildPipeline(ModulePassManager &MPM, MachineFunctionPassManager &MFPM,
- raw_pwrite_stream &Out, raw_pwrite_stream *DwoOut,
+ Error buildPipeline(ModulePassManager &MPM, raw_pwrite_stream &Out,
+ raw_pwrite_stream *DwoOut,
CodeGenFileType FileType) const;
void registerModuleAnalyses(ModuleAnalysisManager &) const;
void registerFunctionAnalyses(FunctionAnalysisManager &) const;
void registerMachineFunctionAnalyses(MachineFunctionAnalysisManager &) const;
- void registerAnalyses(MachineFunctionAnalysisManager &MFAM) const {
- registerModuleAnalyses(*MFAM.MAM);
- registerFunctionAnalyses(*MFAM.FAM);
+ void registerAnalyses(ModuleAnalysisManager &MAM,
+ FunctionAnalysisManager &FAM,
+ MachineFunctionAnalysisManager &MFAM) const {
+ registerModuleAnalyses(MAM);
+ registerFunctionAnalyses(FAM);
----------------
paperchalice wrote:
Oh, I forgot to delete them, I think I already added the registerMachineFunctionAnalyses in PassBuilder.
https://github.com/llvm/llvm-project/pull/81068
More information about the llvm-commits
mailing list