[all-commits] [llvm/llvm-project] 256f40: Cpu features cross platform (#205447)

Jared Wyles via All-commits all-commits at lists.llvm.org
Tue Aug 4 04:19:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 256f40dbe6b66dae8d08ddbe7d1ff7851c79764c
      https://github.com/llvm/llvm-project/commit/256f40dbe6b66dae8d08ddbe7d1ff7851c79764c
  Author: Jared Wyles <jared.wyles at gmail.com>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M orc-rt/include/orc-rt/ExecutorProcessInfo.h
    M orc-rt/lib/executor/BootstrapInfo.cpp
    M orc-rt/lib/executor/CMakeLists.txt
    M orc-rt/lib/executor/ExecutorProcessInfo.cpp
    A orc-rt/lib/executor/TargetDetails.h
    A orc-rt/lib/executor/darwin/CPUFeatures.cpp
    A orc-rt/lib/executor/darwin/TargetTriple.cpp
    A orc-rt/lib/executor/linux/CPUFeatures.cpp
    A orc-rt/lib/executor/linux/TargetTriple.cpp
    A orc-rt/lib/executor/windows/CPUFeatures.cpp
    A orc-rt/lib/executor/windows/TargetTriple.cpp
    M orc-rt/test/CMakeLists.txt
    A orc-rt/test/regression/check-rt-processi-info.test
    M orc-rt/test/regression/lit.cfg.py
    M orc-rt/test/tools/CMakeLists.txt
    A orc-rt/test/tools/orc-rt-process-info-check.cpp
    M orc-rt/test/unit/BootstrapInfoTest.cpp
    M orc-rt/test/unit/CMakeLists.txt
    M orc-rt/test/unit/CommonTestUtils.h
    M orc-rt/test/unit/ExecutorProcessInfoTest.cpp
    M orc-rt/test/unit/InProcessControllerAccessTest.cpp

  Log Message:
  -----------
  Cpu features cross platform (#205447)

Also adds the place holders for other OS's as well as the structure for
cross platform code going forward.

Prefer sys calls as we can't be sure what runtime we may end up linking
with
Some features can be controlled via the kernel so this makes it easier
than relying on __cpuid for now.

The triples are now more accurate and include the os version on darwin. 

All results are a string that are passed in the default map with the key are llvm subtarget features valid strings
orc-rt.Executor.SubtargetFeatures

Adds a new process regression test as well, with a best effort
guess that the triple returned is correct.



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