diff --git a/mlir/test/lib/Dialect/SCF/TestSCFUtils.cpp b/mlir/test/lib/Dialect/SCF/TestSCFUtils.cpp --- a/mlir/test/lib/Dialect/SCF/TestSCFUtils.cpp +++ b/mlir/test/lib/Dialect/SCF/TestSCFUtils.cpp @@ -19,7 +19,6 @@ #include "mlir/IR/PatternMatch.h" #include "mlir/Pass/Pass.h" #include "mlir/Transforms/GreedyPatternRewriteDriver.h" -#include "mlir/Transforms/Passes.h" #include "llvm/ADT/SetVector.h" diff --git a/mlir/test/lib/Transforms/TestConstantFold.cpp b/mlir/test/lib/Transforms/TestConstantFold.cpp --- a/mlir/test/lib/Transforms/TestConstantFold.cpp +++ b/mlir/test/lib/Transforms/TestConstantFold.cpp @@ -8,7 +8,6 @@ #include "mlir/Pass/Pass.h" #include "mlir/Transforms/FoldUtils.h" -#include "mlir/Transforms/Passes.h" using namespace mlir; diff --git a/mlir/test/lib/Transforms/TestInlining.cpp b/mlir/test/lib/Transforms/TestInlining.cpp --- a/mlir/test/lib/Transforms/TestInlining.cpp +++ b/mlir/test/lib/Transforms/TestInlining.cpp @@ -18,7 +18,6 @@ #include "mlir/IR/BuiltinOps.h" #include "mlir/Pass/Pass.h" #include "mlir/Transforms/InliningUtils.h" -#include "mlir/Transforms/Passes.h" #include "llvm/ADT/StringSet.h" using namespace mlir; diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -4671,23 +4671,18 @@ "lib/Transforms/Utils/*.cpp", "lib/Transforms/Utils/*.h", ]), - hdrs = glob([ - "include/mlir/Transforms/*.h", - ]), + hdrs = glob( + [ + "include/mlir/Transforms/*.h", + ], + exclude = ["include/mlir/Transforms/Passes.h"], + ), includes = ["include"], deps = [ - ":Affine", - ":AffineAnalysis", - ":Analysis", - ":ArithmeticDialect", ":ControlFlowInterfaces", ":IR", - ":MemRefDialect", - ":Pass", ":Rewrite", - ":SCFDialect", ":SideEffectInterfaces", - ":StandardOps", ":Support", ":TransformsPassIncGen", "//llvm:Support", @@ -4879,25 +4874,14 @@ hdrs = glob(["include/mlir/Transforms/*.h"]), includes = ["include"], deps = [ - ":Affine", - ":AffineAnalysis", - ":AllocationOpInterface", ":Analysis", - ":ArithmeticDialect", - ":BufferizationDialect", ":ControlFlowInterfaces", ":CopyOpInterface", ":IR", - ":LinalgOps", ":LoopLikeInterface", - ":MemRefDialect", ":Pass", ":Rewrite", - ":SCFDialect", - ":SideEffectInterfaces", - ":StandardOps", ":Support", - ":TensorDialect", ":TransformUtils", ":TransformsPassIncGen", "//llvm:Support", @@ -5474,17 +5458,11 @@ ), includes = ["include"], deps = [ - ":Affine", - ":ArithmeticDialect", - ":BufferizationDialect", ":CallOpInterfaces", ":ControlFlowInterfaces", ":DataLayoutInterfaces", ":IR", - ":LinalgOps", - ":SCFDialect", ":SideEffectInterfaces", - ":StandardOps", ":Support", ":ViewLikeInterface", "//llvm:Support", @@ -5500,7 +5478,6 @@ hdrs = ["include/mlir/Translation.h"], includes = ["include"], deps = [ - ":Analysis", ":IR", ":Parser", ":Support", @@ -5787,29 +5764,15 @@ ], ) -# TODO(jpienaar): Update this. cc_library( name = "MlirOptLib", srcs = ["lib/Support/MlirOptMain.cpp"], hdrs = ["include/mlir/Support/MlirOptMain.h"], includes = ["include"], deps = [ - ":Analysis", - ":ConversionPasses", - ":GPUToGPURuntimeTransforms", - ":GPUToNVVMTransforms", - ":GPUToROCDLTransforms", - ":GPUToSPIRV", - ":GPUTransforms", ":IR", ":Parser", ":Pass", - ":SCFTransforms", - ":ShapeToStandard", - ":ShapeTransforms", - ":StandardOpsTransforms", - ":StandardToLLVM", - ":StandardToSPIRV", ":Support", "//llvm:Support", ], @@ -7102,6 +7065,7 @@ ":TensorTransforms", ":TensorUtils", ":TransformUtils", + ":Transforms", ":VectorOps", ":VectorToSCF", ":VectorTransforms", diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel @@ -408,6 +408,7 @@ "//mlir:TensorDialect", "//mlir:TensorTransforms", "//mlir:TransformUtils", + "//mlir:Transforms", "//mlir:VectorOps", "//mlir:VectorToSCF", "//mlir:VectorTransforms", diff --git a/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel @@ -291,6 +291,7 @@ "//mlir:AffineAnalysis", "//mlir:Analysis", "//mlir:IR", + "//mlir:Parser", ], )