aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/Examples
diff options
context:
space:
mode:
authorStephen Neuendorffer <stephen.neuendorffer@xilinx.com>2020-04-22 10:52:07 -0700
committerStephen Neuendorffer <stephen.neuendorffer@xilinx.com>2020-05-05 09:22:49 -0700
commit175a3df9c7afbde0b3aa75dbe06472557a523819 (patch)
tree3e39153edfd121cafa9ac706aa1ed74155cefbd8 /mlir/test/Examples
parentc05f35443c3bc6dc69e060c766b23669a33e14ac (diff)
downloadllvm-175a3df9c7afbde0b3aa75dbe06472557a523819.zip
llvm-175a3df9c7afbde0b3aa75dbe06472557a523819.tar.gz
llvm-175a3df9c7afbde0b3aa75dbe06472557a523819.tar.bz2
[MLIR] Add a tests for out of tree dialect example.
This attempts to ensure that out of tree usage remains stable. Differential Revision: https://reviews.llvm.org/D78656
Diffstat (limited to 'mlir/test/Examples')
-rw-r--r--mlir/test/Examples/standalone/lit.local.cfg3
-rw-r--r--mlir/test/Examples/standalone/test.toy4
2 files changed, 7 insertions, 0 deletions
diff --git a/mlir/test/Examples/standalone/lit.local.cfg b/mlir/test/Examples/standalone/lit.local.cfg
new file mode 100644
index 0000000..481b809
--- /dev/null
+++ b/mlir/test/Examples/standalone/lit.local.cfg
@@ -0,0 +1,3 @@
+config.substitutions.append(("%cmake", config.host_cmake))
+config.substitutions.append(("%host_cxx", config.host_cxx))
+config.substitutions.append(("%host_cc", config.host_cc))
diff --git a/mlir/test/Examples/standalone/test.toy b/mlir/test/Examples/standalone/test.toy
new file mode 100644
index 0000000..4f9ba5c
--- /dev/null
+++ b/mlir/test/Examples/standalone/test.toy
@@ -0,0 +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-opt | tee %t | FileCheck %s
+
+# CHECK: Expected Passes: 1
+# UNSUPPORTED: windows, android