[lit] Improve lit.Run class
[llvm-complete.git] / utils / gn / secondary / clang / lib / Headers / BUILD.gn
blobe7a7df6fd95e1d958d21b54a8d79a0cad2312b09
1 import("//clang/resource_dir.gni")
2 import("//clang/utils/TableGen/clang_tablegen.gni")
4 # Generate arm_neon.h
5 clang_tablegen("arm_neon") {
6   args = [ "-gen-arm-neon" ]
7   td_file = "//clang/include/clang/Basic/arm_neon.td"
8   output_name = "arm_neon.h"
11 # Generate arm_fp16.h
12 clang_tablegen("arm_fp16") {
13   args = [ "-gen-arm-fp16" ]
14   td_file = "//clang/include/clang/Basic/arm_fp16.td"
15   output_name = "arm_fp16.h"
18 copy("arm_headers") {
19   visibility = [ ":Headers" ]
20   deps = [
21     ":arm_fp16",
22     ":arm_neon",
23   ]
24   sources = get_target_outputs(":arm_neon") + get_target_outputs(":arm_fp16")
25   outputs = [
26     "$clang_resource_dir/include/{{source_file_part}}",
27   ]
30 copy("Headers") {
31   deps = [
32     ":arm_headers",
33   ]
35   # NOSORT
36   # Tell `gn format` to not reorder the sources list: Its order matches CMake,
37   # and the ordering is alphabetical but ignores leading underscores.
38   sources = [
39     "adxintrin.h",
40     "altivec.h",
41     "ammintrin.h",
42     "arm_acle.h",
43     "armintr.h",
44     "arm64intr.h",
45     "avx2intrin.h",
46     "avx512bf16intrin.h",
47     "avx512bwintrin.h",
48     "avx512bitalgintrin.h",
49     "avx512vlbitalgintrin.h",
50     "avx512cdintrin.h",
51     "avx512vpopcntdqintrin.h",
52     "avx512dqintrin.h",
53     "avx512erintrin.h",
54     "avx512fintrin.h",
55     "avx512ifmaintrin.h",
56     "avx512ifmavlintrin.h",
57     "avx512pfintrin.h",
58     "avx512vbmiintrin.h",
59     "avx512vbmivlintrin.h",
60     "avx512vbmi2intrin.h",
61     "avx512vlvbmi2intrin.h",
62     "avx512vlbf16intrin.h",
63     "avx512vlbwintrin.h",
64     "avx512vlcdintrin.h",
65     "avx512vldqintrin.h",
66     "avx512vlintrin.h",
67     "avx512vp2intersectintrin.h",
68     "avx512vlvp2intersectintrin.h",
69     "avx512vpopcntdqvlintrin.h",
70     "avx512vnniintrin.h",
71     "avx512vlvnniintrin.h",
72     "avxintrin.h",
73     "bmi2intrin.h",
74     "bmiintrin.h",
75     "__clang_cuda_builtin_vars.h",
76     "__clang_cuda_cmath.h",
77     "__clang_cuda_complex_builtins.h",
78     "__clang_cuda_device_functions.h",
79     "__clang_cuda_intrinsics.h",
80     "__clang_cuda_libdevice_declares.h",
81     "__clang_cuda_math_forward_declares.h",
82     "__clang_cuda_runtime_wrapper.h",
83     "cetintrin.h",
84     "cldemoteintrin.h",
85     "clzerointrin.h",
86     "cpuid.h",
87     "clflushoptintrin.h",
88     "clwbintrin.h",
89     "emmintrin.h",
90     "enqcmdintrin.h",
91     "f16cintrin.h",
92     "float.h",
93     "fma4intrin.h",
94     "fmaintrin.h",
95     "fxsrintrin.h",
96     "gfniintrin.h",
97     "htmintrin.h",
98     "htmxlintrin.h",
99     "ia32intrin.h",
100     "immintrin.h",
101     "intrin.h",
102     "inttypes.h",
103     "invpcidintrin.h",
104     "iso646.h",
105     "limits.h",
106     "lwpintrin.h",
107     "lzcntintrin.h",
108     "mm3dnow.h",
109     "mmintrin.h",
110     "mm_malloc.h",
111     "module.modulemap",
112     "movdirintrin.h",
113     "msa.h",
114     "mwaitxintrin.h",
115     "nmmintrin.h",
116     "opencl-c.h",
117     "opencl-c-base.h",
118     "pconfigintrin.h",
119     "pkuintrin.h",
120     "pmmintrin.h",
121     "popcntintrin.h",
122     "prfchwintrin.h",
123     "ptwriteintrin.h",
124     "rdseedintrin.h",
125     "rtmintrin.h",
126     "s390intrin.h",
127     "sgxintrin.h",
128     "shaintrin.h",
129     "smmintrin.h",
130     "stdalign.h",
131     "stdarg.h",
132     "stdatomic.h",
133     "stdbool.h",
134     "stddef.h",
135     "__stddef_max_align_t.h",
136     "stdint.h",
137     "stdnoreturn.h",
138     "tbmintrin.h",
139     "tgmath.h",
140     "tmmintrin.h",
141     "unwind.h",
142     "vadefs.h",
143     "vaesintrin.h",
144     "varargs.h",
145     "vecintrin.h",
146     "vpclmulqdqintrin.h",
147     "waitpkgintrin.h",
148     "wbnoinvdintrin.h",
149     "wmmintrin.h",
150     "__wmmintrin_aes.h",
151     "__wmmintrin_pclmul.h",
152     "x86intrin.h",
153     "xmmintrin.h",
154     "xopintrin.h",
155     "xsavecintrin.h",
156     "xsaveintrin.h",
157     "xsaveoptintrin.h",
158     "xsavesintrin.h",
159     "xtestintrin.h",
160     "cuda_wrappers/algorithm",
161     "cuda_wrappers/complex",
162     "cuda_wrappers/new",
163     "ppc_wrappers/mmintrin.h",
164     "ppc_wrappers/xmmintrin.h",
165     "ppc_wrappers/mm_malloc.h",
166     "ppc_wrappers/emmintrin.h",
167     "ppc_wrappers/pmmintrin.h",
168     "ppc_wrappers/smmintrin.h",
169     "ppc_wrappers/tmmintrin.h",
170     "openmp_wrappers/math.h",
171     "openmp_wrappers/cmath",
172     "openmp_wrappers/__clang_openmp_math.h",
173     "openmp_wrappers/__clang_openmp_math_declares.h",
174   ]
175   outputs = [
176     "$clang_resource_dir/include/{{source_target_relative}}",
177   ]