[llvm] r318331 - [X86] Add some explanatory comments to the ProcessorFeatures enum in Host.cpp.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 15 12:42:49 PST 2017
Author: ctopper
Date: Wed Nov 15 12:42:49 2017
New Revision: 318331
URL: http://llvm.org/viewvc/llvm-project?rev=318331&view=rev
Log:
[X86] Add some explanatory comments to the ProcessorFeatures enum in Host.cpp.
Modified:
llvm/trunk/lib/Support/Host.cpp
Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=318331&r1=318330&r2=318331&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Wed Nov 15 12:42:49 2017
@@ -322,6 +322,8 @@ enum VendorSignatures {
SIG_AMD = 0x68747541 /* Auth */
};
+// This should be kept in sync with libcc/compiler-rt as it should be used
+// by clang as a proxy for what's in libgcc/compiler-rt.
enum ProcessorFeatures {
FEATURE_CMOV = 0,
FEATURE_MMX,
@@ -354,7 +356,8 @@ enum ProcessorFeatures {
FEATURE_AVX5124VNNIW,
FEATURE_AVX5124FMAPS,
FEATURE_AVX512VPOPCNTDQ,
- // Only one bit free left in the first 32 features.
+ // One bit free here.
+ // Features below here are not in libgcc/compiler-rt.
FEATURE_MOVBE = 32,
FEATURE_ADX,
FEATURE_EM64T,
More information about the llvm-commits
mailing list