diff options
author | Alina Sbirlea <asbirlea@google.com> | 2016-07-08 16:18:41 +0000 |
---|---|---|
committer | Alina Sbirlea <asbirlea@google.com> | 2016-07-08 16:18:41 +0000 |
commit | 985d2ffd5ac6f918f0157514f7d11b4c3f8f8b4e (patch) | |
tree | ef7f7b92de51e08868b66fcd31489c5a7fb5ede3 /lib/builtins/cpu_model.c | |
parent | 81ba9dae4d6bdc223972f0d1ff9bc5b5be77c312 (diff) |
Added comments identifing code source
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@274870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/cpu_model.c')
-rw-r--r-- | lib/builtins/cpu_model.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/builtins/cpu_model.c b/lib/builtins/cpu_model.c index 61574cd98..d9d541e22 100644 --- a/lib/builtins/cpu_model.c +++ b/lib/builtins/cpu_model.c @@ -119,6 +119,7 @@ enum ProcessorFeatures { FEATURE_EM64T }; +// The check below fori386 was copied from clang's cpuid.h. static bool isCpuIdSupported() { #if defined(i386) || defined(__i386__) int __cpuid_supported; @@ -144,6 +145,9 @@ static bool isCpuIdSupported() { return 1; } +// This code is copied from lib/Support/Host.cpp. +// Changes to either file should be mirrored in the other. + #if defined(i386) || defined(__i386__) || defined(__x86__) || \ defined(_M_IX86) || defined(__x86_64__) || defined(_M_AMD64) || \ defined(_M_X64) |