[Mlir-commits] [mlir] [mlir][emitc] Add ArrayType (PR #83386)
Simon Camphausen
llvmlistbot at llvm.org
Wed Mar 6 09:02:27 PST 2024
================
@@ -57,3 +57,31 @@ func.func @non_static_shape(%arg0 : tensor<?xf32>) {
func.func @unranked_tensor(%arg0 : tensor<*xf32>) {
return
}
+
+// -----
+
+// expected-error at +1 {{cannot emit tensor of array type}}
+func.func @tensor_of_array(%arg0 : tensor<4x!emitc.array<4xf32>>) {
+ return
+}
+
+// -----
+
+// expected-error at +1 {{cannot emit pointer to array type}}
+func.func @tensor_of_array(%arg0 : !emitc.ptr<!emitc.array<4xf32>>) {
----------------
simon-camp wrote:
```suggestion
func.func @pointer_to_array(%arg0 : !emitc.ptr<!emitc.array<4xf32>>) {
```
https://github.com/llvm/llvm-project/pull/83386
More information about the Mlir-commits
mailing list