Skip to content

Commit 18669b1

Browse files
[NFC][Transform] Cleanup magic constant usage
1 parent dfcb890 commit 18669b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#ifndef MLIR_DIALECT_TRANSFORM_TRANSFORMS_PASSES_H
1010
#define MLIR_DIALECT_TRANSFORM_TRANSFORMS_PASSES_H
1111

12+
#include "mlir/Dialect/Transform/IR/TransformDialect.h"
1213
#include "mlir/Pass/Pass.h"
13-
#include <memory>
1414

1515
namespace mlir {
1616
class Pass;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ 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-
`__transform_main`).
69+
`TransformDialect::kTransformEntryPointSymbolName` (i.e. `__transform_main`)).
7070
}];
7171
let dependentDialects = ["::mlir::transform::TransformDialect"];
7272
let options = [
@@ -79,7 +79,7 @@ def InterpreterPass : Pass<"transform-interpreter"> {
7979
"false",
8080
"Disable expensive checks in the interpreter for a faster run.">,
8181
Option<"entryPoint", "entry-point", "std::string",
82-
/*default=*/[{"__transform_main"}],
82+
/*default=*/[{TransformDialect::kTransformEntryPointSymbolName.str()}],
8383
"Entry point of the pass pipeline.">,
8484
];
8585
}

0 commit comments

Comments
 (0)