[llvm] [bazel] Clean up unused exported files (PR #114620)
Vincent Lee via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 15:35:03 PDT 2024
https://github.com/thevinster created https://github.com/llvm/llvm-project/pull/114620
Some minor cleanup to the bazel files. These exported files are not being referenced anymore in the tree, afaict, so let's clean them up. Additionally, moved one of the filegroup targets higher to be consistent with other filegroup usages where it's defined before first usage.
>From 808e7e992d1b23f215e23fe068d253a3b824d6aa Mon Sep 17 00:00:00 2001
From: Vincent Lee <leevince at fb.com>
Date: Fri, 1 Nov 2024 11:35:52 -0700
Subject: [PATCH] [bazel] Clean up unused dependencies
---
.../llvm-project-overlay/clang/BUILD.bazel | 8 ------
.../llvm-project-overlay/llvm/BUILD.bazel | 26 +++++++++----------
2 files changed, 12 insertions(+), 22 deletions(-)
diff --git a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
index 5e756e2ed9629f..6aa34a546a8cfb 100644
--- a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
@@ -23,14 +23,6 @@ package(
licenses(["notice"])
-exports_files([
- "tools/clang-format/clang-format.el",
- "tools/clang-format/clang-format-test.el",
- "tools/clang-format/clang-format.py",
- "tools/extra/clang-include-fixer/tool/clang-include-fixer.el",
- "tools/extra/clang-include-fixer/tool/clang-include-fixer-test.el",
-])
-
cc_binary(
name = "clang-tblgen",
srcs = glob([
diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index 17cacb6413b26c..e99d6fc357574b 100644
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -23,7 +23,6 @@ licenses(["notice"])
exports_files([
"LICENSE.TXT",
"cmake/modules/llvm-driver-template.cpp.in",
- "include/llvm/BinaryFormat/Dwarf.def",
"include/llvm/CodeGen/SDNodeProperties.td",
"include/llvm/CodeGen/ValueTypes.td",
"include/llvm/Frontend/Directive/DirectiveBase.td",
@@ -32,7 +31,6 @@ exports_files([
"include/llvm/IR/Intrinsics.td",
"include/llvm/Option/OptParser.td",
"utils/lit/lit.py",
- "utils/lldbDataFormatters.py",
])
# It may be tempting to add compiler flags here, but that should be avoided.
@@ -1248,6 +1246,18 @@ cc_library(
],
)
+filegroup(
+ name = "common_target_td_sources",
+ srcs = glob([
+ "include/llvm/CodeGen/*.td",
+ "include/llvm/Frontend/Directive/*.td",
+ "include/llvm/IR/Intrinsics*.td",
+ "include/llvm/TableGen/*.td",
+ "include/llvm/Target/*.td",
+ "include/llvm/Target/GlobalISel/*.td",
+ ]),
+)
+
gentbl(
name = "ARMTargetParserDefGen",
tbl_outs = [("-gen-arm-target-def", "include/llvm/TargetParser/ARMTargetParserDef.inc")],
@@ -2325,18 +2335,6 @@ cc_library(
textual_hdrs = ["lib/Target/X86/X86InstrInfo.h"],
)
-filegroup(
- name = "common_target_td_sources",
- srcs = glob([
- "include/llvm/CodeGen/*.td",
- "include/llvm/Frontend/Directive/*.td",
- "include/llvm/IR/Intrinsics*.td",
- "include/llvm/TableGen/*.td",
- "include/llvm/Target/*.td",
- "include/llvm/Target/GlobalISel/*.td",
- ]),
-)
-
gentbl(
name = "amdgpu_isel_target_gen",
strip_include_prefix = "lib/Target/AMDGPU",
More information about the llvm-commits
mailing list