[clang] [RISCV] Install sifive_vector.h to riscv-resource-headers (PR #66330)
Brandon Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 14 09:17:27 PDT 2023
https://github.com/4vtomat updated https://github.com/llvm/llvm-project/pull/66330:
>From 8eb805beb037ba824fdf01dd8528b797a80de7ad Mon Sep 17 00:00:00 2001
From: 4vtomat <brandon.wu at sifive.com>
Date: Wed, 13 Sep 2023 22:59:30 -0700
Subject: [PATCH 1/2] [RISCV] Install sifive_vector.h to riscv-resource-headers
---
clang/lib/Headers/CMakeLists.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/clang/lib/Headers/CMakeLists.txt b/clang/lib/Headers/CMakeLists.txt
index 334bc13799409bb..1868357b2eb4b7a 100644
--- a/clang/lib/Headers/CMakeLists.txt
+++ b/clang/lib/Headers/CMakeLists.txt
@@ -623,6 +623,11 @@ install(
EXCLUDE_FROM_ALL
COMPONENT riscv-resource-headers)
+install(
+ FILES ${sifive_files}
+ DESTINATION ${header_install_dir}
+ COMPONENT riscv-resource-headers)
+
install(
FILES ${systemz_files}
DESTINATION ${header_install_dir}
>From 99857a112e1af6997cc93e7e692a3089f65156f3 Mon Sep 17 00:00:00 2001
From: 4vtomat <brandon.wu at sifive.com>
Date: Thu, 14 Sep 2023 09:17:00 -0700
Subject: [PATCH 2/2] fixup! [RISCV] Install sifive_vector.h to
riscv-resource-headers
---
clang/test/Headers/riscv-sifive-header.c | 6 ++++++
1 file changed, 6 insertions(+)
create mode 100644 clang/test/Headers/riscv-sifive-header.c
diff --git a/clang/test/Headers/riscv-sifive-header.c b/clang/test/Headers/riscv-sifive-header.c
new file mode 100644
index 000000000000000..d90f4990c49f7a9
--- /dev/null
+++ b/clang/test/Headers/riscv-sifive-header.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -triple riscv64 -target-feature +v %s
+// REQUIRES: riscv-registered-target
+
+// expected-no-diagnostics
+
+#include <sifive_vector.h>
More information about the cfe-commits
mailing list