[Mlir-commits] [mlir] f60d23c - [mlir][docs] Reorder PassWrapper arguments
Marius Brehler
llvmlistbot at llvm.org
Fri Jun 11 12:50:00 PDT 2021
Author: Marius Brehler
Date: 2021-06-11T21:49:29+02:00
New Revision: f60d23c7381c347ad57cb776430dc18730890993
URL: https://github.com/llvm/llvm-project/commit/f60d23c7381c347ad57cb776430dc18730890993
DIFF: https://github.com/llvm/llvm-project/commit/f60d23c7381c347ad57cb776430dc18730890993.diff
LOG: [mlir][docs] Reorder PassWrapper arguments
Fixes the order of template arguments passed to the `PassWrapper`.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D104132
Added:
Modified:
mlir/docs/PassManagement.md
Removed:
################################################################################
diff --git a/mlir/docs/PassManagement.md b/mlir/docs/PassManagement.md
index 315f66cb6df8..5772ee4b2d74 100644
--- a/mlir/docs/PassManagement.md
+++ b/mlir/docs/PassManagement.md
@@ -69,8 +69,8 @@ namespace {
/// necessary utility hooks. This is only necessary for passes defined directly
/// in C++. Passes defined declaratively use a cleaner mechanism for providing
/// these utilities.
-struct MyFunctionPass : public PassWrapper<OperationPass<FuncOp>,
- MyFunctionPass> {
+struct MyFunctionPass : public PassWrapper<MyFunctionPass,
+ OperationPass<FuncOp>> {
void runOnOperation() override {
// Get the current FuncOp operation being operated on.
FuncOp f = getOperation();
@@ -113,7 +113,7 @@ A simple pass may look like:
/// necessary utility hooks. This is only necessary for passes defined directly
/// in C++. Passes defined declaratively use a cleaner mechanism for providing
/// these utilities.
-struct MyOperationPass : public PassWrapper<OperationPass<>, MyOperationPass> {
+struct MyOperationPass : public PassWrapper<MyOperationPass, OperationPass<>> {
void runOnOperation() override {
// Get the current operation being operated on.
Operation *op = getOperation();
More information about the Mlir-commits
mailing list