#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>
using std::cerr;
#include <iostream>
using std::cerr;
#include "llvm/CodeGen/PhyRegAlloc.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineCodeForMethod.h"
#include "llvm/CodeGen/PhyRegAlloc.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineCodeForMethod.h"
+#include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/MachineFrameInfo.h"
#include <iostream>
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/MachineFrameInfo.h"
#include <iostream>
cerr << "\n******************** Method "<< M->getName()
<< " ********************\n";
cerr << "\n******************** Method "<< M->getName()
<< " ********************\n";
- MethodLiveVarInfo LVI(M ); // Analyze live varaibles
+ MethodLiveVarInfo LVI(M); // Analyze live varaibles
LVI.analyze();
PhyRegAlloc PRA(M, Target, &LVI); // allocate registers
LVI.analyze();
PhyRegAlloc PRA(M, Target, &LVI); // allocate registers
#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>
using std::cerr;
#include <iostream>
using std::cerr;
#include "llvm/CodeGen/PhyRegAlloc.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineCodeForMethod.h"
#include "llvm/CodeGen/PhyRegAlloc.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineCodeForMethod.h"
+#include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/MachineFrameInfo.h"
#include <iostream>
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/MachineFrameInfo.h"
#include <iostream>
cerr << "\n******************** Method "<< M->getName()
<< " ********************\n";
cerr << "\n******************** Method "<< M->getName()
<< " ********************\n";
- MethodLiveVarInfo LVI(M ); // Analyze live varaibles
+ MethodLiveVarInfo LVI(M); // Analyze live varaibles
LVI.analyze();
PhyRegAlloc PRA(M, Target, &LVI); // allocate registers
LVI.analyze();
PhyRegAlloc PRA(M, Target, &LVI); // allocate registers