[Bug 234291] LLVM does not support CPU feature detection on non-x86 platforms
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Dec 23 10:32:04 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234291
Bug ID: 234291
Summary: LLVM does not support CPU feature detection on non-x86
platforms
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: greg at unrelenting.technology
llvm::sys::getHostCPUFeatures (lib/Support/Host.cpp):
https://llvm.org/doxygen/Host_8cpp_source.html#l01427
only supports Linux's /proc/cpuinfo on non-x86 architectures.
One known user of that API is lang/ponyc, where I contributed a workaround:
https://github.com/ponylang/ponyc/commit/81ba52c90cb87a049be8052754a8b031de59593d
There should be versions of this function for FreeBSD/aarch64 (by reading
ID_AA64ISAR0_EL1/ID_AA64PFR0_EL1/ID_AA64ISAR1_EL1 in userspace) and
armv\d|powerpc(64)? (via elf_aux_info).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list