2016-04-05 02:46:09 +08:00
|
|
|
/*===---- module.modulemap - intrinsics module map -------------------------===
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*
|
|
|
|
*===-----------------------------------------------------------------------===
|
|
|
|
*/
|
|
|
|
|
2015-01-14 05:54:32 +08:00
|
|
|
module _Builtin_intrinsics [system] [extern_c] {
|
2012-02-01 05:57:50 +08:00
|
|
|
explicit module altivec {
|
|
|
|
requires altivec
|
|
|
|
header "altivec.h"
|
|
|
|
}
|
|
|
|
|
2013-05-20 22:07:18 +08:00
|
|
|
explicit module arm {
|
|
|
|
requires arm
|
|
|
|
|
2014-07-23 17:00:21 +08:00
|
|
|
explicit module acle {
|
|
|
|
header "arm_acle.h"
|
|
|
|
export *
|
|
|
|
}
|
|
|
|
|
2013-05-20 22:07:18 +08:00
|
|
|
explicit module neon {
|
|
|
|
requires neon
|
|
|
|
header "arm_neon.h"
|
|
|
|
export *
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-01-30 14:38:25 +08:00
|
|
|
explicit module intel {
|
|
|
|
requires x86
|
2012-02-03 02:42:48 +08:00
|
|
|
export *
|
2012-01-30 14:38:25 +08:00
|
|
|
|
|
|
|
header "immintrin.h"
|
2016-04-16 08:46:26 +08:00
|
|
|
textual header "f16cintrin.h"
|
|
|
|
textual header "avxintrin.h"
|
|
|
|
textual header "avx2intrin.h"
|
|
|
|
textual header "avx512fintrin.h"
|
|
|
|
textual header "avx512erintrin.h"
|
|
|
|
textual header "fmaintrin.h"
|
|
|
|
|
2012-01-30 14:38:25 +08:00
|
|
|
header "x86intrin.h"
|
2016-04-16 08:46:26 +08:00
|
|
|
textual header "bmiintrin.h"
|
|
|
|
textual header "bmi2intrin.h"
|
|
|
|
textual header "lzcntintrin.h"
|
|
|
|
textual header "xopintrin.h"
|
|
|
|
textual header "fma4intrin.h"
|
2016-05-20 09:06:47 +08:00
|
|
|
textual header "mwaitxintrin.h"
|
2012-01-30 14:38:25 +08:00
|
|
|
|
2012-02-03 02:42:48 +08:00
|
|
|
explicit module mm_malloc {
|
|
|
|
header "mm_malloc.h"
|
|
|
|
export * // note: for <stdlib.h> dependency
|
|
|
|
}
|
|
|
|
|
2012-01-30 14:38:25 +08:00
|
|
|
explicit module cpuid {
|
|
|
|
header "cpuid.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
explicit module mmx {
|
|
|
|
header "mmintrin.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
explicit module sse {
|
2016-03-23 04:57:51 +08:00
|
|
|
export mm_malloc
|
2012-01-30 14:38:25 +08:00
|
|
|
export mmx
|
2015-05-14 08:45:20 +08:00
|
|
|
export sse2 // note: for hackish <emmintrin.h> dependency
|
2012-01-30 14:38:25 +08:00
|
|
|
header "xmmintrin.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
explicit module sse2 {
|
|
|
|
export sse
|
|
|
|
header "emmintrin.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
explicit module sse3 {
|
|
|
|
export sse2
|
|
|
|
header "pmmintrin.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
explicit module ssse3 {
|
|
|
|
export sse3
|
|
|
|
header "tmmintrin.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
explicit module sse4_1 {
|
|
|
|
export ssse3
|
|
|
|
header "smmintrin.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
explicit module sse4_2 {
|
|
|
|
export sse4_1
|
|
|
|
header "nmmintrin.h"
|
|
|
|
}
|
|
|
|
|
2012-11-06 04:11:10 +08:00
|
|
|
explicit module sse4a {
|
|
|
|
export sse3
|
2012-11-06 04:41:30 +08:00
|
|
|
header "ammintrin.h"
|
2012-11-06 04:11:10 +08:00
|
|
|
}
|
|
|
|
|
2012-01-30 14:38:25 +08:00
|
|
|
explicit module popcnt {
|
|
|
|
header "popcntintrin.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
explicit module mm3dnow {
|
|
|
|
header "mm3dnow.h"
|
|
|
|
}
|
2012-11-06 04:11:10 +08:00
|
|
|
|
2012-11-06 07:30:26 +08:00
|
|
|
explicit module aes_pclmul {
|
|
|
|
header "wmmintrin.h"
|
2015-05-28 02:26:41 +08:00
|
|
|
export aes
|
|
|
|
export pclmul
|
2012-11-06 07:30:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
explicit module aes {
|
|
|
|
header "__wmmintrin_aes.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
explicit module pclmul {
|
|
|
|
header "__wmmintrin_pclmul.h"
|
|
|
|
}
|
2012-01-30 14:38:25 +08:00
|
|
|
}
|
2015-04-01 22:15:35 +08:00
|
|
|
|
|
|
|
explicit module systemz {
|
|
|
|
requires systemz
|
|
|
|
export *
|
|
|
|
|
|
|
|
header "s390intrin.h"
|
|
|
|
|
|
|
|
explicit module htm {
|
|
|
|
requires htm
|
|
|
|
header "htmintrin.h"
|
|
|
|
header "htmxlintrin.h"
|
|
|
|
}
|
2015-07-30 22:10:43 +08:00
|
|
|
|
|
|
|
explicit module zvector {
|
|
|
|
requires zvector, vx
|
|
|
|
header "vecintrin.h"
|
|
|
|
}
|
2015-04-01 22:15:35 +08:00
|
|
|
}
|
2012-01-30 04:52:14 +08:00
|
|
|
}
|
2014-10-03 08:31:35 +08:00
|
|
|
|
|
|
|
module _Builtin_stddef_max_align_t [system] [extern_c] {
|
|
|
|
header "__stddef_max_align_t.h"
|
|
|
|
}
|