From f3547fd541cac91c5ee281052584b05275ddc915 Mon Sep 17 00:00:00 2001 From: Marius Brehler Date: Fri, 12 Aug 2022 08:21:21 +0000 Subject: [PATCH] [mlir][emitc][nfc] Clean up tests With https://reviews.llvm.org/D131666 the types were removed from the EmitC opaque attributes. This cleans up the tests accordingly. --- mlir/test/Target/Cpp/const.mlir | 2 +- mlir/test/Target/Cpp/variable.mlir | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/test/Target/Cpp/const.mlir b/mlir/test/Target/Cpp/const.mlir index cc8163cf8c64..e6c94732e9f6 100644 --- a/mlir/test/Target/Cpp/const.mlir +++ b/mlir/test/Target/Cpp/const.mlir @@ -2,7 +2,7 @@ // RUN: mlir-translate -mlir-to-cpp -declare-variables-at-top %s | FileCheck %s -check-prefix=CPP-DECLTOP func.func @emitc_constant() { - %c0 = "emitc.constant"(){value = #emitc.opaque<""> : i32} : () -> i32 + %c0 = "emitc.constant"(){value = #emitc.opaque<"">} : () -> i32 %c1 = "emitc.constant"(){value = 42 : i32} : () -> i32 %c2 = "emitc.constant"(){value = -1 : i32} : () -> i32 %c3 = "emitc.constant"(){value = -1 : si8} : () -> si8 diff --git a/mlir/test/Target/Cpp/variable.mlir b/mlir/test/Target/Cpp/variable.mlir index 11f74b0a74eb..77a060a32f9d 100644 --- a/mlir/test/Target/Cpp/variable.mlir +++ b/mlir/test/Target/Cpp/variable.mlir @@ -2,7 +2,7 @@ // RUN: mlir-translate -mlir-to-cpp -declare-variables-at-top %s | FileCheck %s -check-prefix=CPP-DECLTOP func.func @emitc_variable() { - %c0 = "emitc.variable"(){value = #emitc.opaque<""> : i32} : () -> i32 + %c0 = "emitc.variable"(){value = #emitc.opaque<"">} : () -> i32 %c1 = "emitc.variable"(){value = 42 : i32} : () -> i32 %c2 = "emitc.variable"(){value = -1 : i32} : () -> i32 %c3 = "emitc.variable"(){value = -1 : si8} : () -> si8