llvm.org GIT mirror llvm / 69ba413
Don't allow per-register spill size and alignment. These values were not used for anything. Spill size and alignment is a property of the register class, not the register. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129906 91177308-0d34-0410-b5e6-96231b3b80d8 Jakob Stoklund Olesen 9 years ago
3 changed file(s) with 0 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
3030 class Register {
3131 string Namespace = "";
3232 string AsmName = n;
33
34 // SpillSize - If this value is set to a non-zero value, it is the size in
35 // bits of the spill slot required to hold this register. If this value is
36 // set to zero, the information is inferred from any register classes the
37 // register belongs to.
38 int SpillSize = 0;
39
40 // SpillAlignment - This value is used to specify the alignment required for
41 // spilling the register. Like SpillSize, this should only be explicitly
42 // specified if the register is not in a register class.
43 int SpillAlignment = 0;
4433
4534 // Aliases - A list of registers that this register overlaps with. A read or
4635 // modification of this register can potentially read or modify the aliased
2828 struct CodeGenRegister {
2929 Record *TheDef;
3030 const std::string &getName() const;
31 unsigned DeclaredSpillSize, DeclaredSpillAlignment;
3231 unsigned EnumValue;
3332 unsigned CostPerUse;
3433 CodeGenRegister(Record *R);
169169 }
170170
171171 CodeGenRegister::CodeGenRegister(Record *R) : TheDef(R) {
172 DeclaredSpillSize = R->getValueAsInt("SpillSize");
173 DeclaredSpillAlignment = R->getValueAsInt("SpillAlignment");
174172 CostPerUse = R->getValueAsInt("CostPerUse");
175173 }
176174