[Mlir-commits] [mlir] [mlir][emitc] Add ArrayType (PR #83386)

Simon Camphausen llvmlistbot at llvm.org
Fri Mar 1 05:59:12 PST 2024


================
@@ -11,3 +11,57 @@ func.func @illegal_opaque_type_2() {
     // expected-error @+1 {{pointer not allowed as outer type with !emitc.opaque, use !emitc.ptr instead}}
     %1 = "emitc.variable"(){value = "nullptr" : !emitc.opaque<"int32_t*">} : () -> !emitc.opaque<"int32_t*">
 }
+
----------------
simon-camp wrote:

Can you add negative tests for invalid element types, like tensor, array, function, etc.

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


More information about the Mlir-commits mailing list