Revert "Fix MLIR Toy tutorial JIT example and add a test to cover it"
authorStella Stamenova <stilis@microsoft.com>
Fri, 19 Feb 2021 21:38:43 +0000 (13:38 -0800)
committerStella Stamenova <stilis@microsoft.com>
Fri, 19 Feb 2021 21:38:43 +0000 (13:38 -0800)
This reverts commit ae15b1e7ad71e4bfde1b031dd5e6b0bbb3b88a42.

This commit caused failures on the mlir windows buildbot

mlir/examples/toy/Ch6/toyc.cpp
mlir/examples/toy/Ch7/toyc.cpp
mlir/test/Examples/Toy/Ch6/jit.toy [deleted file]
mlir/test/Examples/Toy/Ch7/jit.toy [deleted file]

index 0645bd4..5298c0b 100644 (file)
@@ -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;
index 0f6d387..8bace4a 100644 (file)
@@ -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 (file)
index 250eb4e..0000000
+++ /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 (file)
index aaa898f..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# RUN: toyc-ch7 -emit=jit %s
-
-def main() {
- print([[1, 2], [3, 4]]);
-}