mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-12 15:30:46 +00:00
Shrink and reorder fields in MCRegisterClass to reduce size of static data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152019 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ebfbf8b9f
commit
52b89dd303
@ -28,15 +28,15 @@ public:
|
||||
typedef const uint16_t* iterator;
|
||||
typedef const uint16_t* const_iterator;
|
||||
|
||||
const unsigned ID;
|
||||
const char *Name;
|
||||
const unsigned RegSize, Alignment; // Size & Alignment of register in bytes
|
||||
const int CopyCost;
|
||||
const bool Allocatable;
|
||||
const iterator RegsBegin;
|
||||
const uint8_t *const RegSet;
|
||||
const unsigned RegsSize;
|
||||
const unsigned RegSetSize;
|
||||
const uint8_t RegsSize;
|
||||
const uint8_t RegSetSize;
|
||||
const uint8_t ID;
|
||||
const uint8_t RegSize, Alignment; // Size & Alignment of register in bytes
|
||||
const int8_t CopyCost;
|
||||
const bool Allocatable;
|
||||
|
||||
/// getID() - Return the register class ID number.
|
||||
///
|
||||
|
@ -399,14 +399,14 @@ RegisterInfoEmitter::runMCDesc(raw_ostream &OS, CodeGenTarget &Target,
|
||||
|
||||
for (unsigned rc = 0, e = RegisterClasses.size(); rc != e; ++rc) {
|
||||
const CodeGenRegisterClass &RC = *RegisterClasses[rc];
|
||||
OS << " { " << RC.getQualifiedName() + "RegClassID" << ", "
|
||||
<< '\"' << RC.getName() << "\", "
|
||||
OS << " { " << '\"' << RC.getName() << "\", "
|
||||
<< RC.getName() << ", " << RC.getName() << "Bits, "
|
||||
<< RC.getOrder().size() << ", sizeof(" << RC.getName() << "Bits), "
|
||||
<< RC.getQualifiedName() + "RegClassID" << ", "
|
||||
<< RC.SpillSize/8 << ", "
|
||||
<< RC.SpillAlignment/8 << ", "
|
||||
<< RC.CopyCost << ", "
|
||||
<< RC.Allocatable << ", "
|
||||
<< RC.getName() << ", " << RC.getName() << "Bits, "
|
||||
<< RC.getOrder().size() << ", sizeof(" << RC.getName() << "Bits) },\n";
|
||||
<< RC.Allocatable << " },\n";
|
||||
}
|
||||
|
||||
OS << "};\n\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user