[llvm] b54a5e7 - [gn] port d86b68afd7f0 more
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 06:58:44 PDT 2024
Author: Nico Weber
Date: 2024-05-09T09:58:26-04:00
New Revision: b54a5e7271e34530893ae374876e284a65d785d4
URL: https://github.com/llvm/llvm-project/commit/b54a5e7271e34530893ae374876e284a65d785d4
DIFF: https://github.com/llvm/llvm-project/commit/b54a5e7271e34530893ae374876e284a65d785d4.diff
LOG: [gn] port d86b68afd7f0 more
See my comments on https://github.com/llvm/llvm-project/pull/88257.
(The AMDGPU target internal depencencies were among the messiest
among all targets even before that.)
Added:
Modified:
llvm/utils/gn/secondary/llvm/lib/Target/AMDGPU/BUILD.gn
llvm/utils/gn/secondary/llvm/lib/Target/AMDGPU/MCTargetDesc/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/llvm/lib/Target/AMDGPU/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Target/AMDGPU/BUILD.gn
index edd8d4f1840d0..dad4f028236d8 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Target/AMDGPU/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Target/AMDGPU/BUILD.gn
@@ -60,6 +60,7 @@ tablegen("AMDGPUGenMCPseudoLowering") {
tablegen("AMDGPUGenRegisterBank") {
visibility = [
":LLVMAMDGPUCodeGen",
+ "MCTargetDesc",
"Utils",
"//llvm/unittests/MC/AMDGPU:AMDGPUMCTests",
"//llvm/unittests/Target/AMDGPU:AMDGPUTests",
diff --git a/llvm/utils/gn/secondary/llvm/lib/Target/AMDGPU/MCTargetDesc/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Target/AMDGPU/MCTargetDesc/BUILD.gn
index 5ba91fcec83a0..0df55cbc08262 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Target/AMDGPU/MCTargetDesc/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Target/AMDGPU/MCTargetDesc/BUILD.gn
@@ -94,6 +94,10 @@ static_library("MCTargetDesc") {
"//llvm/lib/Target/AMDGPU/TargetInfo",
"//llvm/lib/Target/AMDGPU/Utils",
"//llvm/lib/TargetParser",
+
+ # AMDGPUMCExpr.cpp includes GCNSubtarget.h which after 490e348e679
+ # includes the generated AMDGPUGenRegisterBank.inc file :/
+ "//llvm/lib/Target/AMDGPU/:AMDGPUGenRegisterBank",
]
include_dirs = [ ".." ]
sources = [
More information about the llvm-commits
mailing list