[llvm] [CodeGen][NPM] Support generic regalloc-npm option (PR #172485)

Teja Alaghari via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 24 22:29:48 PST 2025


================
@@ -501,7 +506,17 @@ template <typename DerivedT, typename TargetMachineT> class CodeGenPassBuilder {
 
   /// addMachinePasses helper to create the target-selected or overriden
   /// regalloc pass.
-  void addRegAllocPass(PassManagerWrapper &PMW, bool Optimized) const;
+  Error addRegAllocPass(PassManagerWrapper &PMW, bool Optimized) const;
+  /// Read the --regalloc-npm-pipeline option to add the next pass in line.
----------------
TejaX-Alaghari wrote:

Corrected the comments!

https://github.com/llvm/llvm-project/pull/172485


More information about the llvm-commits mailing list