File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ int runJit(mlir::ModuleOp module) {
240
240
auto &engine = maybeEngine.get ();
241
241
242
242
// Invoke the JIT-compiled function.
243
- auto invocationResult = engine->invoke (" main" );
243
+ auto invocationResult = engine->invokePacked (" main" );
244
244
if (invocationResult) {
245
245
llvm::errs () << " JIT invocation failed\n " ;
246
246
return -1 ;
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ int runJit(mlir::ModuleOp module) {
241
241
auto &engine = maybeEngine.get ();
242
242
243
243
// Invoke the JIT-compiled function.
244
- auto invocationResult = engine->invoke (" main" );
244
+ auto invocationResult = engine->invokePacked (" main" );
245
245
if (invocationResult) {
246
246
llvm::errs () << " JIT invocation failed\n " ;
247
247
return -1 ;
Original file line number Diff line number Diff line change
1
+ # RUN: toyc-ch6 -emit=jit %s
2
+
3
+ def main() {
4
+ print([[1, 2], [3, 4]]);
5
+ }
Original file line number Diff line number Diff line change
1
+ # RUN: toyc-ch7 -emit=jit %s
2
+
3
+ def main() {
4
+ print([[1, 2], [3, 4]]);
5
+ }
You can’t perform that action at this time.
0 commit comments