mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Big bug fix: getUsableUniRegAtMI needed to return values in arguments
but did not pass the arguments by reference! Also added a function to get a register class by ID. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1901 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ce0845aeba
commit
705f95e0b7
@ -92,6 +92,17 @@ public:
|
||||
// main method called for allocating registers
|
||||
//
|
||||
void allocateRegisters();
|
||||
|
||||
|
||||
// access to register classes by class ID
|
||||
//
|
||||
const RegClass* getRegClassByID(unsigned int id) const {
|
||||
return RegClassList[id];
|
||||
}
|
||||
RegClass* getRegClassByID(unsigned int id) {
|
||||
return RegClassList[id]; }
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@ -133,8 +144,8 @@ private:
|
||||
|
||||
int getUsableUniRegAtMI(RegClass *RC, int RegType,
|
||||
const MachineInstr *MInst,
|
||||
const ValueSet *LVSetBef, MachineInstr *MIBef,
|
||||
MachineInstr *MIAft );
|
||||
const ValueSet *LVSetBef, MachineInstr *&MIBef,
|
||||
MachineInstr *&MIAft );
|
||||
|
||||
int getUnusedUniRegAtMI(RegClass *RC, const MachineInstr *MInst,
|
||||
const ValueSet *LVSetBef);
|
||||
|
@ -92,6 +92,17 @@ public:
|
||||
// main method called for allocating registers
|
||||
//
|
||||
void allocateRegisters();
|
||||
|
||||
|
||||
// access to register classes by class ID
|
||||
//
|
||||
const RegClass* getRegClassByID(unsigned int id) const {
|
||||
return RegClassList[id];
|
||||
}
|
||||
RegClass* getRegClassByID(unsigned int id) {
|
||||
return RegClassList[id]; }
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@ -133,8 +144,8 @@ private:
|
||||
|
||||
int getUsableUniRegAtMI(RegClass *RC, int RegType,
|
||||
const MachineInstr *MInst,
|
||||
const ValueSet *LVSetBef, MachineInstr *MIBef,
|
||||
MachineInstr *MIAft );
|
||||
const ValueSet *LVSetBef, MachineInstr *&MIBef,
|
||||
MachineInstr *&MIAft );
|
||||
|
||||
int getUnusedUniRegAtMI(RegClass *RC, const MachineInstr *MInst,
|
||||
const ValueSet *LVSetBef);
|
||||
|
Loading…
Reference in New Issue
Block a user