[llvm-commits] CVS: llvm/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp PhyRegAlloc.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 14 20:55:02 PST 2005
Changes in directory llvm/lib/Target/SparcV9/RegAlloc:
LiveRangeInfo.cpp updated: 1.56 -> 1.57
PhyRegAlloc.cpp updated: 1.165 -> 1.166
---
Log message:
This mega patch converts us from using Function::a{iterator|begin|end} to
using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*.
This patch is contributed by Gabor Greif, thanks!
---
Diffs of the changes: (+3 -3)
LiveRangeInfo.cpp | 2 +-
PhyRegAlloc.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp
diff -u llvm/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp:1.56 llvm/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp:1.57
--- llvm/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp:1.56 Wed Sep 1 17:55:36 2004
+++ llvm/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp Mon Mar 14 22:54:20 2005
@@ -150,7 +150,7 @@
// first find the live ranges for all incoming args of the function since
// those LRs start from the start of the function
- for (Function::const_aiterator AI = Meth->abegin(); AI != Meth->aend(); ++AI)
+ for (Function::const_arg_iterator AI = Meth->arg_begin(); AI != Meth->arg_end(); ++AI)
createNewLiveRange(AI, /*isCC*/ false);
// Now suggest hardware registers for these function args
Index: llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.165 llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.166
--- llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.165 Wed Sep 1 17:55:36 2004
+++ llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp Mon Mar 14 22:54:20 2005
@@ -317,7 +317,7 @@
// get the InSet of root BB
const ValueSet &InSet = LVI->getInSetOfBB(&Fn->front());
- for (Function::const_aiterator AI = Fn->abegin(); AI != Fn->aend(); ++AI) {
+ for (Function::const_arg_iterator AI = Fn->arg_begin(); AI != Fn->arg_end(); ++AI) {
// add interferences between args and LVars at start
addInterference(AI, &InSet, false);
@@ -1148,7 +1148,7 @@
std::vector<AllocInfo> &state = FnAllocState[Fn];
unsigned ArgNum = 0;
// Arguments encoded as instruction # -1
- for (Function::const_aiterator i=Fn->abegin (), e=Fn->aend (); i != e; ++i) {
+ for (Function::const_arg_iterator i=Fn->arg_begin (), e=Fn->arg_end (); i != e; ++i) {
const Argument *Arg = &*i;
saveStateForValue (state, Arg, -1, ArgNum);
++ArgNum;
More information about the llvm-commits
mailing list