Give InsertCodeForPhis() a new documentation comment.

llvm-svn: 13896
This commit is contained in:
Brian Gaeke 2004-05-29 22:20:59 +00:00
parent fd735bcf28
commit 7fa398d850
1 changed files with 7 additions and 9 deletions

View File

@ -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();