[Mlir-commits] [mlir] b0b2507 - [mlir] Add test to check if standalone dialect is registered

Jean-Michel Gorius llvmlistbot at llvm.org
Thu May 28 15:34:42 PDT 2020


Author: Marius Brehler
Date: 2020-05-29T00:34:34+02:00
New Revision: b0b2507717ca904ffe50248a44a5c653946b6732

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

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

Summary: Add a test to check if the standalone dialect is registered within standalone-opt. Similar to the mlir-opt commandline.mlir test.

Reviewers: Kayjukh, stephenneuendorffer

Reviewed By: Kayjukh

Subscribers: mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, grosul1, frgossen, jurahul, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80764

Added: 
    mlir/examples/standalone/test/Standalone/standalone-opt.mlir

Modified: 
    mlir/test/Examples/standalone/test.toy

Removed: 
    


################################################################################
diff  --git a/mlir/examples/standalone/test/Standalone/standalone-opt.mlir b/mlir/examples/standalone/test/Standalone/standalone-opt.mlir
new file mode 100644
index 000000000000..fac08144ec39
--- /dev/null
+++ b/mlir/examples/standalone/test/Standalone/standalone-opt.mlir
@@ -0,0 +1,3 @@
+// RUN: standalone-opt --show-dialects | FileCheck %s
+// CHECK: Registered Dialects:
+// CHECK: standalone

diff  --git a/mlir/test/Examples/standalone/test.toy b/mlir/test/Examples/standalone/test.toy
index 034fd9385d46..161427951a98 100644
--- a/mlir/test/Examples/standalone/test.toy
+++ b/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


        


More information about the Mlir-commits mailing list