mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Remove the TargetMachine forwards for TargetSubtargetInfo based
information and update all callers. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
+16
-23
@@ -40,16 +40,11 @@ STATISTIC(NumRepairs, "Number of invalid live ranges repaired");
|
||||
// Split Analysis
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
SplitAnalysis::SplitAnalysis(const VirtRegMap &vrm,
|
||||
const LiveIntervals &lis,
|
||||
SplitAnalysis::SplitAnalysis(const VirtRegMap &vrm, const LiveIntervals &lis,
|
||||
const MachineLoopInfo &mli)
|
||||
: MF(vrm.getMachineFunction()),
|
||||
VRM(vrm),
|
||||
LIS(lis),
|
||||
Loops(mli),
|
||||
TII(*MF.getTarget().getInstrInfo()),
|
||||
CurLI(nullptr),
|
||||
LastSplitPoint(MF.getNumBlockIDs()) {}
|
||||
: MF(vrm.getMachineFunction()), VRM(vrm), LIS(lis), Loops(mli),
|
||||
TII(*MF.getTarget().getSubtargetImpl()->getInstrInfo()), CurLI(nullptr),
|
||||
LastSplitPoint(MF.getNumBlockIDs()) {}
|
||||
|
||||
void SplitAnalysis::clear() {
|
||||
UseSlots.clear();
|
||||
@@ -321,22 +316,20 @@ void SplitAnalysis::analyze(const LiveInterval *li) {
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// Create a new SplitEditor for editing the LiveInterval analyzed by SA.
|
||||
SplitEditor::SplitEditor(SplitAnalysis &sa,
|
||||
LiveIntervals &lis,
|
||||
VirtRegMap &vrm,
|
||||
SplitEditor::SplitEditor(SplitAnalysis &sa, LiveIntervals &lis, VirtRegMap &vrm,
|
||||
MachineDominatorTree &mdt,
|
||||
MachineBlockFrequencyInfo &mbfi)
|
||||
: SA(sa), LIS(lis), VRM(vrm),
|
||||
MRI(vrm.getMachineFunction().getRegInfo()),
|
||||
MDT(mdt),
|
||||
TII(*vrm.getMachineFunction().getTarget().getInstrInfo()),
|
||||
TRI(*vrm.getMachineFunction().getTarget().getRegisterInfo()),
|
||||
MBFI(mbfi),
|
||||
Edit(nullptr),
|
||||
OpenIdx(0),
|
||||
SpillMode(SM_Partition),
|
||||
RegAssign(Allocator)
|
||||
{}
|
||||
: SA(sa), LIS(lis), VRM(vrm), MRI(vrm.getMachineFunction().getRegInfo()),
|
||||
MDT(mdt), TII(*vrm.getMachineFunction()
|
||||
.getTarget()
|
||||
.getSubtargetImpl()
|
||||
->getInstrInfo()),
|
||||
TRI(*vrm.getMachineFunction()
|
||||
.getTarget()
|
||||
.getSubtargetImpl()
|
||||
->getRegisterInfo()),
|
||||
MBFI(mbfi), Edit(nullptr), OpenIdx(0), SpillMode(SM_Partition),
|
||||
RegAssign(Allocator) {}
|
||||
|
||||
void SplitEditor::reset(LiveRangeEdit &LRE, ComplementSpillMode SM) {
|
||||
Edit = &LRE;
|
||||
|
||||
Reference in New Issue
Block a user