Skip to content

Commit 175a1c6

Browse files
committed
[MLIR][Transform] Make TransformState constructor public
This is discussed in RFC: https://discourse.llvm.org/t/rfc-making-the-constructor-of-the-transformstate-class-protected/80377
1 parent 14dfdc0 commit 175a1c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mlir/include/mlir/Dialect/Transform/Interfaces/TransformInterfaces.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -476,10 +476,6 @@ class TransformState {
476476
extensions.erase(TypeID::get<Ty>());
477477
}
478478

479-
private:
480-
/// Identifier for storing top-level value in the `operations` mapping.
481-
static constexpr Value kTopLevelValue = Value();
482-
483479
/// Creates a state for transform ops living in the given region. The second
484480
/// argument points to the root operation in the payload IR being transformed,
485481
/// which may or may not contain the region with transform ops. Additional
@@ -488,6 +484,10 @@ class TransformState {
488484
const RaggedArray<MappedValue> &extraMappings = {},
489485
const TransformOptions &options = TransformOptions());
490486

487+
private:
488+
/// Identifier for storing top-level value in the `operations` mapping.
489+
static constexpr Value kTopLevelValue = Value();
490+
491491
/// Returns the mappings frame for the region in which the value is defined.
492492
/// If `allowOutOfScope` is set to "false", asserts that the value is in
493493
/// scope, based on the current stack of frames.

0 commit comments

Comments
 (0)