diff options
author | Aiden Grossman <aidengrossman@google.com> | 2024-07-11 15:57:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 15:57:37 -0700 |
commit | 1cafde234865cdcd37311dcd77d3ef9a3e12f177 (patch) | |
tree | 28059800ccd87cecae6275fd375b9a63ab78fba5 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | ce4aada6e2135e29839f672a6599db628b53295d (diff) | |
download | llvm-1cafde234865cdcd37311dcd77d3ef9a3e12f177.zip llvm-1cafde234865cdcd37311dcd77d3ef9a3e12f177.tar.gz llvm-1cafde234865cdcd37311dcd77d3ef9a3e12f177.tar.bz2 |
[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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions