[all-commits] [llvm/llvm-project] 1cafde: [clang][X86] Add __cpuidex function to cpuid.h (#9...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Thu Jul 11 15:57:58 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1cafde234865cdcd37311dcd77d3ef9a3e12f177
      https://github.com/llvm/llvm-project/commit/1cafde234865cdcd37311dcd77d3ef9a3e12f177
  Author: Aiden Grossman <aidengrossman at google.com>
  Date:   2024-07-11 (Thu, 11 Jul 2024)

  Changed paths:
    M clang/lib/Headers/cpuid.h
    A clang/test/Headers/__cpuidex_conflict.c
    M clang/test/Headers/cpuid.c

  Log Message:
  -----------
  [clang][X86] Add __cpuidex function to cpuid.h (#97785)

MSVC has a __cpuidex function implemented to call the underlying cpuid
instruction which accepts a leaf, subleaf, and data array that the
output data is written into. This patch adds this functionality into
clang under the cpuid.h header. This also makes clang match GCC's
behavior. GCC has had __cpuidex in its cpuid.h since 2020.

This is another attempt to land https://reviews.llvm.org/D158348.



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