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 24module _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 header "arm_fp16.h" 42 export * 43 } 44 } 45 46 explicit module intel { 47 requires x86 48 export * 49 50 header "immintrin.h" 51 textual header "f16cintrin.h" 52 textual header "avxintrin.h" 53 textual header "avx2intrin.h" 54 textual header "avx512fintrin.h" 55 textual header "avx512erintrin.h" 56 textual header "fmaintrin.h" 57 58 header "x86intrin.h" 59 textual header "bmiintrin.h" 60 textual header "bmi2intrin.h" 61 textual header "lzcntintrin.h" 62 textual header "xopintrin.h" 63 textual header "fma4intrin.h" 64 textual header "mwaitxintrin.h" 65 textual header "clzerointrin.h" 66 textual header "wbnoinvdintrin.h" 67 textual header "cldemoteintrin.h" 68 textual header "waitpkgintrin.h" 69 textual header "movdirintrin.h" 70 textual header "pconfigintrin.h" 71 textual header "sgxintrin.h" 72 textual header "ptwriteintrin.h" 73 74 textual header "__wmmintrin_aes.h" 75 textual header "__wmmintrin_pclmul.h" 76 77 explicit module mm_malloc { 78 requires !freestanding 79 header "mm_malloc.h" 80 export * // note: for <stdlib.h> dependency 81 } 82 83 explicit module cpuid { 84 requires gnuinlineasm 85 header "cpuid.h" 86 } 87 88 explicit module mmx { 89 header "mmintrin.h" 90 } 91 92 explicit module sse { 93 export mm_malloc 94 export mmx 95 export sse2 // note: for hackish <emmintrin.h> dependency 96 header "xmmintrin.h" 97 } 98 99 explicit module sse2 { 100 export sse 101 header "emmintrin.h" 102 } 103 104 explicit module sse3 { 105 export sse2 106 header "pmmintrin.h" 107 } 108 109 explicit module ssse3 { 110 export sse3 111 header "tmmintrin.h" 112 } 113 114 explicit module sse4_1 { 115 export ssse3 116 header "smmintrin.h" 117 } 118 119 explicit module sse4_2 { 120 export sse4_1 121 header "nmmintrin.h" 122 } 123 124 explicit module sse4a { 125 export sse3 126 header "ammintrin.h" 127 } 128 129 explicit module popcnt { 130 header "popcntintrin.h" 131 } 132 133 explicit module mm3dnow { 134 header "mm3dnow.h" 135 } 136 137 explicit module aes_pclmul { 138 header "wmmintrin.h" 139 export aes 140 export pclmul 141 } 142 } 143 144 explicit module systemz { 145 requires systemz 146 export * 147 148 header "s390intrin.h" 149 150 explicit module htm { 151 requires htm 152 header "htmintrin.h" 153 header "htmxlintrin.h" 154 } 155 156 explicit module zvector { 157 requires zvector, vx 158 header "vecintrin.h" 159 } 160 } 161} 162 163module _Builtin_stddef_max_align_t [system] [extern_c] { 164 header "__stddef_max_align_t.h" 165} 166 167module opencl_c { 168 requires opencl 169 header "opencl-c.h" 170} 171