1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

[gn build] (manually) port ef16c8eaa5cd5679759 (MCACustomBehaviorAMDGPU)

This commit is contained in:
Nico Weber 2021-07-07 21:59:07 -04:00
parent cde6b35842
commit 11944c0204
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,5 @@
import("//llvm/lib/Target/targets.gni")
executable("llvm-mca") {
deps = [
"//llvm/lib/MC",
@ -30,4 +32,9 @@ executable("llvm-mca") {
"Views/View.cpp",
"llvm-mca.cpp",
]
defines = []
if (llvm_build_AMDGPU) {
deps += [ "//llvm/tools/llvm-mca/lib/AMDGPU" ]
defines += [ "HAS_AMDGPU" ]
}
}

View File

@ -0,0 +1,15 @@
static_library("AMDGPU") {
output_name = "LLVMMCACustomBehaviourAMDGPU"
deps = [
"//llvm/lib/IR",
"//llvm/lib/Support",
"//llvm/lib/Target/AMDGPU",
# llvm-mca/libAMDGPU reaches inside the Target/AMDGPU tablegen internals
# and must depend on these Target/AMDGPU-internal build targets.
"//llvm/lib/Target/AMDGPU/MCTargetDesc",
"//llvm/lib/Target/AMDGPU/Utils",
]
include_dirs = [ "//llvm/lib/Target/AMDGPU" ]
sources = [ "AMDGPUCustomBehaviour.cpp" ]
}