Skip to content

Commit 9d4ac3a

Browse files
committed
document pass in greater detail
1 parent d6b4dbf commit 9d4ac3a

File tree

1 file changed

+22
-2
lines changed
  • mlir/include/mlir/Dialect/Transform/Transforms

1 file changed

+22
-2
lines changed

mlir/include/mlir/Dialect/Transform/Transforms/Passes.td

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,25 @@ def InterpreterPass : Pass<"transform-interpreter"> {
6666
let description = [{
6767
This pass runs the transform dialect interpreter and applies the named
6868
sequence transformation specified by the provided name (defaults to
69-
`TransformDialect::kTransformEntryPointSymbolName` (i.e. `__transform_main`)).
69+
`TransformDialect::kTransformEntryPointSymbolName`,
70+
i.e. `__transform_main`).
71+
72+
Additional options can be used to narrow down the pass applicability for
73+
debugging purposes:
74+
* `debugPayloadRootTag` makes the transform script apply to the payload
75+
operation that has a `transform.target_tag` string attribute with the
76+
given value, rather than to the anchor operation of the pass.
77+
* `debugBindTrailingArgs` allows one to bind values to trailing arguments
78+
of the transform entry point as follows:
79+
* arguments of `TransformHandleTypeInterface` type can be bound to all
80+
payload operations with the name provided as a simple string;
81+
* arguments of `TransformValueHandleTypeInterface` type can be bound to
82+
a flattened list of results of all operations with the name provided
83+
as a string prefixed with `^`;
84+
* arguments of `TransformParamTypeInterface` type can be bound to
85+
integer constants provided as `;`-separated list prefixed with `#`.
86+
* `entryPoint` specifies the name of the transform symbol to serve as the
87+
entry point.
7088
}];
7189
let dependentDialects = ["::mlir::transform::TransformDialect"];
7290
let options = [
@@ -83,7 +101,9 @@ def InterpreterPass : Pass<"transform-interpreter"> {
83101
"false",
84102
"Disable expensive checks in the interpreter for a faster run.">,
85103
Option<"entryPoint", "entry-point", "std::string",
86-
/*default=*/[{TransformDialect::kTransformEntryPointSymbolName.str()}],
104+
/*default=*/[{
105+
TransformDialect::kTransformEntryPointSymbolName.str()
106+
}],
87107
"Entry point of the pass pipeline.">,
88108
];
89109
}

0 commit comments

Comments
 (0)