[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-commits
Subject:    [llvm-commits] CVS: llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
From:       Brian Gaeke <gaeke () cs ! uiuc ! edu>
Date:       2004-05-29 17:23:01
Message-ID: 200405292221.RAA17574 () kain ! cs ! uiuc ! edu
[Download RAW message or body]


Changes in directory llvm/lib/Target/SparcV9/InstrSelection:

InstrSelection.cpp updated: 1.73 -> 1.74

---
Log message:

Give InsertCodeForPhis() a new documentation comment.


---
Diffs of the changes:  (+7 -9)

Index: llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
diff -u llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp:1.73 \
                llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp:1.74
--- llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp:1.73	Fri May 28 \
                14:34:00 2004
+++ llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp	Sat May 29 17:20:59 \
2004 @@ -207,15 +207,13 @@
   return true;
 }
 
-
-//-------------------------------------------------------------------------
-// This method inserts phi elimination code for all BBs in a method
-//-------------------------------------------------------------------------
-
-void
-InstructionSelection::InsertCodeForPhis(Function &F) {
-  // for all basic blocks in function
-  //
+/// InsertCodeForPhis - This method inserts Phi elimination code for
+/// all Phi nodes in the given function.  After this method is called,
+/// the Phi nodes still exist in the LLVM code, but copies are added to the
+/// machine code.
+///
+void InstructionSelection::InsertCodeForPhis(Function &F) {
+  // Iterate over every Phi node PN in F:
   MachineFunction &MF = MachineFunction::get(&F);
   for (MachineFunction::iterator BB = MF.begin(); BB != MF.end(); ++BB) {
     for (BasicBlock::const_iterator IIt = BB->getBasicBlock()->begin();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic