Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [X86] Add support for __builtin_cpu_init | Craig Topper | 2017-08-28 | 1 | -0/+4 |
| | | | | | | | | | | This adds builtin_cpu_init which will emit a call to cpu_indicator_init in libgcc or compiler-rt. This is needed to support builtin_cpu_supports/builtin_cpu_is in an ifunc resolver. Differential Revision: https://reviews.llvm.org/D36336 llvm-svn: 311874 | ||||
* | Fix CHECK directives that weren't checking. | Hans Wennborg | 2015-08-31 | 1 | -1/+1 |
| | | | | llvm-svn: 246492 | ||||
* | Add support for the x86 builtin __builtin_cpu_supports. | Eric Christopher | 2015-06-29 | 1 | -0/+16 |
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 |