aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/Examples
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2021-02-19 23:53:13 +0000
committerMehdi Amini <joker.eph@gmail.com>2021-02-19 23:54:52 +0000
commitf8c1f3b14ad988fd786b896b4b342606bdc760cf (patch)
tree26b460c726f5e2355bb4d1f71f623ede79b423c1 /mlir/test/Examples
parentb006f555448a7b842f6d89cf4cdc6e2aa0b9a31e (diff)
downloadllvm-f8c1f3b14ad988fd786b896b4b342606bdc760cf.zip
llvm-f8c1f3b14ad988fd786b896b4b342606bdc760cf.tar.gz
llvm-f8c1f3b14ad988fd786b896b4b342606bdc760cf.tar.bz2
Revert "Revert "Fix MLIR Toy tutorial JIT example and add a test to cover it""
This reverts commit f36060417ad3e247900dfcb07a2476a9d92ee2d2 and reapply commit ae15b1e7ad71e4bfde1b031dd5e6b0bbb3b88a42. JIT test must be annotated to not run on Windows.
Diffstat (limited to 'mlir/test/Examples')
-rw-r--r--mlir/test/Examples/Toy/Ch6/jit.toy6
-rw-r--r--mlir/test/Examples/Toy/Ch7/jit.toy6
2 files changed, 12 insertions, 0 deletions
diff --git a/mlir/test/Examples/Toy/Ch6/jit.toy b/mlir/test/Examples/Toy/Ch6/jit.toy
new file mode 100644
index 0000000..387c045
--- /dev/null
+++ b/mlir/test/Examples/Toy/Ch6/jit.toy
@@ -0,0 +1,6 @@
+# RUN: toyc-ch6 -emit=jit %s
+# UNSUPPORTED: windows
+
+def main() {
+ print([[1, 2], [3, 4]]);
+}
diff --git a/mlir/test/Examples/Toy/Ch7/jit.toy b/mlir/test/Examples/Toy/Ch7/jit.toy
new file mode 100644
index 0000000..5310031
--- /dev/null
+++ b/mlir/test/Examples/Toy/Ch7/jit.toy
@@ -0,0 +1,6 @@
+# RUN: toyc-ch7 -emit=jit %s
+# UNSUPPORTED: windows
+
+def main() {
+ print([[1, 2], [3, 4]]);
+}