mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
Value initialize MCRegisterClasses. Not sure how could miss this during the MCTargetDesc refactor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150076 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c160548ce
commit
90a468c424
@ -27,7 +27,7 @@ class MCRegisterClass {
|
|||||||
public:
|
public:
|
||||||
typedef const unsigned* iterator;
|
typedef const unsigned* iterator;
|
||||||
typedef const unsigned* const_iterator;
|
typedef const unsigned* const_iterator;
|
||||||
private:
|
|
||||||
unsigned ID;
|
unsigned ID;
|
||||||
const char *Name;
|
const char *Name;
|
||||||
const unsigned RegSize, Alignment; // Size & Alignment of register in bytes
|
const unsigned RegSize, Alignment; // Size & Alignment of register in bytes
|
||||||
@ -36,17 +36,6 @@ private:
|
|||||||
const iterator RegsBegin, RegsEnd;
|
const iterator RegsBegin, RegsEnd;
|
||||||
const unsigned char *const RegSet;
|
const unsigned char *const RegSet;
|
||||||
const unsigned RegSetSize;
|
const unsigned RegSetSize;
|
||||||
public:
|
|
||||||
MCRegisterClass(unsigned id, const char *name,
|
|
||||||
unsigned RS, unsigned Al, int CC, bool Allocable,
|
|
||||||
iterator RB, iterator RE, const unsigned char *Bits,
|
|
||||||
unsigned NumBytes)
|
|
||||||
: ID(id), Name(name), RegSize(RS), Alignment(Al), CopyCost(CC),
|
|
||||||
Allocatable(Allocable), RegsBegin(RB), RegsEnd(RE), RegSet(Bits),
|
|
||||||
RegSetSize(NumBytes) {
|
|
||||||
for (iterator i = RegsBegin; i != RegsEnd; ++i)
|
|
||||||
assert(contains(*i) && "Bit field corrupted.");
|
|
||||||
}
|
|
||||||
|
|
||||||
/// getID() - Return the register class ID number.
|
/// getID() - Return the register class ID number.
|
||||||
///
|
///
|
||||||
|
@ -367,7 +367,7 @@ RegisterInfoEmitter::runMCDesc(raw_ostream &OS, CodeGenTarget &Target,
|
|||||||
|
|
||||||
for (unsigned rc = 0, e = RegisterClasses.size(); rc != e; ++rc) {
|
for (unsigned rc = 0, e = RegisterClasses.size(); rc != e; ++rc) {
|
||||||
const CodeGenRegisterClass &RC = *RegisterClasses[rc];
|
const CodeGenRegisterClass &RC = *RegisterClasses[rc];
|
||||||
OS << " MCRegisterClass(" << RC.getQualifiedName() + "RegClassID" << ", "
|
OS << " { " << RC.getQualifiedName() + "RegClassID" << ", "
|
||||||
<< '\"' << RC.getName() << "\", "
|
<< '\"' << RC.getName() << "\", "
|
||||||
<< RC.SpillSize/8 << ", "
|
<< RC.SpillSize/8 << ", "
|
||||||
<< RC.SpillAlignment/8 << ", "
|
<< RC.SpillAlignment/8 << ", "
|
||||||
@ -376,7 +376,7 @@ RegisterInfoEmitter::runMCDesc(raw_ostream &OS, CodeGenTarget &Target,
|
|||||||
<< RC.getName() << ", " << RC.getName() << " + "
|
<< RC.getName() << ", " << RC.getName() << " + "
|
||||||
<< RC.getOrder().size() << ", "
|
<< RC.getOrder().size() << ", "
|
||||||
<< RC.getName() << "Bits, sizeof(" << RC.getName() << "Bits)"
|
<< RC.getName() << "Bits, sizeof(" << RC.getName() << "Bits)"
|
||||||
<< "),\n";
|
<< " },\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
OS << "};\n\n";
|
OS << "};\n\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user