Changes in directory llvm/lib/Target:
SubtargetFeature.cpp updated: 1.13 -> 1.14
---
Log message:
Set implied features based upon the CPU's feature list.
---
Diffs of the changes: (+7 -0)
SubtargetFeature.cpp | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/lib/Target/SubtargetFeature.cpp
diff -u llvm/lib/Target/SubtargetFeature.cpp:1.13
llvm/lib/Target/SubtargetFeature.cpp:1.14
--- llvm/lib/Target/SubtargetFeature.cpp:1.13 Fri May 4 15:38:40 2007
+++ llvm/lib/Target/SubtargetFeature.cpp Wed Jun 27 18:34:06 2007
@@ -268,6 +268,13 @@
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"
_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits