llvm-project/clang
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
..
INPUTS
bindings
cmake [CMake][Fuchsia] Drop Darwin architectures 2022-03-18 10:09:57 -07:00
docs [Clang] Support multiple attributes in a single pragma 2022-03-18 12:20:41 +00:00
examples clang-analyzer plugins require LLVM_ENABLE_PLUGINS also 2022-02-16 11:59:09 -05:00
include Implement __cpuid and __cpuidex as Clang builtins 2022-03-18 18:13:52 +01:00
lib Implement __cpuid and __cpuidex as Clang builtins 2022-03-18 18:13:52 +01:00
runtime Fix running orc-rt tests with LLVM_BUILD_EXTERNAL_COMPILER_RT 2022-01-25 08:27:40 -08:00
test Implement __cpuid and __cpuidex as Clang builtins 2022-03-18 18:13:52 +01:00
tools [OpenMP] Initial parsing/sema for the 'omp teams loop' construct 2022-03-16 14:39:18 -07:00
unittests [clang][dataflow] Add modeling of Chromium's CHECK functionality 2022-03-18 14:39:23 +00:00
utils [RISCV] Add +experimental-zvfh extension to cover half types in vectors. 2022-03-17 10:04:02 -07:00
www [clang] CWG 2354: prohibit alignas for enums 2022-03-16 15:48:18 +08:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt Revert "[Driver] Default CLANG_DEFAULT_PIE_ON_LINUX to ON" 2022-02-26 15:32:49 +01:00
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.txt

README.txt

//===----------------------------------------------------------------------===//
// C Language Family Front-end
//===----------------------------------------------------------------------===//

Welcome to Clang.  This is a compiler front-end for the C family of languages
(C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM
compiler infrastructure project.

Unlike many other compiler frontends, Clang is useful for a number of things
beyond just compiling code: we intend for Clang to be host to a number of
different source-level tools.  One example of this is the Clang Static Analyzer.

If you're interested in more (including how to build Clang) it is best to read
the relevant web sites.  Here are some pointers:

Information on Clang:             http://clang.llvm.org/
Building and using Clang:         http://clang.llvm.org/get_started.html
Clang Static Analyzer:            http://clang-analyzer.llvm.org/
Information on the LLVM project:  http://llvm.org/

If you have questions or comments about Clang, a great place to discuss them is
on the Clang development mailing list:
  http://lists.llvm.org/mailman/listinfo/cfe-dev

If you find a bug in Clang, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/