llvm-project/clang/lib
Alan Zhao 8cd8bd4a5c Implement __cpuid and __cpuidex as Clang builtins
https://reviews.llvm.org/D23944 implemented the #pragma intrinsic from
MSVC. This causes the statement #pragma intrinsic(cpuid) to fail [0]
on Clang because cpuid is currently implemented in intrin.h instead
of a Clang builtin. Reimplementing cpuid (as well as it's releated
function, cpuidex) should resolve this.

[0]: https://crbug.com/1279344

Differential revision: https://reviews.llvm.org/D121653
2022-03-18 18:13:52 +01:00
..
APINotes [clang][APINotes] Fix -Wunused-function warning (NFC) 2021-04-01 09:52:43 +08:00
ARCMigrate [clang] Use true/false instead of 1/0 (NFC) 2022-01-09 00:19:47 -08:00
AST [clang][SVE] Add support for bitwise operators on SVE types 2022-03-18 14:06:47 +00:00
ASTMatchers Add `isConstinit` matcher 2022-01-24 08:35:42 -05:00
Analysis [clang][dataflow] Add modeling of Chromium's CHECK functionality 2022-03-18 14:39:23 +00:00
Basic [PS4] Make __BIGGEST_ALIGNMENT__ 32bytes 2022-03-17 10:12:38 -07:00
CodeGen Implement __cpuid and __cpuidex as Clang builtins 2022-03-18 18:13:52 +01:00
CrossTU Revert "[analyzer][ctu] Fix wrong 'multiple definitions' errors caused by space characters in lookup names when parsing the ctu index file" 2021-12-16 20:46:51 -05:00
DirectoryWatcher [clang] [DirectoryWatcher] Remove leading \\?\ from GetFinalPathNameByHandleW 2021-11-08 22:21:30 +02:00
Driver Use llvm::append_range instead of push_back loops where applicable. NFCI. 2022-03-18 01:25:34 +01:00
Edit [clang] Use true/false instead of 1/0 (NFC) 2022-01-09 00:19:47 -08:00
Format [clang-format] Refactor ShouldBreakBeforeBrace to use switch. NFC. 2022-03-18 15:16:01 +01:00
Frontend Revert "Revert "Revert "[misexpect] Re-implement MisExpect Diagnostics""" 2022-03-18 00:21:33 +00:00
FrontendTool [clang][extract-api] Add global record support 2022-03-16 15:13:55 -07:00
Headers Implement __cpuid and __cpuidex as Clang builtins 2022-03-18 18:13:52 +01:00
Index [clang] Visit enum base specifiers in libIndex 2021-10-25 13:16:14 +02:00
IndexSerialization
Interpreter [clang-repl] Add an accessor to our underlying execution engine 2022-03-11 09:24:47 +00:00
Lex Currently the control of the eval-method is mixed with fast-math. 2022-03-17 11:48:03 -07:00
Parse [Clang] Support multiple attributes in a single pragma 2022-03-18 12:20:41 +00:00
Rewrite Add assert on End iteration distance to Rewriter::getRewrittenText. 2022-01-25 17:26:13 +00:00
Sema [clang][SVE] Add support for bitwise operators on SVE types 2022-03-18 14:06:47 +00:00
Serialization Use llvm::append_range instead of push_back loops where applicable. NFCI. 2022-03-18 01:25:34 +01:00
StaticAnalyzer [OpenMP] Initial parsing/sema for the 'omp teams loop' construct 2022-03-16 14:39:18 -07:00
SymbolGraph [FIX][clang-extract-api] Fix scope naming violation 2022-03-16 16:04:44 -07:00
Testing
Tooling [clang][deps] Fix traversal of precompiled dependencies 2022-03-16 12:17:53 +01:00
CMakeLists.txt [clang][extract-api] Add global record support 2022-03-16 15:13:55 -07:00