[Mlir-commits] [mlir] [mlir] [memref] [transform] Add alloc_to_global op. (PR #211141)
Federico Bruzzone
llvmlistbot at llvm.org
Wed Aug 5 23:34:20 PDT 2026
================
----------------
FedericoBruzzone wrote:
At the time this error is generated, `allocLikeOp` is not yet global. E.g.,
```
repro.mlir:66:8: error: global ops do not support symbol operands, but got 'memref<8x8xf32, affine_map<(d0, d1)[s0] -> (d0 + s0, d1)>>'
%0 = memref.alloc()[%s] : memref<8x8xf32, #map>
^
```
and
```
repro.mlir:86:8: error: global ops require statically shaped memrefs, but got 'memref<?xf32>'
%1 = memref.alloc(%n) : memref<?xf32>
^
```
Is there a way to make the error message a bit more robust?
https://github.com/llvm/llvm-project/pull/211141
More information about the Mlir-commits
mailing list