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

Adam Siemieniuk llvmlistbot at llvm.org
Fri Jan 16 08:58:34 PST 2026


================
@@ -5261,7 +5261,7 @@ commonPermutationOfPackAndUnPackOp(OpTy packOrUnPackOp,
 //===----------------------------------------------------------------------===//
 
 void PackOp::getAsmResultNames(function_ref<void(Value, StringRef)> setNameFn) {
-  if (getNumResults() == 0)
+  if (!getResults().empty())
----------------
adam-smnk wrote:

I meant to also remove the return
```
if (!empty)
  setName
```

Sorry if that wasn't clear in my comment

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


More information about the Mlir-commits mailing list