Skip to content

Commit 89b34ec

Browse files
committed
[gn] port 8e8692a (RISCV support for llvm-exegesis)
1 parent 4530273 commit 89b34ec

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

llvm/utils/gn/secondary/llvm/lib/Target/targets_with_exegesis.gni

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import("//llvm/lib/Target/targets.gni")
33
targets_with_exegesis = []
44
foreach(target, llvm_targets_to_build) {
55
if (target == "AArch64" || target == "Mips" || target == "PowerPC" ||
6-
target == "X86") {
6+
target == "RISCV" || target == "X86") {
77
targets_with_exegesis += [ target ]
88
}
99
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
static_library("RISCV") {
2+
output_name = "LLVMExegesisRISCV"
3+
deps = [
4+
"//llvm/lib/CodeGen",
5+
"//llvm/lib/IR",
6+
"//llvm/lib/Support",
7+
8+
# Exegesis reaches inside the Target/RISCV tablegen internals and must
9+
# depend on these Target/RISCV-internal build targets.
10+
"//llvm/lib/Target/RISCV/MCTargetDesc",
11+
]
12+
sources = [ "Target.cpp" ]
13+
include_dirs = [ "//llvm/lib/Target/RISCV" ]
14+
}

0 commit comments

Comments
 (0)