[Mlir-commits] [mlir] f360604 - Revert "Fix MLIR Toy tutorial JIT example and add a test to cover it"
Stella Stamenova
llvmlistbot at llvm.org
Fri Feb 19 13:39:22 PST 2021
Author: Stella Stamenova
Date: 2021-02-19T13:38:43-08:00
New Revision: f36060417ad3e247900dfcb07a2476a9d92ee2d2
URL: https://github.com/llvm/llvm-project/commit/f36060417ad3e247900dfcb07a2476a9d92ee2d2
DIFF: https://github.com/llvm/llvm-project/commit/f36060417ad3e247900dfcb07a2476a9d92ee2d2.diff
LOG: Revert "Fix MLIR Toy tutorial JIT example and add a test to cover it"
This reverts commit ae15b1e7ad71e4bfde1b031dd5e6b0bbb3b88a42.
This commit caused failures on the mlir windows buildbot
Added:
Modified:
mlir/examples/toy/Ch6/toyc.cpp
mlir/examples/toy/Ch7/toyc.cpp
Removed:
mlir/test/Examples/Toy/Ch6/jit.toy
mlir/test/Examples/Toy/Ch7/jit.toy
################################################################################
diff --git a/mlir/examples/toy/Ch6/toyc.cpp b/mlir/examples/toy/Ch6/toyc.cpp
index 0645bd40c1ba..5298c0bb5205 100644
--- a/mlir/examples/toy/Ch6/toyc.cpp
+++ b/mlir/examples/toy/Ch6/toyc.cpp
@@ -240,7 +240,7 @@ int runJit(mlir::ModuleOp module) {
auto &engine = maybeEngine.get();
// Invoke the JIT-compiled function.
- auto invocationResult = engine->invokePacked("main");
+ auto invocationResult = engine->invoke("main");
if (invocationResult) {
llvm::errs() << "JIT invocation failed\n";
return -1;
diff --git a/mlir/examples/toy/Ch7/toyc.cpp b/mlir/examples/toy/Ch7/toyc.cpp
index 0f6d3876a5ad..8bace4a73977 100644
--- a/mlir/examples/toy/Ch7/toyc.cpp
+++ b/mlir/examples/toy/Ch7/toyc.cpp
@@ -241,7 +241,7 @@ int runJit(mlir::ModuleOp module) {
auto &engine = maybeEngine.get();
// Invoke the JIT-compiled function.
- auto invocationResult = engine->invokePacked("main");
+ auto invocationResult = engine->invoke("main");
if (invocationResult) {
llvm::errs() << "JIT invocation failed\n";
return -1;
diff --git a/mlir/test/Examples/Toy/Ch6/jit.toy b/mlir/test/Examples/Toy/Ch6/jit.toy
deleted file mode 100644
index 250eb4e3307d..000000000000
--- a/mlir/test/Examples/Toy/Ch6/jit.toy
+++ /dev/null
@@ -1,5 +0,0 @@
-# RUN: toyc-ch6 -emit=jit %s
-
-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
deleted file mode 100644
index aaa898f77b3d..000000000000
--- a/mlir/test/Examples/Toy/Ch7/jit.toy
+++ /dev/null
@@ -1,5 +0,0 @@
-# RUN: toyc-ch7 -emit=jit %s
-
-def main() {
- print([[1, 2], [3, 4]]);
-}
More information about the Mlir-commits
mailing list