[llvm] 89b34ec - [gn] port 8e8692a5420370 (RISCV support for llvm-exegesis)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 18 18:22:32 PST 2024
Author: Nico Weber
Date: 2024-12-18T21:22:23-05:00
New Revision: 89b34ec9ccb93bff5064227ac2424cc1bdf73b8d
URL: https://github.com/llvm/llvm-project/commit/89b34ec9ccb93bff5064227ac2424cc1bdf73b8d
DIFF: https://github.com/llvm/llvm-project/commit/89b34ec9ccb93bff5064227ac2424cc1bdf73b8d.diff
LOG: [gn] port 8e8692a5420370 (RISCV support for llvm-exegesis)
Added:
llvm/utils/gn/secondary/llvm/tools/llvm-exegesis/lib/RISCV/BUILD.gn
Modified:
llvm/utils/gn/secondary/llvm/lib/Target/targets_with_exegesis.gni
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/llvm/lib/Target/targets_with_exegesis.gni b/llvm/utils/gn/secondary/llvm/lib/Target/targets_with_exegesis.gni
index 9d75f33b3be671..a763c75ead4615 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Target/targets_with_exegesis.gni
+++ b/llvm/utils/gn/secondary/llvm/lib/Target/targets_with_exegesis.gni
@@ -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 ]
}
}
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-exegesis/lib/RISCV/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-exegesis/lib/RISCV/BUILD.gn
new file mode 100644
index 00000000000000..c334b54a833bc5
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-exegesis/lib/RISCV/BUILD.gn
@@ -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" ]
+}
More information about the llvm-commits
mailing list