mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Read in declared reg sizes
llvm-svn: 15960
This commit is contained in:
parent
b85cd02a4e
commit
820f674293
@ -24,8 +24,9 @@ namespace llvm {
|
|||||||
struct CodeGenRegister {
|
struct CodeGenRegister {
|
||||||
Record *TheDef;
|
Record *TheDef;
|
||||||
const std::string &getName() const;
|
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());
|
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 {
|
const std::string &CodeGenRegister::getName() const {
|
||||||
return TheDef->getName();
|
return TheDef->getName();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user