aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichael Liao <michael.liao@intel.com>2013-03-28 22:29:53 +0000
committerMichael Liao <michael.liao@intel.com>2013-03-28 22:29:53 +0000
commit5a8386e1dfc9897bde39be2519bb5a6949623f64 (patch)
treebee4c740ab2268e327ba97a71e9996465f1f599c /lib
parent8e4cd40b27adebd06aa2565111a7f5b2555b2b75 (diff)
downloadexternal_llvm-5a8386e1dfc9897bde39be2519bb5a6949623f64.zip
external_llvm-5a8386e1dfc9897bde39be2519bb5a6949623f64.tar.gz
external_llvm-5a8386e1dfc9897bde39be2519bb5a6949623f64.tar.bz2
Add ADX CPUID detection
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178299 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/X86Subtarget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp
index 6e66c1a..fa99129 100644
--- a/lib/Target/X86/X86Subtarget.cpp
+++ b/lib/Target/X86/X86Subtarget.cpp
@@ -330,6 +330,10 @@ void X86Subtarget::AutoDetectSubtargetFeatures() {
HasRTM = true;
ToggleFeature(X86::FeatureRTM);
}
+ if (IsIntel && ((EBX >> 19) & 0x1)) {
+ HasADX = true;
+ ToggleFeature(X86::FeatureADX);
+ }
}
}
}