forked from OSchip/llvm-project
Tidy up some docs.
Depends on D99127. Differential Revision: https://reviews.llvm.org/D99130
This commit is contained in:
parent
dc4e913be9
commit
289ecccadd
|
@ -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());
|
||||
|
||||
...
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue