mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Now that we have happy mappings from MBBs->numbers, use them instead of keeping
a LV private map git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14522 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -99,16 +99,6 @@ private:
|
|||||||
std::vector<bool> AllocatablePhysicalRegisters;
|
std::vector<bool> AllocatablePhysicalRegisters;
|
||||||
|
|
||||||
private: // Intermediate data structures
|
private: // Intermediate data structures
|
||||||
|
|
||||||
/// BBMap - This provides a numbering of the basic blocks in the function.
|
|
||||||
///
|
|
||||||
std::map<MachineBasicBlock*, unsigned> BBMap;
|
|
||||||
|
|
||||||
/// BBIdxMap - This contains the inverse mapping of BBMap, going from block ID
|
|
||||||
/// numbers to the corresponding MachineBasicBlock. This is lazily computed
|
|
||||||
/// when the getIndexMachineBasicBlock() method is called.
|
|
||||||
std::vector<MachineBasicBlock*> BBIdxMap;
|
|
||||||
|
|
||||||
const MRegisterInfo *RegInfo;
|
const MRegisterInfo *RegInfo;
|
||||||
|
|
||||||
MachineInstr **PhysRegInfo;
|
MachineInstr **PhysRegInfo;
|
||||||
@@ -121,17 +111,6 @@ public:
|
|||||||
|
|
||||||
virtual bool runOnMachineFunction(MachineFunction &MF);
|
virtual bool runOnMachineFunction(MachineFunction &MF);
|
||||||
|
|
||||||
/// getMachineBasicBlockIndex - Turn a MachineBasicBlock into an index number
|
|
||||||
/// suitable for use with VarInfo's.
|
|
||||||
///
|
|
||||||
unsigned getMachineBasicBlockIndex(MachineBasicBlock *MBB) const {
|
|
||||||
return BBMap.find(MBB)->second;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// getIndexMachineBasicBlock() - Given a block index, return the
|
|
||||||
/// MachineBasicBlock corresponding to it.
|
|
||||||
MachineBasicBlock *getIndexMachineBasicBlock(unsigned Idx);
|
|
||||||
|
|
||||||
/// killed_iterator - Iterate over registers killed by a machine instruction
|
/// killed_iterator - Iterate over registers killed by a machine instruction
|
||||||
///
|
///
|
||||||
typedef std::multimap<MachineInstr*, unsigned>::iterator killed_iterator;
|
typedef std::multimap<MachineInstr*, unsigned>::iterator killed_iterator;
|
||||||
@@ -253,8 +232,6 @@ public:
|
|||||||
VirtRegInfo.clear();
|
VirtRegInfo.clear();
|
||||||
RegistersKilled.clear();
|
RegistersKilled.clear();
|
||||||
RegistersDead.clear();
|
RegistersDead.clear();
|
||||||
BBMap.clear();
|
|
||||||
BBIdxMap.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getVarInfo - Return the VarInfo structure for the specified VIRTUAL
|
/// getVarInfo - Return the VarInfo structure for the specified VIRTUAL
|
||||||
|
Reference in New Issue
Block a user