[Mlir-commits] [mlir] f3547fd - [mlir][emitc][nfc] Clean up tests

Marius Brehler llvmlistbot at llvm.org
Fri Aug 12 01:26:00 PDT 2022


Author: Marius Brehler
Date: 2022-08-12T08:25:31Z
New Revision: f3547fd541cac91c5ee281052584b05275ddc915

URL: https://github.com/llvm/llvm-project/commit/f3547fd541cac91c5ee281052584b05275ddc915
DIFF: https://github.com/llvm/llvm-project/commit/f3547fd541cac91c5ee281052584b05275ddc915.diff

LOG: [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.

Added: 
    

Modified: 
    mlir/test/Target/Cpp/const.mlir
    mlir/test/Target/Cpp/variable.mlir

Removed: 
    


################################################################################
diff  --git a/mlir/test/Target/Cpp/const.mlir b/mlir/test/Target/Cpp/const.mlir
index cc8163cf8c645..e6c94732e9f6b 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 11f74b0a74eb0..77a060a32f9d4 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


        


More information about the Mlir-commits mailing list