[llvm] r178299 - Add ADX CPUID detection
Michael Liao
michael.liao at intel.com
Thu Mar 28 15:29:53 PDT 2013
Author: hliao
Date: Thu Mar 28 17:29:53 2013
New Revision: 178299
URL: http://llvm.org/viewvc/llvm-project?rev=178299&view=rev
Log:
Add ADX CPUID detection
Modified:
llvm/trunk/lib/Target/X86/X86Subtarget.cpp
Modified: llvm/trunk/lib/Target/X86/X86Subtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.cpp?rev=178299&r1=178298&r2=178299&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86Subtarget.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86Subtarget.cpp Thu Mar 28 17:29:53 2013
@@ -330,6 +330,10 @@ void X86Subtarget::AutoDetectSubtargetFe
HasRTM = true;
ToggleFeature(X86::FeatureRTM);
}
+ if (IsIntel && ((EBX >> 19) & 0x1)) {
+ HasADX = true;
+ ToggleFeature(X86::FeatureADX);
+ }
}
}
}
More information about the llvm-commits
mailing list