Skip to content

Commit 87d09d4

Browse files
googlewaltSterling-Augustine
authored andcommitted
[mlir] NFC: Fix layering check / parse headers violations (llvm#110117)
Those tools check strict dependency and standalone headers in Google, but some internal build optimizations caused some violations not to be detected. This change adds a missing dependency, and includes some types that are needed for template instantiation.
1 parent 1633a43 commit 87d09d4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "mlir/Dialect/Linalg/IR/Linalg.h"
1515
#include "mlir/Dialect/Transform/IR/TransformAttrs.h"
1616
#include "mlir/Dialect/Transform/IR/TransformDialect.h"
17+
#include "mlir/Dialect/Transform/IR/TransformTypes.h"
1718
#include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"
1819
#include "mlir/Dialect/Utils/StructuredOpsUtils.h"
1920
#include "mlir/IR/OpImplementation.h"
@@ -42,10 +43,6 @@ class UnPackOp;
4243
} // namespace tensor
4344

4445
namespace transform {
45-
class AnyOpType;
46-
class AnyValueType;
47-
class OperationType;
48-
class TransformHandleTypeInterface;
4946
// Types needed for builders.
5047
struct TileSizesSpec {};
5148
struct NumThreadsSpec {};

utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12371,6 +12371,7 @@ cc_library(
1237112371
hdrs = glob(["include/mlir/Dialect/Transform/IR/*.h"]),
1237212372
deps = [
1237312373
":Analysis",
12374+
":BytecodeOpInterface",
1237412375
":CallOpInterfaces",
1237512376
":CastInterfaces",
1237612377
":ControlFlowInterfaces",

0 commit comments

Comments
 (0)