[all-commits] [llvm/llvm-project] 937027: [Support] Redefine endianness::native (#67876)
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Tue Oct 3 18:40:13 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9370271ec5debcb59e34629d5bd357c44213b2d3
https://github.com/llvm/llvm-project/commit/9370271ec5debcb59e34629d5bd357c44213b2d3
Author: Kazu Hirata <kazu at google.com>
Date: 2023-10-03 (Tue, 03 Oct 2023)
Changed paths:
M llvm/include/llvm/Support/Endian.h
M llvm/include/llvm/Support/HashBuilder.h
M llvm/lib/ExecutionEngine/JITLink/aarch32.cpp
Log Message:
-----------
[Support] Redefine endianness::native (#67876)
We should eventually migrate llvm::support::endianness to std::endian
when C++20 is available for the codebase.
This patch prepares our codebase for that future by removing the
assumption that native is a unique value different from both big and
little. Note that in C++20, native is equal to either big or little
on typical machines, where the endianness is the same for all scalar
types.
More information about the All-commits
mailing list