summaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-07-08 05:16:14 +0000
committerCraig Topper <craig.topper@intel.com>2017-07-08 05:16:14 +0000
commit502be8232c8417dae599b3b3f15175e69ab5948b (patch)
treef26cca1c76f68ab6d6ea5c3c3e1ec749964e0331 /lib/Support
parent48bde3bb02bdccfd37834a223422882f0c40e4c5 (diff)
[X86] Use 'unsigned' instead of 'unsigned int' for consistency in the X86 portion of Host.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/Host.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp
index 0b5a5c1a33f1..9fbdb8b616a9 100644
--- a/lib/Support/Host.cpp
+++ b/lib/Support/Host.cpp
@@ -526,8 +526,8 @@ static void detectX86FamilyModel(unsigned EAX, unsigned *Family,
}
static void
-getIntelProcessorTypeAndSubtype(unsigned int Family, unsigned int Model,
- unsigned int Brand_id, unsigned int Features,
+getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
+ unsigned Brand_id, unsigned Features,
unsigned *Type, unsigned *Subtype) {
if (Brand_id != 0)
return;
@@ -827,9 +827,9 @@ getIntelProcessorTypeAndSubtype(unsigned int Family, unsigned int Model,
}
}
-static void getAMDProcessorTypeAndSubtype(unsigned int Family,
- unsigned int Model,
- unsigned int Features,
+static void getAMDProcessorTypeAndSubtype(unsigned Family,
+ unsigned Model,
+ unsigned Features,
unsigned *Type,
unsigned *Subtype) {
// FIXME: this poorly matches the generated SubtargetFeatureKV table. There
@@ -956,10 +956,10 @@ static void getAMDProcessorTypeAndSubtype(unsigned int Family,
}
}
-static unsigned getAvailableFeatures(unsigned int ECX, unsigned int EDX,
+static unsigned getAvailableFeatures(unsigned ECX, unsigned EDX,
unsigned MaxLeaf) {
unsigned Features = 0;
- unsigned int EAX, EBX;
+ unsigned EAX, EBX;
Features |= (((EDX >> 23) & 1) << FEATURE_MMX);
Features |= (((EDX >> 25) & 1) << FEATURE_SSE);
Features |= (((EDX >> 26) & 1) << FEATURE_SSE2);