[PATCH] D159156: [Support/BLAKE3] Fix error when building llvm for big endian AArch64 host

Daniil Kovalev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 30 01:47:48 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGea130a81d4c1: [Support/BLAKE3] Fix error when building llvm for big endian AArch64 host (authored by kovdan01).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159156/new/

https://reviews.llvm.org/D159156

Files:
  llvm/lib/Support/BLAKE3/blake3_impl.h


Index: llvm/lib/Support/BLAKE3/blake3_impl.h
===================================================================
--- llvm/lib/Support/BLAKE3/blake3_impl.h
+++ llvm/lib/Support/BLAKE3/blake3_impl.h
@@ -54,8 +54,9 @@
 #endif
 
 #if !defined(BLAKE3_USE_NEON) 
-  // If BLAKE3_USE_NEON not manually set, autodetect based on AArch64ness
-  #if defined(IS_AARCH64)
+  // If BLAKE3_USE_NEON not manually set, autodetect based on
+  // AArch64ness and endianness.
+  #if defined(IS_AARCH64) && !defined(__ARM_BIG_ENDIAN)
     #define BLAKE3_USE_NEON 1
   #else
     #define BLAKE3_USE_NEON 0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159156.554632.patch
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230830/4315ab8b/attachment.bin>


More information about the llvm-commits mailing list