3 .include "../clang.pre.mk"
5 .PATH: ${CLANG_SRCS}/lib/Headers
7 INCSGROUPS= INCS CUDA OMP PPC
8 INCSDIR= ${LIBDIR}/clang/11.0.0/include
9 CUDADIR= ${INCSDIR}/cuda_wrappers
10 OMPDIR= ${INCSDIR}/openmp_wrappers
11 PPCDIR= ${INCSDIR}/ppc_wrappers
13 INCS+= __clang_cuda_builtin_vars.h
14 INCS+= __clang_cuda_cmath.h
15 INCS+= __clang_cuda_complex_builtins.h
16 INCS+= __clang_cuda_device_functions.h
17 INCS+= __clang_cuda_intrinsics.h
18 INCS+= __clang_cuda_libdevice_declares.h
19 INCS+= __clang_cuda_math.h
20 INCS+= __clang_cuda_math_forward_declares.h
21 INCS+= __clang_cuda_runtime_wrapper.h
22 INCS+= __clang_hip_libdevice_declares.h
23 INCS+= __clang_hip_math.h
24 INCS+= __clang_hip_runtime_wrapper.h
25 INCS+= __stddef_max_align_t.h
26 INCS+= __wmmintrin_aes.h
27 INCS+= __wmmintrin_pclmul.h
37 INCS+= avx512bf16intrin.h
38 INCS+= avx512bitalgintrin.h
39 INCS+= avx512bwintrin.h
40 INCS+= avx512cdintrin.h
41 INCS+= avx512dqintrin.h
42 INCS+= avx512erintrin.h
43 INCS+= avx512fintrin.h
44 INCS+= avx512ifmaintrin.h
45 INCS+= avx512ifmavlintrin.h
46 INCS+= avx512pfintrin.h
47 INCS+= avx512vbmi2intrin.h
48 INCS+= avx512vbmiintrin.h
49 INCS+= avx512vbmivlintrin.h
50 INCS+= avx512vlbf16intrin.h
51 INCS+= avx512vlbitalgintrin.h
52 INCS+= avx512vlbwintrin.h
53 INCS+= avx512vlcdintrin.h
54 INCS+= avx512vldqintrin.h
55 INCS+= avx512vlintrin.h
56 INCS+= avx512vlvbmi2intrin.h
57 INCS+= avx512vlvnniintrin.h
58 INCS+= avx512vlvp2intersectintrin.h
59 INCS+= avx512vnniintrin.h
60 INCS+= avx512vp2intersectintrin.h
61 INCS+= avx512vpopcntdqintrin.h
62 INCS+= avx512vpopcntdqvlintrin.h
68 INCS+= cldemoteintrin.h
69 INCS+= clflushoptintrin.h
84 INCS+= invpcidintrin.h
90 INCS+= module.modulemap
95 INCS+= opencl-c-base.h
97 INCS+= pconfigintrin.h
100 INCS+= popcntintrin.h
101 INCS+= prfchwintrin.h
102 INCS+= ptwriteintrin.h
103 INCS+= rdseedintrin.h
106 INCS+= serializeintrin.h
112 INCS+= tsxldtrkintrin.h
116 INCS+= vpclmulqdqintrin.h
117 INCS+= waitpkgintrin.h
118 INCS+= wasm_simd128.h
119 INCS+= wbnoinvdintrin.h
124 INCS+= xsavecintrin.h
126 INCS+= xsaveoptintrin.h
127 INCS+= xsavesintrin.h
131 # Headers which possibly conflict with our own versions:
132 .ifdef INSTALL_CONFLICTING_CLANG_HEADERS
148 .endif # INSTALL_CONFLICTING_CLANG_HEADERS
150 CUDA+= cuda_wrappers/algorithm
151 CUDA+= cuda_wrappers/complex
152 CUDA+= cuda_wrappers/new
154 OMP+= openmp_wrappers/__clang_openmp_device_functions.h
155 OMP+= openmp_wrappers/cmath
156 OMP+= openmp_wrappers/complex
157 OMP+= openmp_wrappers/complex.h
158 OMP+= openmp_wrappers/math.h
159 OMP+= openmp_wrappers/new
161 PPC+= ppc_wrappers/emmintrin.h
162 PPC+= ppc_wrappers/mm_malloc.h
163 PPC+= ppc_wrappers/mmintrin.h
164 PPC+= ppc_wrappers/pmmintrin.h
165 PPC+= ppc_wrappers/smmintrin.h
166 PPC+= ppc_wrappers/tmmintrin.h
167 PPC+= ppc_wrappers/xmmintrin.h
169 .for hdr in bf16/bf16 cde/cde-header fp16/fp16 mve/mve-header neon/neon \
171 arm_${hdr:H}.h: ${CLANG_SRCS}/include/clang/Basic/arm_${hdr:H}.td
172 ${CLANG_TBLGEN} -gen-arm-${hdr:T} \
173 -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \
174 -o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_${hdr:H}.td
175 GENINCS+= arm_${hdr:H}.h
178 CLEANFILES= ${GENINCS} ${GENINCS:C/$/.d/}
180 .include <bsd.prog.mk>