aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/iOther.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-06-07 16:58:36 +0000
committerChris Lattner <sabre@nondot.org>2001-06-07 16:58:36 +0000
commitbbcfc51f3b2c483a8212205dbfae3b59400b306d (patch)
tree958fd67decec4388fbedac48dd590991327ac9cd /include/llvm/iOther.h
parent753bfecb77f908aa45d58cab7107a2730cc38d65 (diff)
downloadexternal_llvm-bbcfc51f3b2c483a8212205dbfae3b59400b306d.zip
external_llvm-bbcfc51f3b2c483a8212205dbfae3b59400b306d.tar.gz
external_llvm-bbcfc51f3b2c483a8212205dbfae3b59400b306d.tar.bz2
Fixes for BB iterators, additional methods added for DCE pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/iOther.h')
-rw-r--r--include/llvm/iOther.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/iOther.h b/include/llvm/iOther.h
index 4c06b4f..b66e4d4 100644
--- a/include/llvm/iOther.h
+++ b/include/llvm/iOther.h
@@ -50,7 +50,12 @@ public:
virtual bool setOperand(unsigned i, Value *Val);
virtual string getOpcode() const { return "phi"; }
+ // addIncoming - Add an incoming value to the end of the PHI list
void addIncoming(Value *D);
+
+ // removeIncomingValue - Remove an incoming value. This is useful if a
+ // predecessor basic block is deleted. The value removed is returned.
+ Value *removeIncomingValue(unsigned idx);
};