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 | d6ce086f326041ae3889bef97278121a59108313 (patch) | |
| tree | 8efe32093b126e3c4b34f31ad5328d5856496318 | |
| parent | 3b4c3f4d5164e39014a2d763e861a281885f7011 (diff) | |
| download | bcm5719-llvm-d6ce086f326041ae3889bef97278121a59108313.tar.gz bcm5719-llvm-d6ce086f326041ae3889bef97278121a59108313.zip | |
Added comments identifing code source
llvm-svn: 274870
| -rw-r--r-- | compiler-rt/lib/builtins/cpu_model.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/builtins/cpu_model.c b/compiler-rt/lib/builtins/cpu_model.c index 61574cd9858..d9d541e22f6 100644 --- a/compiler-rt/lib/builtins/cpu_model.c +++ b/compiler-rt/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) |

