[PATCH] D80764: [mlir] Add test to check if standalone dialect is registered

Jean-Michel Gorius via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 15:59:55 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGb0b2507717ca: [mlir] Add test to check if standalone dialect is registered (authored by marbre, committed by Kayjukh).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80764/new/

https://reviews.llvm.org/D80764

Files:
  mlir/examples/standalone/test/Standalone/standalone-opt.mlir
  mlir/test/Examples/standalone/test.toy


Index: mlir/test/Examples/standalone/test.toy
===================================================================
--- mlir/test/Examples/standalone/test.toy
+++ mlir/test/Examples/standalone/test.toy
@@ -1,4 +1,4 @@
 # RUN: %cmake %mlir_src_root/examples/standalone -DCMAKE_CXX_COMPILER=%host_cxx -DCMAKE_C_COMPILER=%host_cc -DMLIR_DIR=%llvm_lib_dir/cmake/mlir ; %cmake --build . --target check-standalone | tee %t | FileCheck %s
 
-# CHECK: Expected Passes: 2
+# CHECK: Expected Passes: 3
 # UNSUPPORTED: windows, android
Index: mlir/examples/standalone/test/Standalone/standalone-opt.mlir
===================================================================
--- /dev/null
+++ mlir/examples/standalone/test/Standalone/standalone-opt.mlir
@@ -0,0 +1,3 @@
+// RUN: standalone-opt --show-dialects | FileCheck %s
+// CHECK: Registered Dialects:
+// CHECK: standalone


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80764.267071.patch
Type: text/x-patch
Size: 863 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200528/cb43237b/attachment.bin>


More information about the llvm-commits mailing list