[llvm-commits] CVS: llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 27 19:42:04 PST 2002
Changes in directory llvm/lib/CodeGen/InstrSelection:
InstrSelection.cpp updated: 1.49 -> 1.50
---
Log message:
Rename MachineCodeForBasicBlock to MachineBasicBlock
---
Diffs of the changes:
Index: llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp
diff -u llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp:1.49 llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp:1.50
--- llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp:1.49 Sun Oct 27 18:27:19 2002
+++ llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp Sun Oct 27 19:41:19 2002
@@ -11,7 +11,7 @@
#include "llvm/CodeGen/InstrSelectionSupport.h"
#include "llvm/CodeGen/InstrForest.h"
#include "llvm/CodeGen/MachineCodeForInstruction.h"
-#include "llvm/CodeGen/MachineCodeForBasicBlock.h"
+#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/Target/MachineRegInfo.h"
#include "llvm/Target/TargetMachine.h"
@@ -145,7 +145,7 @@
for (Function::iterator BI = F.begin(), BE = F.end(); BI != BE; ++BI)
for (BasicBlock::iterator II = BI->begin(); II != BI->end(); ++II) {
MachineCodeForInstruction &mvec = MachineCodeForInstruction::get(II);
- MachineCodeForBasicBlock &MCBB = MachineCodeForBasicBlock::get(BI);
+ MachineBasicBlock &MCBB = MachineBasicBlock::get(BI);
MCBB.insert(MCBB.end(), mvec.begin(), mvec.end());
}
@@ -205,7 +205,7 @@
Target.getRegInfo().cpValue2Value(PhiCpRes, PN, mvec);
// get an iterator to machine instructions in the BB
- MachineCodeForBasicBlock& bbMvec = MachineCodeForBasicBlock::get(BB);
+ MachineBasicBlock& bbMvec = MachineBasicBlock::get(BB);
bbMvec.insert(bbMvec.begin(), mvec.begin(), mvec.end());
} // for each Phi Instr in BB
@@ -227,11 +227,11 @@
assert (FirstMIOfTerm && "No Machine Instrs for terminator");
- MachineCodeForBasicBlock &bbMvec = MachineCodeForBasicBlock::get(BB);
+ MachineBasicBlock &bbMvec = MachineBasicBlock::get(BB);
// find the position of first machine instruction generated by the
// terminator of this BB
- MachineCodeForBasicBlock::iterator MCIt =
+ MachineBasicBlock::iterator MCIt =
std::find(bbMvec.begin(), bbMvec.end(), FirstMIOfTerm);
assert( MCIt != bbMvec.end() && "Start inst of terminator not found");
More information about the llvm-commits
mailing list