Tidy up some docs.

Depends on D99127.

Differential Revision: https://reviews.llvm.org/D99130
This commit is contained in:
Chris Lattner 2021-03-22 17:19:46 -07:00
parent dc4e913be9
commit 289ecccadd
2 changed files with 2 additions and 2 deletions

View File

@ -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());
...

View File

@ -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);