mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-27 09:17:11 +00:00
Move unused typedefs in private section. Add method to return interval
given a register. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11608 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -85,8 +85,6 @@ namespace llvm {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef std::list<Interval> Intervals;
|
typedef std::list<Interval> Intervals;
|
||||||
typedef std::map<unsigned, unsigned> Reg2RegMap;
|
|
||||||
typedef std::vector<MachineBasicBlock*> MachineBasicBlockPtrs;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MachineFunction* mf_;
|
MachineFunction* mf_;
|
||||||
@@ -108,6 +106,7 @@ namespace llvm {
|
|||||||
typedef std::map<unsigned, Intervals::iterator> Reg2IntervalMap;
|
typedef std::map<unsigned, Intervals::iterator> Reg2IntervalMap;
|
||||||
Reg2IntervalMap r2iMap_;
|
Reg2IntervalMap r2iMap_;
|
||||||
|
|
||||||
|
typedef std::map<unsigned, unsigned> Reg2RegMap;
|
||||||
Reg2RegMap r2rMap_;
|
Reg2RegMap r2rMap_;
|
||||||
|
|
||||||
Intervals intervals_;
|
Intervals intervals_;
|
||||||
@@ -119,6 +118,11 @@ namespace llvm {
|
|||||||
/// runOnMachineFunction - pass entry point
|
/// runOnMachineFunction - pass entry point
|
||||||
virtual bool runOnMachineFunction(MachineFunction&);
|
virtual bool runOnMachineFunction(MachineFunction&);
|
||||||
|
|
||||||
|
Interval& getInterval(unsigned reg) {
|
||||||
|
assert(r2iMap_.count(reg)&& "Interval does not exist for register");
|
||||||
|
return *r2iMap_.find(reg)->second;
|
||||||
|
}
|
||||||
|
|
||||||
unsigned getInstructionIndex(MachineInstr* instr) const;
|
unsigned getInstructionIndex(MachineInstr* instr) const;
|
||||||
|
|
||||||
MachineInstr* getInstructionFromIndex(unsigned index) const;
|
MachineInstr* getInstructionFromIndex(unsigned index) const;
|
||||||
|
|||||||
@@ -85,8 +85,6 @@ namespace llvm {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef std::list<Interval> Intervals;
|
typedef std::list<Interval> Intervals;
|
||||||
typedef std::map<unsigned, unsigned> Reg2RegMap;
|
|
||||||
typedef std::vector<MachineBasicBlock*> MachineBasicBlockPtrs;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MachineFunction* mf_;
|
MachineFunction* mf_;
|
||||||
@@ -108,6 +106,7 @@ namespace llvm {
|
|||||||
typedef std::map<unsigned, Intervals::iterator> Reg2IntervalMap;
|
typedef std::map<unsigned, Intervals::iterator> Reg2IntervalMap;
|
||||||
Reg2IntervalMap r2iMap_;
|
Reg2IntervalMap r2iMap_;
|
||||||
|
|
||||||
|
typedef std::map<unsigned, unsigned> Reg2RegMap;
|
||||||
Reg2RegMap r2rMap_;
|
Reg2RegMap r2rMap_;
|
||||||
|
|
||||||
Intervals intervals_;
|
Intervals intervals_;
|
||||||
@@ -119,6 +118,11 @@ namespace llvm {
|
|||||||
/// runOnMachineFunction - pass entry point
|
/// runOnMachineFunction - pass entry point
|
||||||
virtual bool runOnMachineFunction(MachineFunction&);
|
virtual bool runOnMachineFunction(MachineFunction&);
|
||||||
|
|
||||||
|
Interval& getInterval(unsigned reg) {
|
||||||
|
assert(r2iMap_.count(reg)&& "Interval does not exist for register");
|
||||||
|
return *r2iMap_.find(reg)->second;
|
||||||
|
}
|
||||||
|
|
||||||
unsigned getInstructionIndex(MachineInstr* instr) const;
|
unsigned getInstructionIndex(MachineInstr* instr) const;
|
||||||
|
|
||||||
MachineInstr* getInstructionFromIndex(unsigned index) const;
|
MachineInstr* getInstructionFromIndex(unsigned index) const;
|
||||||
|
|||||||
@@ -85,8 +85,6 @@ namespace llvm {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef std::list<Interval> Intervals;
|
typedef std::list<Interval> Intervals;
|
||||||
typedef std::map<unsigned, unsigned> Reg2RegMap;
|
|
||||||
typedef std::vector<MachineBasicBlock*> MachineBasicBlockPtrs;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MachineFunction* mf_;
|
MachineFunction* mf_;
|
||||||
@@ -108,6 +106,7 @@ namespace llvm {
|
|||||||
typedef std::map<unsigned, Intervals::iterator> Reg2IntervalMap;
|
typedef std::map<unsigned, Intervals::iterator> Reg2IntervalMap;
|
||||||
Reg2IntervalMap r2iMap_;
|
Reg2IntervalMap r2iMap_;
|
||||||
|
|
||||||
|
typedef std::map<unsigned, unsigned> Reg2RegMap;
|
||||||
Reg2RegMap r2rMap_;
|
Reg2RegMap r2rMap_;
|
||||||
|
|
||||||
Intervals intervals_;
|
Intervals intervals_;
|
||||||
@@ -119,6 +118,11 @@ namespace llvm {
|
|||||||
/// runOnMachineFunction - pass entry point
|
/// runOnMachineFunction - pass entry point
|
||||||
virtual bool runOnMachineFunction(MachineFunction&);
|
virtual bool runOnMachineFunction(MachineFunction&);
|
||||||
|
|
||||||
|
Interval& getInterval(unsigned reg) {
|
||||||
|
assert(r2iMap_.count(reg)&& "Interval does not exist for register");
|
||||||
|
return *r2iMap_.find(reg)->second;
|
||||||
|
}
|
||||||
|
|
||||||
unsigned getInstructionIndex(MachineInstr* instr) const;
|
unsigned getInstructionIndex(MachineInstr* instr) const;
|
||||||
|
|
||||||
MachineInstr* getInstructionFromIndex(unsigned index) const;
|
MachineInstr* getInstructionFromIndex(unsigned index) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user