Skip to content

Commit 0a0775e

Browse files
committed
[gn] port 32dffdc (more RISCV depedency things)
Looks like RISCV is picking up AMDGPU's bad habits wrt generated files.
1 parent 4ab9c13 commit 0a0775e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

llvm/utils/gn/secondary/llvm/lib/Target/RISCV/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ tablegen("RISCVGenPostLegalizeGICombiner") {
7272
tablegen("RISCVGenRegisterBank") {
7373
visibility = [
7474
":LLVMRISCVCodeGen",
75+
"MCA",
7576
"//llvm/tools/llvm-exegesis/lib/RISCV",
7677
]
7778
args = [ "-gen-register-bank" ]

llvm/utils/gn/secondary/llvm/lib/Target/RISCV/MCA/BUILD.gn

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ static_library("MCA") {
88
"//llvm/lib/Support",
99
"//llvm/lib/Target/RISCV/MCTargetDesc",
1010
"//llvm/lib/Target/RISCV/TargetInfo",
11+
12+
# RISCVCustomBehaviour.cpp after 32dffdce0511 includes
13+
# RISCVGenRegisterBank.inc via RISCVSubtarget.h :/
14+
"../:RISCVGenRegisterBank",
1115
]
1216
include_dirs = [ ".." ]
1317
sources = [ "RISCVCustomBehaviour.cpp" ]

0 commit comments

Comments
 (0)