diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-06-29 21:00:05 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-06-29 21:00:05 +0000 |
| commit | d983270976d24bd30737262f6aafbf362f9077c8 (patch) | |
| tree | 1afbc51f1b85cce678baaf84a0453986162ed339 /llvm/tools/llvm-objdump/llvm-objdump.h | |
| parent | 63cacd7b7901d2ecf7541f62113c1c2252abbd8c (diff) | |
| download | bcm5719-llvm-d983270976d24bd30737262f6aafbf362f9077c8.tar.gz bcm5719-llvm-d983270976d24bd30737262f6aafbf362f9077c8.zip | |
Add support for the x86 builtin __builtin_cpu_supports.
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
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.h')
0 files changed, 0 insertions, 0 deletions

