]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/clang/lib/Headers/module.modulemap
MFV: r313101
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / clang / lib / Headers / module.modulemap
1 /*===---- module.modulemap - intrinsics module map -------------------------===
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining a copy
4  * of this software and associated documentation files (the "Software"), to deal
5  * in the Software without restriction, including without limitation the rights
6  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7  * copies of the Software, and to permit persons to whom the Software is
8  * furnished to do so, subject to the following conditions:
9  *
10  * The above copyright notice and this permission notice shall be included in
11  * all copies or substantial portions of the Software.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19  * THE SOFTWARE.
20  *
21  *===-----------------------------------------------------------------------===
22  */
23
24 module _Builtin_intrinsics [system] [extern_c] {
25   explicit module altivec {
26     requires altivec
27     header "altivec.h"
28   }
29
30   explicit module arm {
31     requires arm
32
33     explicit module acle {
34       header "arm_acle.h"
35       export *
36     }
37
38     explicit module neon {
39       requires neon
40       header "arm_neon.h"
41       export *
42     }
43   }
44
45   explicit module intel {
46     requires x86
47     export *
48
49     header "immintrin.h"
50     textual header "f16cintrin.h"
51     textual header "avxintrin.h"
52     textual header "avx2intrin.h"
53     textual header "avx512fintrin.h"
54     textual header "avx512erintrin.h"
55     textual header "fmaintrin.h"
56
57     header "x86intrin.h"
58     textual header "bmiintrin.h"
59     textual header "bmi2intrin.h"
60     textual header "lzcntintrin.h"
61     textual header "xopintrin.h"
62     textual header "fma4intrin.h"
63     textual header "mwaitxintrin.h"
64
65     explicit module mm_malloc {
66       header "mm_malloc.h"
67       export * // note: for <stdlib.h> dependency
68     }
69
70     explicit module cpuid {
71       header "cpuid.h"
72     }
73
74     explicit module mmx {
75       header "mmintrin.h"
76     }
77
78     explicit module sse {
79       export mm_malloc
80       export mmx
81       export sse2 // note: for hackish <emmintrin.h> dependency
82       header "xmmintrin.h"
83     }
84
85     explicit module sse2 {
86       export sse
87       header "emmintrin.h"
88     }
89
90     explicit module sse3 {
91       export sse2
92       header "pmmintrin.h"
93     }
94
95     explicit module ssse3 {
96       export sse3
97       header "tmmintrin.h"
98     }
99
100     explicit module sse4_1 {
101       export ssse3
102       header "smmintrin.h"
103     }
104
105     explicit module sse4_2 {
106       export sse4_1
107       header "nmmintrin.h"
108     }
109
110     explicit module sse4a {
111       export sse3
112       header "ammintrin.h"
113     }
114
115     explicit module popcnt {
116       header "popcntintrin.h"
117     }
118
119     explicit module mm3dnow {
120       header "mm3dnow.h"
121     }
122
123     explicit module aes_pclmul {
124       header "wmmintrin.h"
125       export aes
126       export pclmul
127     }
128
129     explicit module aes {
130       header "__wmmintrin_aes.h"
131     }
132
133     explicit module pclmul {
134       header "__wmmintrin_pclmul.h"
135     }
136   }
137
138   explicit module systemz {
139     requires systemz
140     export *
141
142     header "s390intrin.h"
143
144     explicit module htm {
145       requires htm
146       header "htmintrin.h"
147       header "htmxlintrin.h"
148     }
149
150     explicit module zvector {
151       requires zvector, vx
152       header "vecintrin.h"
153     }
154   }
155 }
156
157 module _Builtin_stddef_max_align_t [system] [extern_c] {
158   header "__stddef_max_align_t.h"
159 }
160
161 module opencl_c {
162   requires opencl
163   header "opencl-c.h"
164 }