mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
Tidy up spacing in some tablegen outputs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153937 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
769bbfd951
commit
9b1b25f063
@ -525,7 +525,7 @@ emitRegisterNameString(raw_ostream &O, StringRef AltName,
|
|||||||
O << "\n ";
|
O << "\n ";
|
||||||
O << StringTable.get(AsmNames[i]) << ", ";
|
O << StringTable.get(AsmNames[i]) << ", ";
|
||||||
}
|
}
|
||||||
O << " };\n"
|
O << "\n };\n"
|
||||||
<< "\n";
|
<< "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -578,8 +578,7 @@ RegisterInfoEmitter::runTargetHeader(raw_ostream &OS, CodeGenTarget &Target,
|
|||||||
const std::string &TargetName = Target.getName();
|
const std::string &TargetName = Target.getName();
|
||||||
std::string ClassName = TargetName + "GenRegisterInfo";
|
std::string ClassName = TargetName + "GenRegisterInfo";
|
||||||
|
|
||||||
OS << "#include \"llvm/Target/TargetRegisterInfo.h\"\n";
|
OS << "#include \"llvm/Target/TargetRegisterInfo.h\"\n\n";
|
||||||
OS << "#include <string>\n\n";
|
|
||||||
|
|
||||||
OS << "namespace llvm {\n\n";
|
OS << "namespace llvm {\n\n";
|
||||||
|
|
||||||
@ -812,9 +811,8 @@ RegisterInfoEmitter::runTargetDesc(raw_ostream &OS, CodeGenTarget &Target,
|
|||||||
|
|
||||||
// Emit extra information about registers.
|
// Emit extra information about registers.
|
||||||
const std::string &TargetName = Target.getName();
|
const std::string &TargetName = Target.getName();
|
||||||
OS << "\n static const TargetRegisterInfoDesc "
|
OS << "\nstatic const TargetRegisterInfoDesc "
|
||||||
<< TargetName << "RegInfoDesc[] = "
|
<< TargetName << "RegInfoDesc[] = { // Extra Descriptors\n";
|
||||||
<< "{ // Extra Descriptors\n";
|
|
||||||
OS << " { 0, 0 },\n";
|
OS << " { 0, 0 },\n";
|
||||||
|
|
||||||
const std::vector<CodeGenRegister*> &Regs = RegBank.getRegisters();
|
const std::vector<CodeGenRegister*> &Regs = RegBank.getRegisters();
|
||||||
@ -824,7 +822,7 @@ RegisterInfoEmitter::runTargetDesc(raw_ostream &OS, CodeGenTarget &Target,
|
|||||||
OS << Reg.CostPerUse << ", "
|
OS << Reg.CostPerUse << ", "
|
||||||
<< int(AllocatableRegs.count(Reg.TheDef)) << " },\n";
|
<< int(AllocatableRegs.count(Reg.TheDef)) << " },\n";
|
||||||
}
|
}
|
||||||
OS << " };\n"; // End of register descriptors...
|
OS << "};\n"; // End of register descriptors...
|
||||||
|
|
||||||
|
|
||||||
// Calculate the mapping of subregister+index pairs to physical registers.
|
// Calculate the mapping of subregister+index pairs to physical registers.
|
||||||
@ -833,7 +831,7 @@ RegisterInfoEmitter::runTargetDesc(raw_ostream &OS, CodeGenTarget &Target,
|
|||||||
|
|
||||||
// Emit SubRegIndex names, skipping 0
|
// Emit SubRegIndex names, skipping 0
|
||||||
ArrayRef<CodeGenSubRegIndex*> SubRegIndices = RegBank.getSubRegIndices();
|
ArrayRef<CodeGenSubRegIndex*> SubRegIndices = RegBank.getSubRegIndices();
|
||||||
OS << "\n static const char *const " << TargetName
|
OS << "\nstatic const char *const " << TargetName
|
||||||
<< "SubRegIndexTable[] = { \"";
|
<< "SubRegIndexTable[] = { \"";
|
||||||
for (unsigned i = 0, e = SubRegIndices.size(); i != e; ++i) {
|
for (unsigned i = 0, e = SubRegIndices.size(); i != e; ++i) {
|
||||||
OS << SubRegIndices[i]->getName();
|
OS << SubRegIndices[i]->getName();
|
||||||
|
Loading…
Reference in New Issue
Block a user