Changes in directory llvm/include/llvm:
BasicBlock.h updated: 1.58 -> 1.59 --- Log message: New method BasicBlock::getFirstNonPHI. --- Diffs of the changes: (+8 -1) BasicBlock.h | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletion(-) Index: llvm/include/llvm/BasicBlock.h diff -u llvm/include/llvm/BasicBlock.h:1.58 llvm/include/llvm/BasicBlock.h:1.59 --- llvm/include/llvm/BasicBlock.h:1.58 Mon Jun 5 11:29:06 2006 +++ llvm/include/llvm/BasicBlock.h Thu Jun 8 10:46:17 2006 @@ -91,7 +91,14 @@ /// TerminatorInst *getTerminator(); const TerminatorInst *const getTerminator() const; - + + /// Returns a pointer to the first instructon in this block that is not a + /// PHINode instruction. When adding instruction to the beginning of the + /// basic block, they should be added before the returned value, not before + /// the first instruction, which might be PHI. + /// Returns 0 is there's no non-PHI instruction. + Instruction* getFirstNonPHI(); + /// removeFromParent - This method unlinks 'this' from the containing /// function, but does not delete it. /// _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits