27
27
#include " LiveRangeInfo.h"
28
28
#include " llvm/Pass.h"
29
29
#include " llvm/CodeGen/MachineBasicBlock.h"
30
- #include " llvm/Target/TargetRegInfo.h"
31
30
#include " llvm/Target/TargetMachine.h"
31
+ #include " llvm/Target/TargetRegInfo.h"
32
32
#include < map>
33
33
34
34
class MachineFunction ;
@@ -136,8 +136,9 @@ class PhyRegAlloc : public FunctionPass {
136
136
MachineBasicBlock::iterator& MII,
137
137
MachineBasicBlock &MBB, unsigned OpNum);
138
138
139
- // Method for inserting caller saving code. The caller must save all the
140
- // volatile registers live across a call.
139
+ // / Method for inserting caller saving code. The caller must save all the
140
+ // / volatile registers live across a call.
141
+ // /
141
142
void insertCallerSavingCode (std::vector<MachineInstr*>& instrnsBefore,
142
143
std::vector<MachineInstr*>& instrnsAfter,
143
144
MachineInstr *CallMI,
@@ -154,12 +155,12 @@ class PhyRegAlloc : public FunctionPass {
154
155
std::vector<MachineInstr*>& MIBef,
155
156
std::vector<MachineInstr*>& MIAft);
156
157
157
- // Callback method used to find unused registers.
158
- // LVSetBef is the live variable set to search for an unused register.
159
- // If it is not specified, the LV set before the current MI is used.
160
- // This is sufficient as long as no new copy instructions are generated
161
- // to copy the free register to memory.
162
- //
158
+ // / Callback method used to find unused registers.
159
+ // / LVSetBef is the live variable set to search for an unused register.
160
+ // / If it is not specified, the LV set before the current MI is used.
161
+ // / This is sufficient as long as no new copy instructions are generated
162
+ // / to copy the free register to memory.
163
+ // /
163
164
int getUnusedUniRegAtMI (RegClass *RC, int RegType,
164
165
const MachineInstr *MI,
165
166
const ValueSet *LVSetBef = 0 );
0 commit comments