Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2022-02-11 10:14:40 +0300
committerMehdi Amini <joker.eph@gmail.com>2022-02-11 10:57:17 +0300
commit4e58cb18d35d87840a6252ef7a50f7f4ccf34817 (patch)
tree81a700b5cc80934f09a7e92fe8afa8481851bff1 /utils
parent74aa44a887732a09bce524cbc6d5039333ddffbe (diff)
Remove spurious includes and dependencies from Bazel files (NFC)
Differential Revision: https://reviews.llvm.org/D119526
Diffstat (limited to 'utils')
-rw-r--r--utils/bazel/llvm-project-overlay/mlir/BUILD.bazel50
-rw-r--r--utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel1
-rw-r--r--utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel1
3 files changed, 9 insertions, 43 deletions
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 566529e6df18..adf29dcd97be 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 0f00fdf2c230..505508ba8976 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 9092d53e9fe2..3d1f60da91c8 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",
],
)