mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-16 11:24:39 +00:00
TableGen: Generate more const goodness
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233857 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -233,7 +233,7 @@ EmitRegUnitPressure(raw_ostream &OS, const CodeGenRegBank &RegBank,
|
|||||||
OS << "// Get the name of this register unit pressure set.\n"
|
OS << "// Get the name of this register unit pressure set.\n"
|
||||||
<< "const char *" << ClassName << "::\n"
|
<< "const char *" << ClassName << "::\n"
|
||||||
<< "getRegPressureSetName(unsigned Idx) const {\n"
|
<< "getRegPressureSetName(unsigned Idx) const {\n"
|
||||||
<< " static const char *PressureNameTable[] = {\n";
|
<< " static const char *const PressureNameTable[] = {\n";
|
||||||
unsigned MaxRegUnitWeight = 0;
|
unsigned MaxRegUnitWeight = 0;
|
||||||
for (unsigned i = 0; i < NumSets; ++i ) {
|
for (unsigned i = 0; i < NumSets; ++i ) {
|
||||||
const RegUnitSet &RegUnits = RegBank.getRegSetAt(i);
|
const RegUnitSet &RegUnits = RegBank.getRegSetAt(i);
|
||||||
@@ -752,7 +752,7 @@ RegisterInfoEmitter::emitComposeSubRegIndexLaneMask(raw_ostream &OS,
|
|||||||
Idx += Sequence.size() + 1;
|
Idx += Sequence.size() + 1;
|
||||||
}
|
}
|
||||||
OS << " };\n"
|
OS << " };\n"
|
||||||
" static const MaskRolOp *CompositeSequences[] = {\n";
|
" static const MaskRolOp *const CompositeSequences[] = {\n";
|
||||||
for (size_t i = 0, e = SubRegIndices.size(); i != e; ++i) {
|
for (size_t i = 0, e = SubRegIndices.size(); i != e; ++i) {
|
||||||
OS << " ";
|
OS << " ";
|
||||||
unsigned Idx = SubReg2SequenceIndexMap[i];
|
unsigned Idx = SubReg2SequenceIndexMap[i];
|
||||||
|
Reference in New Issue
Block a user