mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Give InsertCodeForPhis() a new documentation comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13896 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
38af59a43c
commit
20ab71086e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user