Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Dec 2018 10:32:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 234291] LLVM does not support CPU feature detection on non-x86 platforms
Message-ID:  <bug-234291-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234291

            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@FreeBSD.org
          Reporter: greg@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/81ba52c90cb87a049be8052754a8b031de=
59593d

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).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234291-227>