[Mlir-commits] [mlir] 9c90725 - [MLIR] Fix documentation of the `ExecutionEngine` in the toy tutorial example

Frederik Gossen llvmlistbot at llvm.org
Tue Jul 13 04:24:07 PDT 2021


Author: Frederik Gossen
Date: 2021-07-13T13:23:43+02:00
New Revision: 9c90725eaee5a00e5dd450e51c4070afd7081472

URL: https://github.com/llvm/llvm-project/commit/9c90725eaee5a00e5dd450e51c4070afd7081472
DIFF: https://github.com/llvm/llvm-project/commit/9c90725eaee5a00e5dd450e51c4070afd7081472.diff

LOG: [MLIR] Fix documentation of the `ExecutionEngine` in the toy tutorial example

Differential Revision: https://reviews.llvm.org/D105813

Added: 
    

Modified: 
    mlir/docs/Tutorials/Toy/Ch-6.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/Tutorials/Toy/Ch-6.md b/mlir/docs/Tutorials/Toy/Ch-6.md
index 2c7390cb7c87e..565cc703fe202 100644
--- a/mlir/docs/Tutorials/Toy/Ch-6.md
+++ b/mlir/docs/Tutorials/Toy/Ch-6.md
@@ -293,7 +293,8 @@ int runJit(mlir::ModuleOp module) {
 
   // Create an MLIR execution engine. The execution engine eagerly JIT-compiles
   // the module.
-  auto maybeEngine = mlir::ExecutionEngine::create(module, optPipeline);
+  auto maybeEngine = mlir::ExecutionEngine::create(module,
+      /*llvmModuleBuilder=*/nullptr, optPipeline);
   assert(maybeEngine && "failed to construct an execution engine");
   auto &engine = maybeEngine.get();
 


        


More information about the Mlir-commits mailing list