[PATCH] D78656: [MLIR] Experimental: Add a tests for out of tree dialect example.
Stephen Neuendorffer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 22 11:26:07 PDT 2020
stephenneuendorffer created this revision.
Herald added subscribers: llvm-commits, frgossen, grosul1, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar, rriddle, mehdi_amini.
Herald added a project: LLVM.
This is an attempt to add a tests for the out of tree example.
I have two major concerns about it:
1. There seems to be no direct way to inherit the compiler configuration, so
I need to currently pass CMAKE_CXX_COMPILER, etc.
2. I have no idea how fragile this is on non-linux architectures.
Depends on D77110 <https://reviews.llvm.org/D77110>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78656
Files:
mlir/test/Examples/standalone/test.toy
Index: mlir/test/Examples/standalone/test.toy
===================================================================
--- /dev/null
+++ mlir/test/Examples/standalone/test.toy
@@ -0,0 +1,3 @@
+# RUN: cmake $(dirname %s)/../../../examples/standalone -DCMAKE_CXX_COMPILER=clang++-8 -DCMAKE_C_COMPILER=clang-8 -DMLIR_DIR=../../../../../lib/cmake/mlir ; cmake --build . --target check-standalone-opt | tee output | FileCheck %s
+
+# CHECK: Expected Passes: 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78656.259337.patch
Type: text/x-patch
Size: 450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200422/7ffabd34/attachment.bin>
More information about the llvm-commits
mailing list