[Mlir-commits] [mlir] [mlir][c] Enable creating and setting greedy rewrite confing. (PR #162429)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Dec 26 19:53:06 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 3379 tests passed
* 411 tests skipped
* 2 tests failed

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

### MLIR
<details>
<summary>MLIR.python/python_pass.py</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
"C:/Python312/python.exe" C:\_work\llvm-project\llvm-project\mlir\test\python\python_pass.py 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\mlir\test\python\python_pass.py
# executed command: C:/Python312/python.exe 'C:\_work\llvm-project\llvm-project\mlir\test\python\python_pass.py'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 0xc0000409
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\mlir\test\python\python_pass.py'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\mlir\test\python\python_pass.py:82:17: error: CHECK-LABEL: expected string not found in input
# |  # CHECK-LABEL: Dump After CustomPass2
# |                 ^
# | <stdin>:4:39: note: scanning from here
# | // -----// IR Dump After custom_pass_1 () //----- //
# |                                       ^
# | <stdin>:5:1: note: possible intended match here
# | module {
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\mlir\test\python\python_pass.py
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1:  
# |             2: TEST: testCustomPass 
# |             3: hello from pass 1!!! 
# |             4: // -----// IR Dump After custom_pass_1 () //----- // 
# | label:82'0                                           X~~~~~~~~~~~~~~ error: no match found
# |             5: module { 
# | label:82'0     ~~~~~~~~~
# | label:82'1     ?         possible intended match
# |             6:  func.func @add(%arg0: i64, %arg1: i64) -> i64 { 
# | label:82'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             7:  %0 = arith.addi %arg0, %arg1 : i64 
# | label:82'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             8:  return %0 : i64 
# | label:82'0     ~~~~~~~~~~~~~~~~~
# |             9:  } 
# | label:82'0     ~~~
# |            10: } 
# | label:82'0     ~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

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

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
"C:/Python312/python.exe" C:\_work\llvm-project\llvm-project\mlir\test\python\rewrite.py 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\mlir\test\python\rewrite.py
# executed command: C:/Python312/python.exe 'C:\_work\llvm-project\llvm-project\mlir\test\python\rewrite.py'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\mlir\test\python\rewrite.py'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\mlir\test\python\rewrite.py:91:16: error: CHECK-LABEL: expected string not found in input
# | # CHECK-LABEL: TEST: testGreedyRewriteDriverConfigCreation
# |                ^
# | <stdin>:2:25: note: scanning from here
# | TEST: testRewritePattern
# |                         ^
# | <stdin>:9:79: note: possible intended match here
# |  File "C:\_work\llvm-project\llvm-project\mlir\test\python\rewrite.py", line 35, in testRewritePattern
# |                                                                               ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\mlir\test\python\rewrite.py
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1:  
# |             2: TEST: testRewritePattern 
# | label:91'0                             X error: no match found
# |             3: Traceback (most recent call last): 
# | label:91'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             4:  File "C:\_work\llvm-project\llvm-project\mlir\test\python\rewrite.py", line 18, in <module> 
# | label:91'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             5:  @run 
# | label:91'0     ~~~~~~
# |             6:  ^^^ 
# | label:91'0     ~~~~~
# |             7:  File "C:\_work\llvm-project\llvm-project\mlir\test\python\rewrite.py", line 12, in run 
# | label:91'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             8:  f() 
# | label:91'0     ~~~~~
# |             9:  File "C:\_work\llvm-project\llvm-project\mlir\test\python\rewrite.py", line 35, in testRewritePattern 
# | label:91'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | label:91'1                                                                                   ?                         possible intended match
# |            10:  patterns = RewritePatternSet() 
# | label:91'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            11:  ^^^^^^^^^^^^^^^^^ 
# | label:91'0     ~~~~~~~~~~~~~~~~~~~
# |            12: NameError: name 'RewritePatternSet' is not defined 
# | label:91'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/162429


More information about the Mlir-commits mailing list