projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e4cd40
)
Add ADX CPUID detection
author
Michael Liao
<michael.liao@intel.com>
Thu, 28 Mar 2013 22:29:53 +0000
(22:29 +0000)
committer
Michael Liao
<michael.liao@intel.com>
Thu, 28 Mar 2013 22:29:53 +0000
(22:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178299
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86Subtarget.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86Subtarget.cpp
b/lib/Target/X86/X86Subtarget.cpp
index 6e66c1aa96c6808bb63f34ff2fe67f42b2968675..fa991298a6d450ba97307cc4395a73265f838be1 100644
(file)
--- 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);
+ }
}
}
}