[llvm-commits] CVS: llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp PhyRegAlloc.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 27 19:42:15 PST 2002
Changes in directory llvm/lib/CodeGen/RegAlloc:
LiveRangeInfo.cpp updated: 1.29 -> 1.30
PhyRegAlloc.cpp updated: 1.80 -> 1.81
---
Log message:
(null)
---
Diffs of the changes:
Index: llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp
diff -u llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp:1.29 llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp:1.30
--- llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp:1.29 Sat Sep 28 12:05:22 2002
+++ llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp Sun Oct 27 19:41:26 2002
@@ -8,7 +8,7 @@
#include "llvm/CodeGen/RegAllocCommon.h"
#include "llvm/CodeGen/RegClass.h"
#include "llvm/CodeGen/MachineInstr.h"
-#include "llvm/CodeGen/MachineCodeForBasicBlock.h"
+#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Function.h"
#include "llvm/BasicBlock.h"
@@ -148,10 +148,10 @@
//
for (Function::const_iterator BBI=Meth->begin(); BBI != Meth->end(); ++BBI){
// get the vector of machine instructions for this basic block.
- MachineCodeForBasicBlock& MIVec = MachineCodeForBasicBlock::get(BBI);
+ MachineBasicBlock& MIVec = MachineBasicBlock::get(BBI);
// iterate over all the machine instructions in BB
- for(MachineCodeForBasicBlock::iterator MInstIterator = MIVec.begin();
+ for(MachineBasicBlock::iterator MInstIterator = MIVec.begin();
MInstIterator != MIVec.end(); ++MInstIterator) {
MachineInstr *MInst = *MInstIterator;
@@ -252,12 +252,11 @@
BBI != BBE; ++BBI) {
// get the iterator for machine instructions
- const MachineCodeForBasicBlock& MIVec = MachineCodeForBasicBlock::get(BBI);
- MachineCodeForBasicBlock::const_iterator MInstIterator = MIVec.begin();
+ const MachineBasicBlock& MIVec = MachineBasicBlock::get(BBI);
+ MachineBasicBlock::const_iterator MInstIterator = MIVec.begin();
// iterate over all the machine instructions in BB
for( ; MInstIterator != MIVec.end(); ++MInstIterator) {
-
const MachineInstr * MInst = *MInstIterator;
if( DEBUG_RA >= RA_DEBUG_LiveRanges) {
Index: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.80 llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.81
--- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.80 Sun Oct 27 18:27:55 2002
+++ llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp Sun Oct 27 19:41:27 2002
@@ -9,7 +9,7 @@
#include "llvm/CodeGen/PhyRegAlloc.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrAnnot.h"
-#include "llvm/CodeGen/MachineCodeForBasicBlock.h"
+#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h"
#include "llvm/Analysis/LoopInfo.h"
@@ -275,8 +275,8 @@
// get the iterator for machine instructions
//
- const MachineCodeForBasicBlock& MIVec = MachineCodeForBasicBlock::get(BBI);
- MachineCodeForBasicBlock::const_iterator MII = MIVec.begin();
+ const MachineBasicBlock& MIVec = MachineBasicBlock::get(BBI);
+ MachineBasicBlock::const_iterator MII = MIVec.begin();
// iterate over all the machine instructions in BB
//
@@ -420,8 +420,8 @@
//-----------------------------
inline void
InsertBefore(MachineInstr* newMI,
- MachineCodeForBasicBlock& MIVec,
- MachineCodeForBasicBlock::iterator& MII)
+ MachineBasicBlock& MIVec,
+ MachineBasicBlock::iterator& MII)
{
MII = MIVec.insert(MII, newMI);
++MII;
@@ -429,8 +429,8 @@
inline void
InsertAfter(MachineInstr* newMI,
- MachineCodeForBasicBlock& MIVec,
- MachineCodeForBasicBlock::iterator& MII)
+ MachineBasicBlock& MIVec,
+ MachineBasicBlock::iterator& MII)
{
++MII; // insert before the next instruction
MII = MIVec.insert(MII, newMI);
@@ -438,16 +438,16 @@
inline void
SubstituteInPlace(MachineInstr* newMI,
- MachineCodeForBasicBlock& MIVec,
- MachineCodeForBasicBlock::iterator MII)
+ MachineBasicBlock& MIVec,
+ MachineBasicBlock::iterator MII)
{
*MII = newMI;
}
inline void
PrependInstructions(vector<MachineInstr *> &IBef,
- MachineCodeForBasicBlock& MIVec,
- MachineCodeForBasicBlock::iterator& MII,
+ MachineBasicBlock& MIVec,
+ MachineBasicBlock::iterator& MII,
const std::string& msg)
{
if (!IBef.empty())
@@ -467,8 +467,8 @@
inline void
AppendInstructions(std::vector<MachineInstr *> &IAft,
- MachineCodeForBasicBlock& MIVec,
- MachineCodeForBasicBlock::iterator& MII,
+ MachineBasicBlock& MIVec,
+ MachineBasicBlock::iterator& MII,
const std::string& msg)
{
if (!IAft.empty())
@@ -489,10 +489,10 @@
void PhyRegAlloc::updateMachineCode()
{
- MachineCodeForBasicBlock& MIVec = MachineCodeForBasicBlock::get(&Meth->getEntryNode());
+ MachineBasicBlock& MIVec = MachineBasicBlock::get(&Meth->getEntryNode());
// Insert any instructions needed at method entry
- MachineCodeForBasicBlock::iterator MII = MIVec.begin();
+ MachineBasicBlock::iterator MII = MIVec.begin();
PrependInstructions(AddedInstrAtEntry.InstrnsBefore, MIVec, MII,
"At function entry: \n");
assert(AddedInstrAtEntry.InstrnsAfter.empty() &&
@@ -503,8 +503,8 @@
BBI != BBE; ++BBI) {
// iterate over all the machine instructions in BB
- MachineCodeForBasicBlock &MIVec = MachineCodeForBasicBlock::get(BBI);
- for (MachineCodeForBasicBlock::iterator MII = MIVec.begin();
+ MachineBasicBlock &MIVec = MachineBasicBlock::get(BBI);
+ for (MachineBasicBlock::iterator MII = MIVec.begin();
MII != MIVec.end(); ++MII) {
MachineInstr *MInst = *MII;
@@ -958,8 +958,8 @@
cerr << "\n"; printLabel(BBI); cerr << ": ";
// get the iterator for machine instructions
- MachineCodeForBasicBlock& MIVec = MachineCodeForBasicBlock::get(BBI);
- MachineCodeForBasicBlock::iterator MII = MIVec.begin();
+ MachineBasicBlock& MIVec = MachineBasicBlock::get(BBI);
+ MachineBasicBlock::iterator MII = MIVec.begin();
// iterate over all the machine instructions in BB
for ( ; MII != MIVec.end(); ++MII) {
@@ -1039,7 +1039,7 @@
void PhyRegAlloc::colorIncomingArgs()
{
const BasicBlock &FirstBB = Meth->front();
- const MachineInstr *FirstMI = MachineCodeForBasicBlock::get(&FirstBB).front();
+ const MachineInstr *FirstMI = MachineBasicBlock::get(&FirstBB).front();
assert(FirstMI && "No machine instruction in entry BB");
MRI.colorMethodArgs(Meth, LRI, &AddedInstrAtEntry);
More information about the llvm-commits
mailing list