Skip to content

Commit

Permalink
[gn] port 8e8692a (RISCV support for llvm-exegesis)
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Dec 19, 2024
1 parent 4530273 commit 89b34ec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import("//llvm/lib/Target/targets.gni")
targets_with_exegesis = []
foreach(target, llvm_targets_to_build) {
if (target == "AArch64" || target == "Mips" || target == "PowerPC" ||
target == "X86") {
target == "RISCV" || target == "X86") {
targets_with_exegesis += [ target ]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
static_library("RISCV") {
output_name = "LLVMExegesisRISCV"
deps = [
"//llvm/lib/CodeGen",
"//llvm/lib/IR",
"//llvm/lib/Support",

# Exegesis reaches inside the Target/RISCV tablegen internals and must
# depend on these Target/RISCV-internal build targets.
"//llvm/lib/Target/RISCV/MCTargetDesc",
]
sources = [ "Target.cpp" ]
include_dirs = [ "//llvm/lib/Target/RISCV" ]
}

0 comments on commit 89b34ec

Please sign in to comment.