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:
parent
cde6b35842
commit
11944c0204
@ -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" ]
|
||||
}
|
||||
}
|
||||
|
15
utils/gn/secondary/llvm/tools/llvm-mca/lib/AMDGPU/BUILD.gn
Normal file
15
utils/gn/secondary/llvm/tools/llvm-mca/lib/AMDGPU/BUILD.gn
Normal 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" ]
|
||||
}
|
Loading…
Reference in New Issue
Block a user