8000 * Fix order of #include files · inside-compiler/llvm-project@dc07775 · GitHub
[go: up one dir, main page]

Skip to content

Commit dc07775

Browse files
committed
* Fix order of #include files
* Doxygen-ify method comments llvm-svn: 9432
1 parent 0b624fe commit dc07775

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,29 @@
2020
//
2121
//===----------------------------------------------------------------------===//
2222

23+
#include "IGNode.h"
2324
#include "PhyRegAlloc.h"
2425
#include "RegAllocCommon.h"
2526
#include "RegClass.h"
26-
#include "IGNode.h"
27+
#include "llvm/Constants.h"
28+
#include "llvm/DerivedTypes.h"
29+
#include "llvm/iOther.h"
30+
#include "llvm/Module.h"
31+
#include "llvm/Type.h"
32+
#include "llvm/Analysis/LoopInfo.h"
2733
#include "llvm/CodeGen/FunctionLiveVarInfo.h"
2834
#include "llvm/CodeGen/InstrSelection.h"
35+
#include "llvm/CodeGen/MachineFunction.h"
36+
#include "llvm/CodeGen/MachineFunctionInfo.h"
2937
#include "llvm/CodeGen/MachineInstr.h"
3038
#include "llvm/CodeGen/MachineInstrBuilder.h"
3139
#include "llvm/CodeGen/MachineInstrAnnot.h"
32-
#include "llvm/CodeGen/MachineFunction.h"
33-
#include "llvm/CodeGen/MachineFunctionInfo.h"
3440
#include "llvm/CodeGen/Passes.h"
35-
#include "llvm/Analysis/LoopInfo.h"
36-
#include "llvm/Target/TargetInstrInfo.h"
37-
#include "llvm/Type.h"
38-
#include "llvm/iOther.h"
39-
#include "llvm/DerivedTypes.h"
40-
#include "llvm/Constants.h"
41-
#include "llvm/Module.h"
4241
#include "llvm/Support/InstIterator.h"
43-
#include "Support/STLExtras.h"
44-
#include "Support/SetOperations.h"
42+
#include "llvm/Target/TargetInstrInfo.h"
4543
#include "Support/CommandLine.h"
44+
#include "Support/SetOperations.h"
45+
#include "Support/STLExtras.h"
4646
#include <cmath>
4747

4848
RegAllocDebugLevel_t DEBUG_RA;

llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
#include "LiveRangeInfo.h"
2828
#include "llvm/Pass.h"
2929
#include "llvm/CodeGen/MachineBasicBlock.h"
30-
#include "llvm/Target/TargetRegInfo.h"
3130
#include "llvm/Target/TargetMachine.h"
31+
#include "llvm/Target/TargetRegInfo.h"
3232
#include <map>
3333

3434
class MachineFunction;
@@ -136,8 +136,9 @@ class PhyRegAlloc : public FunctionPass {
136136
MachineBasicBlock::iterator& MII,
137137
MachineBasicBlock &MBB, unsigned OpNum);
138138

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+
///
141142
void insertCallerSavingCode(std::vector<MachineInstr*>& instrnsBefore,
142143
std::vector<MachineInstr*>& instrnsAfter,
143144
MachineInstr *CallMI,
@@ -154,12 +155,12 @@ class PhyRegAlloc : public FunctionPass {
154155
std::vector<MachineInstr*>& MIBef,
155156
std::vector<MachineInstr*>& MIAft);
156157

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+
///
163164
int getUnusedUniRegAtMI(RegClass *RC, int RegType,
164165
const MachineInstr *MI,
165166
const ValueSet *LVSetBef = 0);

0 commit comments

Comments
 (0)
0