summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2016-07-08 16:18:41 +0000
committerAlina Sbirlea <asbirlea@google.com>2016-07-08 16:18:41 +0000
commitd6ce086f326041ae3889bef97278121a59108313 (patch)
tree8efe32093b126e3c4b34f31ad5328d5856496318
parent3b4c3f4d5164e39014a2d763e861a281885f7011 (diff)
downloadbcm5719-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.c4
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)
OpenPOWER on IntegriCloud