[PATCH] D119435: [Support][AArch64] Detect a few more host CPU features on AArch64
Danila Malyutin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 22 07:01:57 PST 2022
danilaml added a comment.
In D119435#3316830 <https://reviews.llvm.org/D119435#3316830>, @tschuett wrote:
> This file describes the ABI for exporting the AArch64 CPU ID/feature registers to userspace. The availability of this ABI is advertised via the HWCAP_CPUID in HWCAPs.
>
> and
>
> https://github.com/rust-lang/rust/blob/master/src/tools/rustfmt/tests/source/cfg_if/detect/os/aarch64.rs
>
> So it should be possible from user space.
>
> https://reviews.llvm.org/D92619
Good, this means there could be some less OS-specific way to get the features, similarly to x86, however it appears to not be guaranteed, so cpuinfo fallback will still need to exist.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119435/new/
https://reviews.llvm.org/D119435
More information about the llvm-commits
mailing list