[Mlir-commits] [mlir] [mlir][emitc] Add 'emitc.switch' op to the dialect (PR #102331)

Simon Camphausen llvmlistbot at llvm.org
Mon Aug 12 05:27:30 PDT 2024


================
@@ -80,8 +80,129 @@ func.func @array_as_result(%arg: !emitc.array<4xi8>) -> (!emitc.array<4xi8>) {
 }
 
 // -----
+
 func.func @ptr_to_array() {
   // expected-error at +1 {{cannot emit pointer to array type '!emitc.ptr<!emitc.array<9xi16>>'}}
   %v = "emitc.variable"(){value = #emitc.opaque<"NULL">} : () -> !emitc.ptr<!emitc.array<9xi16>>
   return
 }
+
----------------
simon-camp wrote:

These should all go into `test/Dialect/EmitC/invlaid_ops.mlir` as they are verification errors and not errors during code emission.

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


More information about the Mlir-commits mailing list