aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-05-29 22:20:59 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-05-29 22:20:59 +0000
commit20ab71086e2adf3cbd50264882a624150111d75c (patch)
treedaa0f64d38c9acd7128970431655578604dadd28
parent38af59a43c4176d8f34bd26faeb18b23080a1d9b (diff)
Give InsertCodeForPhis() a new documentation comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13896 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/SparcV9/InstrSelection/InstrSelection.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
index db7478a4b4..b7029db58b 100644
--- a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
+++ b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
@@ -207,15 +207,13 @@ bool InstructionSelection::runOnFunction(Function &F) {
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();