[Mlir-commits] [mlir] [MLIR] Extend linalg.pack and linalg.unpack to accept memref (PR #167675)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Jan 16 05:47:22 PST 2026


github-actions[bot] wrote:

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

* 3419 tests passed
* 411 tests skipped
* 1 test failed

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

### MLIR
<details>
<summary>MLIR.python/dialects/linalg/ops.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\dialects\linalg\ops.py | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\mlir\test\python\dialects\linalg\ops.py
# executed command: C:/Python312/python.exe 'C:\_work\llvm-project\llvm-project\mlir\test\python\dialects\linalg\ops.py'
# .---command stderr------------
# | Traceback (most recent call last):
# |   File "C:\_work\llvm-project\llvm-project\mlir\test\python\dialects\linalg\ops.py", line 638, in <module>
# |     @run
# |      ^^^
# |   File "C:\_work\llvm-project\llvm-project\mlir\test\python\dialects\linalg\ops.py", line 11, in run
# |     f()
# |   File "C:\_work\llvm-project\llvm-project\mlir\test\python\dialects\linalg\ops.py", line 645, in testPackUnPackOp
# |     @func.FuncOp.from_py_func(
# |      ^^^^^^^^^^^^^^^^^^^^^^^^^
# |   File "c:\_work\llvm-project\llvm-project\build\tools\mlir\python_packages\mlir_core\mlir\dialects\func.py", line 197, in decorator
# |     return_values = f(*func_args, **func_kwargs)
# |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# |   File "C:\_work\llvm-project\llvm-project\mlir\test\python\dialects\linalg\ops.py", line 650, in tensor_pack
# |     packed = linalg.pack(
# |              ^^^^^^^^^^^^
# |   File "c:\_work\llvm-project\llvm-project\build\tools\mlir\python_packages\mlir_core\mlir\dialects\linalg\__init__.py", line 313, in pack
# |     PackOp(
# | TypeError: PackOp.__init__() missing 1 required positional argument: 'result'
# `-----------------------------
# 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\dialects\linalg\ops.py'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\mlir\test\python\dialects\linalg\ops.py:667:17: error: CHECK-LABEL: expected string not found in input
# |  # CHECK-LABEL: func.func @tensor_pack(
# |                 ^
# | <stdin>:143:23: note: scanning from here
# | TEST: testPackUnPackOp
# |                       ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\mlir\test\python\dialects\linalg\ops.py
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |          138:  return 
# |          139:  } 
# |          140: } 
# |          141:  
# |          142:  
# |          143: TEST: testPackUnPackOp 
# | label:667                           X error: no match found
# | >>>>>>
# `-----------------------------
# 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/167675


More information about the Mlir-commits mailing list