[all-commits] [llvm/llvm-project] 73ac95: [RISCV][compiler-rt] Small fixes for __riscv_featu...
Piyou Chen via All-commits
all-commits at lists.llvm.org
Tue Jul 23 16:52:29 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 73ac9536268f21149e29601da31e3415725b0a17
https://github.com/llvm/llvm-project/commit/73ac9536268f21149e29601da31e3415725b0a17
Author: Piyou Chen <piyou.chen at sifive.com>
Date: 2024-07-24 (Wed, 24 Jul 2024)
Changed paths:
M compiler-rt/lib/builtins/CMakeLists.txt
A compiler-rt/lib/builtins/cpu_model/riscv.c
R compiler-rt/lib/builtins/riscv/feature_bits.c
Log Message:
-----------
[RISCV][compiler-rt] Small fixes for __riscv_feature_bits (#100158)
Changes included:
- Adding CONSTRUCTOR_ATTRIBUTE so that the static data is setup early on
in process lifetime. This is required by gcc docs for
__builtin_cpu_supports which we hope to implement in terms of this.
- Move the length initialization outside of the #if defined(linux) block
so that the length field always reflects the size of the structures even
if non of the feature bits are non-zero.
- Change the __riscv_vendor_feature_bits.length field to match the
length of the actual structure.
Note: Copy from https://github.com/llvm/llvm-project/pull/99958
---------
Co-authored-by: Philip Reames <preames at rivosinc.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list