summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/builtin-cpu-supports.c
Commit message (Collapse)AuthorAgeFilesLines
* [X86] Implement __builtin_cpu_isCraig Topper2017-08-101-0/+6
| | | | | | | | This patch adds support for __builtin_cpu_is. I've tried to match the strings supported to the latest version of gcc. Differential Revision: https://reviews.llvm.org/D35449 llvm-svn: 310657
* Add support for the x86 builtin __builtin_cpu_supports.Eric Christopher2015-06-291-0/+21
This matches the implementation of the gcc support for the same feature, including checking the values set up by libgcc at runtime. The structure looks like this: unsigned int __cpu_vendor; unsigned int __cpu_type; unsigned int __cpu_subtype; unsigned int __cpu_features[1]; with a set of enums to match various fields that are field out after parsing the output of the cpuid instruction. This also adds a set of errors checking for valid input (and cpu). compiler-rt support for this and the other builtins in this family (__builtin_cpu_init and __builtin_cpu_is) are forthcoming. llvm-svn: 240994
OpenPOWER on IntegriCloud