mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-16 07:38:43 +00:00
Set implied features based upon the CPU's feature list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d23cd2a0bf
commit
1a636de33b
@ -268,6 +268,13 @@ uint32_t SubtargetFeatures::getBits(const SubtargetFeatureKV *CPUTable,
|
|||||||
if (CPUEntry) {
|
if (CPUEntry) {
|
||||||
// Set base feature bits
|
// Set base feature bits
|
||||||
Bits = CPUEntry->Value;
|
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 {
|
} else {
|
||||||
cerr << "'" << Features[0]
|
cerr << "'" << Features[0]
|
||||||
<< "' is not a recognized processor for this target"
|
<< "' is not a recognized processor for this target"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user