From f36060417ad3e247900dfcb07a2476a9d92ee2d2 Mon Sep 17 00:00:00 2001 From: Stella Stamenova Date: Fri, 19 Feb 2021 13:38:43 -0800 Subject: [PATCH] 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 --- mlir/examples/toy/Ch6/toyc.cpp | 2 +- mlir/examples/toy/Ch7/toyc.cpp | 2 +- mlir/test/Examples/Toy/Ch6/jit.toy | 5 ----- mlir/test/Examples/Toy/Ch7/jit.toy | 5 ----- 4 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 mlir/test/Examples/Toy/Ch6/jit.toy delete mode 100644 mlir/test/Examples/Toy/Ch7/jit.toy diff --git a/mlir/examples/toy/Ch6/toyc.cpp b/mlir/examples/toy/Ch6/toyc.cpp index 0645bd4..5298c0b 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 0f6d387..8bace4a 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 250eb4e..0000000 --- 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 aaa898f..0000000 --- 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]]); -} -- 2.7.4