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:
d23cd2a
)
Set implied features based upon the CPU's feature list.
author
Bill Wendling
<isanbard@gmail.com>
Wed, 27 Jun 2007 23:34:06 +0000
(23:34 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Wed, 27 Jun 2007 23:34:06 +0000
(23:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37768
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/SubtargetFeature.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/SubtargetFeature.cpp
b/lib/Target/SubtargetFeature.cpp
index 598f02982b0e6079c75d8315dd9a6a56ff70b868..d783f8b778982dbd9dc7dcf47052738100b35142 100644
(file)
--- a/
lib/Target/SubtargetFeature.cpp
+++ b/
lib/Target/SubtargetFeature.cpp
@@
-268,6
+268,13
@@
uint32_t SubtargetFeatures::getBits(const SubtargetFeatureKV *CPUTable,
if (CPUEntry) {
// Set base feature bits
Bits = CPUEntry->Value;
+
+ // Set the feature implied by this CPU feature, if any.
+ for (size_t i = 0; i < FeatureTableSize; ++i) {
+ const SubtargetFeatureKV &FE = FeatureTable[i];
+ if (CPUEntry->Value & FE.Value)
+ SetImpliedBits(Bits, &FE, FeatureTable, FeatureTableSize);
+ }
} else {
cerr << "'" << Features[0]
<< "' is not a recognized processor for this target"