module.modulemap 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. module _Builtin_intrinsics [system] [extern_c] {
  24. explicit module altivec {
  25. requires altivec
  26. header "altivec.h"
  27. }
  28. explicit module arm {
  29. requires arm
  30. explicit module acle {
  31. header "arm_acle.h"
  32. export *
  33. }
  34. explicit module neon {
  35. requires neon
  36. header "arm_neon.h"
  37. export *
  38. }
  39. }
  40. explicit module intel {
  41. requires x86
  42. export *
  43. header "immintrin.h"
  44. textual header "f16cintrin.h"
  45. textual header "avxintrin.h"
  46. textual header "avx2intrin.h"
  47. textual header "avx512fintrin.h"
  48. textual header "avx512erintrin.h"
  49. textual header "fmaintrin.h"
  50. header "x86intrin.h"
  51. textual header "bmiintrin.h"
  52. textual header "bmi2intrin.h"
  53. textual header "lzcntintrin.h"
  54. textual header "xopintrin.h"
  55. textual header "fma4intrin.h"
  56. textual header "mwaitxintrin.h"
  57. textual header "clzerointrin.h"
  58. explicit module mm_malloc {
  59. requires !freestanding
  60. header "mm_malloc.h"
  61. export * // note: for <stdlib.h> dependency
  62. }
  63. explicit module cpuid {
  64. requires gnuinlineasm
  65. header "cpuid.h"
  66. }
  67. explicit module mmx {
  68. header "mmintrin.h"
  69. }
  70. explicit module sse {
  71. export mm_malloc
  72. export mmx
  73. export sse2 // note: for hackish <emmintrin.h> dependency
  74. header "xmmintrin.h"
  75. }
  76. explicit module sse2 {
  77. export sse
  78. header "emmintrin.h"
  79. }
  80. explicit module sse3 {
  81. export sse2
  82. header "pmmintrin.h"
  83. }
  84. explicit module ssse3 {
  85. export sse3
  86. header "tmmintrin.h"
  87. }
  88. explicit module sse4_1 {
  89. export ssse3
  90. header "smmintrin.h"
  91. }
  92. explicit module sse4_2 {
  93. export sse4_1
  94. header "nmmintrin.h"
  95. }
  96. explicit module sse4a {
  97. export sse3
  98. header "ammintrin.h"
  99. }
  100. explicit module popcnt {
  101. header "popcntintrin.h"
  102. }
  103. explicit module mm3dnow {
  104. header "mm3dnow.h"
  105. }
  106. explicit module aes_pclmul {
  107. header "wmmintrin.h"
  108. export aes
  109. export pclmul
  110. }
  111. explicit module aes {
  112. header "__wmmintrin_aes.h"
  113. }
  114. explicit module pclmul {
  115. header "__wmmintrin_pclmul.h"
  116. }
  117. }
  118. explicit module systemz {
  119. requires systemz
  120. export *
  121. header "s390intrin.h"
  122. explicit module htm {
  123. requires htm
  124. header "htmintrin.h"
  125. header "htmxlintrin.h"
  126. }
  127. explicit module zvector {
  128. requires zvector, vx
  129. header "vecintrin.h"
  130. }
  131. }
  132. }
  133. module _Builtin_stddef_max_align_t [system] [extern_c] {
  134. header "__stddef_max_align_t.h"
  135. }
  136. module opencl_c {
  137. requires opencl
  138. header "opencl-c.h"
  139. }