[llvm] [GlobalISel] Allow customizing instruction-select pass (PR #95724)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 16 14:54:01 PDT 2024


================
@@ -49,8 +49,8 @@ class InstructionSelect : public MachineFunctionPass {
         MachineFunctionProperties::Property::Selected);
   }
 
-  InstructionSelect(CodeGenOptLevel OL);
-  InstructionSelect();
+  InstructionSelect(CodeGenOptLevel OL = CodeGenOptLevel::Default,
+                    char &PassID = ID);
----------------
dtcxzyw wrote:

Why do we allow customizing `PassID`? Isn't it always `InstructionSelect::ID`?


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


More information about the llvm-commits mailing list