tensorflow/third_party/llvm/build.patch
Benjamin Kramer 6f2b847f8c Integrate LLVM at llvm/llvm-project@497480b38a
Updates LLVM usage to match
[497480b38a49](https://github.com/llvm/llvm-project/commit/497480b38a49)

PiperOrigin-RevId: 590923354
2023-12-14 06:52:23 -08:00

47 lines
1.8 KiB
Diff

diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index 7770284e5543..0b45127495dc 100644
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -218,13 +218,15 @@ cc_library(
"lib/Support/BLAKE3/llvm_blake3_prefix.h",
] + select({
"@platforms//cpu:aarch64": [
- "lib/Support/BLAKE3/blake3_neon.c",
+ # TODO(b/234415414): temporary disabled
+ # "lib/Support/BLAKE3/blake3_neon.c",
],
"@platforms//cpu:x86_64": [
- "lib/Support/BLAKE3/blake3_avx2_x86-64_unix.S",
- "lib/Support/BLAKE3/blake3_avx512_x86-64_unix.S",
- "lib/Support/BLAKE3/blake3_sse2_x86-64_unix.S",
- "lib/Support/BLAKE3/blake3_sse41_x86-64_unix.S",
+ # TODO(b/234415414): temporary disabled
+ # "lib/Support/BLAKE3/blake3_avx2_x86-64_unix.S",
+ # "lib/Support/BLAKE3/blake3_avx512_x86-64_unix.S",
+ # "lib/Support/BLAKE3/blake3_sse2_x86-64_unix.S",
+ # "lib/Support/BLAKE3/blake3_sse41_x86-64_unix.S",
],
"//conditions:default": [
],
@@ -249,14 +251,16 @@ cc_library(
],
copts = llvm_copts,
defines = select({
- "@platforms//cpu:aarch64": [
- ],
+ # TODO(b/234415414): temporary disabled
+ #"@platforms//cpu:aarch64": [
+ #],
"//conditions:default": [
"BLAKE3_USE_NEON=0",
],
}) + select({
- "@platforms//cpu:x86_64": [
- ],
+ # TODO(b/234415414): temporary disabled
+ # "@platforms//cpu:x86_64": [
+ # ],
"//conditions:default": [
"BLAKE3_NO_AVX2",
"BLAKE3_NO_AVX512",