mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Stop LiveVariables from using BasicBlocks as part of the mapping, instead
use MachineBasicBlocks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13300 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -100,10 +100,9 @@ private:
|
|||||||
|
|
||||||
private: // Intermediate data structures
|
private: // Intermediate data structures
|
||||||
|
|
||||||
/// BBMap - Maps LLVM basic blocks to their corresponding machine basic block.
|
/// BBMap - This provides a numbering of the basic blocks in the function.
|
||||||
/// This also provides a numbering of the basic blocks in the function.
|
///
|
||||||
std::map<const BasicBlock*, std::pair<MachineBasicBlock*, unsigned> > BBMap;
|
std::map<MachineBasicBlock*, unsigned> BBMap;
|
||||||
|
|
||||||
|
|
||||||
/// BBIdxMap - This contains the inverse mapping of BBMap, going from block ID
|
/// BBIdxMap - This contains the inverse mapping of BBMap, going from block ID
|
||||||
/// numbers to the corresponding MachineBasicBlock. This is lazily computed
|
/// numbers to the corresponding MachineBasicBlock. This is lazily computed
|
||||||
@ -125,11 +124,8 @@ public:
|
|||||||
/// getMachineBasicBlockIndex - Turn a MachineBasicBlock into an index number
|
/// getMachineBasicBlockIndex - Turn a MachineBasicBlock into an index number
|
||||||
/// suitable for use with VarInfo's.
|
/// suitable for use with VarInfo's.
|
||||||
///
|
///
|
||||||
const std::pair<MachineBasicBlock*, unsigned>
|
unsigned getMachineBasicBlockIndex(MachineBasicBlock *MBB) const {
|
||||||
&getMachineBasicBlockInfo(MachineBasicBlock *MBB) const;
|
return BBMap.find(MBB)->second;
|
||||||
const std::pair<MachineBasicBlock*, unsigned>
|
|
||||||
&getBasicBlockInfo(const BasicBlock *BB) const {
|
|
||||||
return BBMap.find(BB)->second;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getIndexMachineBasicBlock() - Given a block index, return the
|
/// getIndexMachineBasicBlock() - Given a block index, return the
|
||||||
@ -269,7 +265,7 @@ public:
|
|||||||
return AllocatablePhysicalRegisters;
|
return AllocatablePhysicalRegisters;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MarkVirtRegAliveInBlock(VarInfo &VRInfo, const BasicBlock *BB);
|
void MarkVirtRegAliveInBlock(VarInfo &VRInfo, MachineBasicBlock *BB);
|
||||||
void HandleVirtRegUse(VarInfo &VRInfo, MachineBasicBlock *MBB,
|
void HandleVirtRegUse(VarInfo &VRInfo, MachineBasicBlock *MBB,
|
||||||
MachineInstr *MI);
|
MachineInstr *MI);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user