Skip to content

visualc: add new _visualc_intrinsics module #41710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions stdlib/public/Platform/visualc.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,80 @@
//
//===----------------------------------------------------------------------===//

module _visualc_intrinsics [system] [extern_c] {
explicit module arm {
requires armv7
header "armintr.h"

explicit module neon {
requires neon
header "arm_neon.h"
}
}

explicit module aarch64 {
requires aarch64
header "arm64intr.h"

explicit module neon {
requires neon
header "arm64_neon.h"
}
}

explicit module intel {
requires x86
export *

header "immintrin.h"

explicit module mmx {
header "mmintrin.h"
}

explicit module sse {
export mmx
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 "tmmintrinh"
}

explicit module sse4_1 {
export ssse3
header "smmintrin.h"
}

explicit module sse4_2 {
export sse4_1
header "nmmintrin.h"
}

explicit module sse4a {
export sse3
header "ammintrin.h"
}

explicit module aes_pclmul {
header "wmmintrin.h"
export aes
export pclmul
}
}
}

module visualc [system] {
export *

Expand Down