[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:23 PST 2026


github-actions[bot] wrote:

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

* 7362 tests passed
* 598 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
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/linalg/ops.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/linalg/ops.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/linalg/ops.py
# .---command stderr------------
# | Traceback (most recent call last):
# |   File "/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/linalg/ops.py", line 638, in <module>
# |     @run
# |      ^^^
# |   File "/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/linalg/ops.py", line 11, in run
# |     f()
# |   File "/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/linalg/ops.py", line 645, in testPackUnPackOp
# |     @func.FuncOp.from_py_func(
# |      ^^^^^^^^^^^^^^^^^^^^^^^^^
# |   File "/home/gha/actions-runner/_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 "/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/linalg/ops.py", line 650, in tensor_pack
# |     packed = linalg.pack(
# |              ^^^^^^^^^^^^
# |   File "/home/gha/actions-runner/_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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/linalg/ops.py
# .---command stderr------------
# | /home/gha/actions-runner/_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: /home/gha/actions-runner/_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