forked from OSchip/llvm-project
Add #includes neccesary since they were removed from .h files
llvm-svn: 1675
This commit is contained in:
parent
a8171dd554
commit
49562d8442
|
@ -1,4 +1,8 @@
|
||||||
#include "llvm/CodeGen/LiveRangeInfo.h"
|
#include "llvm/CodeGen/LiveRangeInfo.h"
|
||||||
|
#include "llvm/CodeGen/RegClass.h"
|
||||||
|
#include "llvm/CodeGen/MachineInstr.h"
|
||||||
|
#include "llvm/Target/TargetMachine.h"
|
||||||
|
#include "llvm/Method.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
using std::cerr;
|
using std::cerr;
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
#include "llvm/CodeGen/PhyRegAlloc.h"
|
#include "llvm/CodeGen/PhyRegAlloc.h"
|
||||||
#include "llvm/CodeGen/MachineInstr.h"
|
#include "llvm/CodeGen/MachineInstr.h"
|
||||||
#include "llvm/CodeGen/MachineCodeForMethod.h"
|
#include "llvm/CodeGen/MachineCodeForMethod.h"
|
||||||
|
#include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h"
|
||||||
#include "llvm/Target/TargetMachine.h"
|
#include "llvm/Target/TargetMachine.h"
|
||||||
#include "llvm/Target/MachineFrameInfo.h"
|
#include "llvm/Target/MachineFrameInfo.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -36,7 +37,7 @@ bool RegisterAllocation::runOnMethod(Method *M) {
|
||||||
cerr << "\n******************** Method "<< M->getName()
|
cerr << "\n******************** Method "<< M->getName()
|
||||||
<< " ********************\n";
|
<< " ********************\n";
|
||||||
|
|
||||||
MethodLiveVarInfo LVI(M ); // Analyze live varaibles
|
MethodLiveVarInfo LVI(M); // Analyze live varaibles
|
||||||
LVI.analyze();
|
LVI.analyze();
|
||||||
|
|
||||||
PhyRegAlloc PRA(M, Target, &LVI); // allocate registers
|
PhyRegAlloc PRA(M, Target, &LVI); // allocate registers
|
||||||
|
|
Loading…
Reference in New Issue