[Mlir-commits] [mlir] [MLIR] Remove `let constructor = ` from mlir/include/mlir/Transforms/Passes.td (PR #183950)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Feb 28 12:59:32 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 7539 tests passed
* 601 tests skipped
* 4 tests failed

## Failed Tests
(click on a test name to see its output)

### MLIR
<details>
<summary>MLIR.Pass/ir-printing.mlir</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/ir-printing.mlir -mlir-disable-threading=true -pass-pipeline='builtin.module(func.func(cse,canonicalize))' -mlir-print-ir-before=cse  -o /dev/null 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=BEFORE /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/ir-printing.mlir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/ir-printing.mlir -mlir-disable-threading=true '-pass-pipeline=builtin.module(func.func(cse,canonicalize))' -mlir-print-ir-before=cse -o /dev/null
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=BEFORE /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/ir-printing.mlir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/ir-printing.mlir:18:12: error: BEFORE: expected string not found in input
# | // BEFORE: // -----// IR Dump Before{{.*}}CSE (cse) //----- //
# |            ^
# | <stdin>:1:1: note: scanning from here
# | // -----// IR Dump Before CSEPass (cse) //----- //
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/ir-printing.mlir
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: // -----// IR Dump Before CSEPass (cse) //----- // 
# | check:18     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |           2: func.func @foo() { 
# | check:18     ~~~~~~~~~~~~~~~~~~~
# |           3:  %c0_i32 = arith.constant 0 : i32 
# | check:18     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           4:  return 
# | check:18     ~~~~~~~~
# |           5: } 
# | check:18     ~~
# |           6:  
# | check:18     ~
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>MLIR.Pass/pass-timing.mlir</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/pass-timing.mlir -mlir-disable-threading=true -verify-each=true -pass-pipeline='builtin.module(func.func(cse,canonicalize,cse))' -mlir-timing -mlir-timing-display=list 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=LIST /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/pass-timing.mlir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/pass-timing.mlir -mlir-disable-threading=true -verify-each=true '-pass-pipeline=builtin.module(func.func(cse,canonicalize,cse))' -mlir-timing -mlir-timing-display=list
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=LIST /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/pass-timing.mlir
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/pass-timing.mlir -mlir-disable-threading=true -verify-each=true -pass-pipeline='builtin.module(func.func(cse,canonicalize,cse))' -mlir-timing -mlir-timing-display=list -mlir-output-format=json 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=LIST-JSON /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/pass-timing.mlir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/pass-timing.mlir -mlir-disable-threading=true -verify-each=true '-pass-pipeline=builtin.module(func.func(cse,canonicalize,cse))' -mlir-timing -mlir-timing-display=list -mlir-output-format=json
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=LIST-JSON /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/pass-timing.mlir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/pass-timing.mlir:20:19: error: LIST-JSON-DAG: expected string not found in input
# | // LIST-JSON-DAG: "name": "Canonicalizer"}
# |                   ^
# | <stdin>:1:1: note: scanning from here
# | [
# | ^
# | <stdin>:6:51: note: possible intended match here
# | {"wall": {"duration": 0.0001, "percentage": 5.5}, "name": "CanonicalizerPass"},
# |                                                   ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/pass-timing.mlir
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: [ 
# | dag:20'0     X~ error: no match found
# |           2: {"wall": {"duration": 0.0019, "percentage": 100.0}, "name": "root"}, 
# | dag:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           3: {"wall": {"duration": 0.0015, "percentage": 77.5}, "name": "Parser"}, 
# | dag:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           4: {"wall": {"duration": 0.0002, "percentage": 9.8}, "name": "Pipeline Collection : ['func.func']"}, 
# | dag:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           5: {"wall": {"duration": 0.0002, "percentage": 8.9}, "name": "'func.func' Pipeline"}, 
# | dag:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           6: {"wall": {"duration": 0.0001, "percentage": 5.5}, "name": "CanonicalizerPass"}, 
# | dag:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | dag:20'1                                                       ?                              possible intended match
# |           7: {"wall": {"duration": 0.0001, "percentage": 4.0}, "name": "Output"}, 
# | dag:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           8: {"wall": {"duration": 0.0000, "percentage": 1.9}, "name": "CSEPass"}, 
# | dag:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           9: {"wall": {"duration": 0.0000, "percentage": 0.4}, "name": "(A) DominanceInfo"}, 
# | dag:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          10: {"wall": {"duration": 0.0002, "percentage": 8.7}, "name": "Rest"}, 
# | dag:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          11: {"wall": {"duration": 0.0019, "percentage": 100.0}, "name": "Total"} 
# | dag:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>MLIR.Pass/run-reproducer.mlir</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/run-reproducer.mlir --run-reproducer -dump-pass-pipeline 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/run-reproducer.mlir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/run-reproducer.mlir --run-reproducer -dump-pass-pipeline
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/run-reproducer.mlir
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/run-reproducer.mlir --run-reproducer -mlir-print-ir-before=cse 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=BEFORE /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/run-reproducer.mlir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/run-reproducer.mlir --run-reproducer -mlir-print-ir-before=cse
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=BEFORE /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/run-reproducer.mlir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/run-reproducer.mlir:29:12: error: BEFORE: expected string not found in input
# | // BEFORE: // -----// IR Dump Before{{.*}}CSE (cse) //----- //
# |            ^
# | <stdin>:1:1: note: scanning from here
# | // -----// IR Dump Before CSEPass (cse) //----- //
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/run-reproducer.mlir
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: // -----// IR Dump Before CSEPass (cse) //----- // 
# | check:29     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |           2: func.func @foo() { 
# | check:29     ~~~~~~~~~~~~~~~~~~~
# |           3:  %c0_i32 = arith.constant 0 : i32 
# | check:29     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           4:  return 
# | check:29     ~~~~~~~~
# |           5: } 
# | check:29     ~~
# |           6:  
# | check:29     ~
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>MLIR.python/pass_manager.py</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/pass_manager.py 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/pass_manager.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/pass_manager.py
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/pass_manager.py
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/pass_manager.py:278:11: error: CHECK: expected string not found in input
# |  # CHECK: // -----// IR Dump After Canonicalizer (canonicalize) //----- //
# |           ^
# | <stdin>:74:26: note: scanning from here
# | TEST: testPrintIrAfterAll
# |                          ^
# | <stdin>:75:1: note: possible intended match here
# | // -----// IR Dump After CanonicalizerPass (canonicalize) //----- //
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/pass_manager.py:304:11: error: CHECK: expected string not found in input
# |  # CHECK: // -----// IR Dump Before Canonicalizer (canonicalize) //----- //
# |           ^
# | <stdin>:84:35: note: scanning from here
# | TEST: testPrintIrBeforeAndAfterAll
# |                                   ^
# | <stdin>:85:1: note: possible intended match here
# | // -----// IR Dump Before CanonicalizerPass (canonicalize) //----- //
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/pass_manager.py
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |             69:  return 
# |             70:  } 
# |             71: } 
# |             72:  
# |             73:  
# |             74: TEST: testPrintIrAfterAll 
# | check:278'0                              X error: no match found
# |             75: // -----// IR Dump After CanonicalizerPass (canonicalize) //----- // 
# | check:278'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:278'1     ?                                                                     possible intended match
# |             76: module { 
# | check:278'0     ~~~~~~~~~
# |             77:  func.func @main() { 
# | check:278'0     ~~~~~~~~~~~~~~~~~~~~~
# |             78:  return 
# | check:278'0     ~~~~~~~~
# |             79:  } 
# | check:278'0     ~~~
# |             80: } 
# | check:278'0     ~~
# |             81:  
# | check:278'0     ~
# |             82:  
# | check:278'0     ~
# |             83:  
# | check:278'0     ~
# |             84: TEST: testPrintIrBeforeAndAfterAll 
# | check:278'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:304'0                                       X error: no match found
# |             85: // -----// IR Dump Before CanonicalizerPass (canonicalize) //----- // 
# | check:304'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:304'1     ?                                                                      possible intended match
# |             86: module { 
# | check:304'0     ~~~~~~~~~
# |             87:  func.func @main() { 
# | check:304'0     ~~~~~~~~~~~~~~~~~~~~~
# |             88:  %c10_i64 = arith.constant 10 : i64 
# | check:304'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             89:  return 
# | check:304'0     ~~~~~~~~
# |             90:  } 
# | check:304'0     ~~~
# |              .
# |              .
# |              .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the Mlir-commits mailing list