From 289ecccaddeea5a6c5840f3e081b04022ba04c26 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 22 Mar 2021 17:19:46 -0700 Subject: [PATCH] Tidy up some docs. Depends on D99127. Differential Revision: https://reviews.llvm.org/D99130 --- mlir/docs/Tutorials/Toy/Ch-5.md | 2 +- mlir/docs/Tutorials/Toy/Ch-6.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/docs/Tutorials/Toy/Ch-5.md b/mlir/docs/Tutorials/Toy/Ch-5.md index 9cd1533d184d..ef95fa4bb4e5 100644 --- a/mlir/docs/Tutorials/Toy/Ch-5.md +++ b/mlir/docs/Tutorials/Toy/Ch-5.md @@ -147,7 +147,7 @@ void ToyToAffineLoweringPass::runOnFunction() { // Now that the conversion target has been defined, we just need to provide // the set of patterns that will lower the Toy operations. - mlir::RewritePatternSet patterns; + mlir::RewritePatternSet patterns(&getContext()); patterns.add<..., TransposeOpLowering>(&getContext()); ... diff --git a/mlir/docs/Tutorials/Toy/Ch-6.md b/mlir/docs/Tutorials/Toy/Ch-6.md index b490421fab4a..c54c8d36a2c9 100644 --- a/mlir/docs/Tutorials/Toy/Ch-6.md +++ b/mlir/docs/Tutorials/Toy/Ch-6.md @@ -90,7 +90,7 @@ into LLVM dialect. These patterns allow for lowering the IR in multiple stages by relying on [transitive lowering](../../../getting_started/Glossary.md#transitive-lowering). ```c++ - mlir::RewritePatternSet patterns; + mlir::RewritePatternSet patterns(&getContext()); mlir::populateAffineToStdConversionPatterns(patterns, &getContext()); mlir::populateLoopToStdConversionPatterns(patterns, &getContext()); mlir::populateStdToLLVMConversionPatterns(typeConverter, patterns);