[Mlir-commits] [mlir] Fix handling of integer template argument in emitc.call_opaque (PR #141451)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun May 25 23:23:31 PDT 2025


================
@@ -109,3 +109,9 @@ func.func @apply() -> !emitc.ptr<i32> {
 func.func @array_type(%arg0: !emitc.array<3xi32>, %arg1: !emitc.array<10x20xf32>) {
   return
 }
+
+// CHECK: call_opaque_with_template_arg
+func.func @call_opaque_with_template_arg() {
+  emitc.call_opaque "init_tile"() {template_args = [512 : index]} : () -> ()
+  return
----------------
patel-vimal wrote:

Check the output.

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


More information about the Mlir-commits mailing list