[PATCH] D150646: [clang][X86] Add __cpuidex function to cpuid.h

Mike Hommey via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 17 21:26:35 PDT 2023


glandium added a comment.

Repro:

  $ echo '#include "cpuid.h"' | ./clang/bin/clang-cl  -Tp -
  clang-cl: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]
  In file included from <stdin>:1:
  /tmp/ct/clang/lib/clang/17/include/cpuid.h(331,22): error: definition of builtin function '__cpuidex'
  static __inline void __cpuidex (int __cpu_info[4], int __leaf, int __subleaf)
                       ^
  1 error generated.

(interestingly doesn't happen in C mode (with `-Tc` instead of `-Tp`))


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150646/new/

https://reviews.llvm.org/D150646



More information about the cfe-commits mailing list