[clang] 3ca6328 - [clang][ppc] Creating Seperate Install Target for PPC htm Headers
Qiongsi Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed May 11 11:53:18 PDT 2022
Author: Qiongsi Wu
Date: 2022-05-11T14:48:40-04:00
New Revision: 3ca6328637b3f42096c652e4df53282649956bdb
URL: https://github.com/llvm/llvm-project/commit/3ca6328637b3f42096c652e4df53282649956bdb
DIFF: https://github.com/llvm/llvm-project/commit/3ca6328637b3f42096c652e4df53282649956bdb.diff
LOG: [clang][ppc] Creating Seperate Install Target for PPC htm Headers
This patch splits out the htm intrinsic headers from the PPC headers list.
Reviewed By: jsji
Differential Revision: https://reviews.llvm.org/D125386
Added:
Modified:
clang/lib/Headers/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang/lib/Headers/CMakeLists.txt b/clang/lib/Headers/CMakeLists.txt
index bb24b4274380..08c5dccb3b77 100644
--- a/clang/lib/Headers/CMakeLists.txt
+++ b/clang/lib/Headers/CMakeLists.txt
@@ -73,6 +73,9 @@ set(opencl_files
set(ppc_files
altivec.h
+ )
+
+set(ppc_htm_files
htmintrin.h
htmxlintrin.h
)
@@ -212,6 +215,7 @@ set(files
${mips_msa_files}
${opencl_files}
${ppc_files}
+ ${ppc_htm_files}
${systemz_files}
${ve_files}
${x86_files}
@@ -370,6 +374,7 @@ add_dependencies("clang-resource-headers"
"hip-resource-headers"
"mips-resource-headers"
"ppc-resource-headers"
+ "ppc-htm-resource-headers"
"riscv-resource-headers"
"systemz-resource-headers"
"ve-resource-headers"
@@ -392,6 +397,7 @@ add_header_target("hexagon-resource-headers" "${hexagon_files}")
add_header_target("hip-resource-headers" "${hip_files}")
add_header_target("mips-resource-headers" "${mips_msa_files}")
add_header_target("ppc-resource-headers" "${ppc_files};${ppc_wrapper_files}")
+add_header_target("ppc-htm-resource-headers" "${ppc_htm_files}")
add_header_target("riscv-resource-headers" "${riscv_generated_files}")
add_header_target("systemz-resource-headers" "${systemz_files}")
add_header_target("ve-resource-headers" "${ve_files}")
@@ -491,11 +497,17 @@ install(
COMPONENT ppc-resource-headers)
install(
- FILES ${ppc_files} ${utility_files}
+ FILES ${ppc_files}
DESTINATION ${header_install_dir}
EXCLUDE_FROM_ALL
COMPONENT ppc-resource-headers)
+install(
+ FILES ${ppc_htm_files}
+ DESTINATION ${header_install_dir}
+ EXCLUDE_FROM_ALL
+ COMPONENT ppc-htm-resource-headers)
+
install(
FILES ${riscv_generated_files}
DESTINATION ${header_install_dir}
@@ -583,6 +595,9 @@ if (NOT LLVM_ENABLE_IDE)
add_llvm_install_targets(install-ppc-resource-headers
DEPENDS ppc-resource-headers
COMPONENT ppc-resource-headers)
+ add_llvm_install_targets(install-ppc-htm-resource-headers
+ DEPENDS ppc-htm-resource-headers
+ COMPONENT ppc-htm-resource-headers)
add_llvm_install_targets(install-riscv-resource-headers
DEPENDS riscv-resource-headers
COMPONENT riscv-resource-headers)
More information about the cfe-commits
mailing list