[Mlir-commits] [mlir] 4e58cb1 - Remove spurious includes and dependencies from Bazel files (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Thu Feb 10 23:57:28 PST 2022
Author: Mehdi Amini
Date: 2022-02-11T07:57:17Z
New Revision: 4e58cb18d35d87840a6252ef7a50f7f4ccf34817
URL: https://github.com/llvm/llvm-project/commit/4e58cb18d35d87840a6252ef7a50f7f4ccf34817
DIFF: https://github.com/llvm/llvm-project/commit/4e58cb18d35d87840a6252ef7a50f7f4ccf34817.diff
LOG: Remove spurious includes and dependencies from Bazel files (NFC)
Differential Revision: https://reviews.llvm.org/D119526
Added:
Modified:
mlir/test/lib/Dialect/SCF/TestSCFUtils.cpp
mlir/test/lib/Transforms/TestConstantFold.cpp
mlir/test/lib/Transforms/TestInlining.cpp
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel
Removed:
################################################################################
diff --git a/mlir/test/lib/Dialect/SCF/TestSCFUtils.cpp b/mlir/test/lib/Dialect/SCF/TestSCFUtils.cpp
index b6723ceb44a61..f3106ed170807 100644
--- 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
index 23daca4f26ad9..1f674c782ab39 100644
--- 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
index 8f1706357affd..9e43e80347213 100644
--- 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
index 566529e6df180..adf29dcd97bec 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -4671,23 +4671,18 @@ cc_library(
"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 @@ cc_library(
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 @@ cc_library(
),
includes = ["include"],
deps = [
- ":Affine",
- ":ArithmeticDialect",
- ":BufferizationDialect",
":CallOpInterfaces",
":ControlFlowInterfaces",
":DataLayoutInterfaces",
":IR",
- ":LinalgOps",
- ":SCFDialect",
":SideEffectInterfaces",
- ":StandardOps",
":Support",
":ViewLikeInterface",
"//llvm:Support",
@@ -5500,7 +5478,6 @@ cc_library(
hdrs = ["include/mlir/Translation.h"],
includes = ["include"],
deps = [
- ":Analysis",
":IR",
":Parser",
":Support",
@@ -5787,29 +5764,15 @@ cc_library(
],
)
-# 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 @@ cc_library(
":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
index 0f00fdf2c2301..505508ba89763 100644
--- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
@@ -408,6 +408,7 @@ cc_library(
"//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
index 9092d53e9fe2b..3d1f60da91c83 100644
--- a/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel
@@ -291,6 +291,7 @@ cc_test(
"//mlir:AffineAnalysis",
"//mlir:Analysis",
"//mlir:IR",
+ "//mlir:Parser",
],
)
More information about the Mlir-commits
mailing list