This is an archive of the discontinued LLVM Phabricator instance.

[Support/BLAKE3] Fix error when building llvm for big endian AArch64 host
ClosedPublic

Authored by kovdan01 on Aug 29 2023, 7:44 PM.

Details

Summary

BLAKE3 implementation does not support using arm neon on big-endian hosts: see
blake3_neon.c. Setting BLAKE3_USE_NEON to 1 by default for all AArch64
hosts broke builds for big endian hosts. This patch fixes the behavior
by introducing an additional check against __ARM_BIG_ENDIAN before
setting BLAKE3_USE_NEON.

Diff Detail

Event Timeline

kovdan01 created this revision.Aug 29 2023, 7:44 PM
kovdan01 requested review of this revision.Aug 29 2023, 7:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2023, 7:44 PM
asl accepted this revision.Aug 29 2023, 7:59 PM
asl added a subscriber: asl.

LGTM, thanks!

This revision is now accepted and ready to land.Aug 29 2023, 7:59 PM

Could you bring up the issue with the BLAKE3 team as well? https://github.com/BLAKE3-team/BLAKE3