aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/BasicBlock.h
diff options
context:
space:
mode:
authorVladimir Prus <ghost@cs.msu.su>2006-06-08 15:46:18 +0000
committerVladimir Prus <ghost@cs.msu.su>2006-06-08 15:46:18 +0000
commitdd49dbfe44098eb53b1ac29f017e422147572bbb (patch)
tree693b5ff41aef2686e5c0c5bdf1abd66bb54ef2d1 /include/llvm/BasicBlock.h
parent7f3ac4108d3e8ad83ade659665d7346d6e1f3e5e (diff)
New method BasicBlock::getFirstNonPHI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r--include/llvm/BasicBlock.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index 7fcf8847bd..0f7b3e077e 100644
--- a/include/llvm/BasicBlock.h
+++ b/include/llvm/BasicBlock.h
@@ -91,7 +91,14 @@ public:
///
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.
///