mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Move the list of registers into CodeGenRegBank.
Also move the sub-register index computations from RegisterInfoEmitter into CodeGenRegBank. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132865 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -66,10 +66,8 @@ class CodeGenTarget {
|
||||
|
||||
mutable DenseMap<const Record*, CodeGenInstruction*> Instructions;
|
||||
mutable CodeGenRegBank *RegBank;
|
||||
mutable std::vector<CodeGenRegister> Registers;
|
||||
mutable std::vector<CodeGenRegisterClass> RegisterClasses;
|
||||
mutable std::vector<MVT::SimpleValueType> LegalValueTypes;
|
||||
void ReadRegisters() const;
|
||||
void ReadRegisterClasses() const;
|
||||
void ReadInstructions() const;
|
||||
void ReadLegalValueTypes() const;
|
||||
@@ -101,8 +99,7 @@ public:
|
||||
CodeGenRegBank &getRegBank() const;
|
||||
|
||||
const std::vector<CodeGenRegister> &getRegisters() const {
|
||||
if (Registers.empty()) ReadRegisters();
|
||||
return Registers;
|
||||
return getRegBank().getRegisters();
|
||||
}
|
||||
|
||||
/// getRegisterByName - If there is a register with the specific AsmName,
|
||||
|
Reference in New Issue
Block a user