forked from OSchip/llvm-project
parent
6a92fdef72
commit
e34ae99942
|
@ -24,8 +24,9 @@ namespace llvm {
|
|||
struct CodeGenRegister {
|
||||
Record *TheDef;
|
||||
const std::string &getName() const;
|
||||
unsigned DeclaredSpillSize, DeclaredSpillAlignment;
|
||||
|
||||
CodeGenRegister(Record *R) : TheDef(R) {}
|
||||
CodeGenRegister(Record *R);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -112,6 +112,11 @@ void CodeGenTarget::ReadRegisters() const {
|
|||
Registers.assign(Regs.begin(), Regs.end());
|
||||
}
|
||||
|
||||
CodeGenRegister::CodeGenRegister(Record *R) : TheDef(R) {
|
||||
DeclaredSpillSize = R->getValueAsInt("SpillSize");
|
||||
DeclaredSpillAlignment = R->getValueAsInt("SpillAlignment");
|
||||
}
|
||||
|
||||
const std::string &CodeGenRegister::getName() const {
|
||||
return TheDef->getName();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue