mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Read in declared reg sizes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15960 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b4d83c1f2c
commit
7a680c6064
@ -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
Block a user