[PATCH] D126543: [bazel] BLAKE3: Adopt aarch64 and x86_64.
NAKAMURA Takumi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 27 15:06:06 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
chapuni marked an inline comment as done.
Closed by commit rGde20fb72adb4: [bazel] BLAKE3: Adopt aarch64 and x86_64. (authored by chapuni).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126543/new/
https://reviews.llvm.org/D126543
Files:
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
Index: utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -193,7 +193,19 @@
"lib/Support/BLAKE3/blake3.c",
"lib/Support/BLAKE3/blake3_dispatch.c",
"lib/Support/BLAKE3/blake3_portable.c",
- ],
+ ] + select({
+ "@platforms//cpu:aarch64": [
+ "lib/Support/BLAKE3/blake3_neon.c",
+ ],
+ "@platforms//cpu:x86_64": [
+ "lib/Support/BLAKE3/blake3_sse2_x86-64_unix.S",
+ "lib/Support/BLAKE3/blake3_sse41_x86-64_unix.S",
+ "lib/Support/BLAKE3/blake3_avx2_x86-64_unix.S",
+ "lib/Support/BLAKE3/blake3_avx512_x86-64_unix.S",
+ ],
+ "//conditions:default": [
+ ]
+ }),
hdrs = glob([
"include/llvm/Support/**/*.h",
"include/llvm/ADT/*.h",
@@ -213,13 +225,22 @@
"include/llvm/Support/VCSRevision.h",
],
copts = llvm_copts,
- defines = [
- "BLAKE3_NO_AVX2",
- "BLAKE3_NO_AVX512",
- "BLAKE3_NO_SSE2",
- "BLAKE3_NO_SSE41",
- "BLAKE3_USE_NEON=0",
- ],
+ defines = select({
+ "@platforms//cpu:aarch64": [
+ ],
+ "//conditions:default": [
+ "BLAKE3_USE_NEON=0",
+ ]
+ }) + select({
+ "@platforms//cpu:x86_64": [
+ ],
+ "//conditions:default": [
+ "BLAKE3_NO_AVX2",
+ "BLAKE3_NO_AVX512",
+ "BLAKE3_NO_SSE2",
+ "BLAKE3_NO_SSE41",
+ ]
+ }),
includes = ["include"],
linkopts = select({
"@bazel_tools//src/conditions:windows": [],
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126543.432646.patch
Type: text/x-patch
Size: 1739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220527/14d65a5f/attachment.bin>
More information about the llvm-commits
mailing list