aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-02-26 23:20:08 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-02-26 23:20:08 +0000
commit272940884048c893b554d0747966d8da2f104043 (patch)
tree42d0c7a1da2dfd960669648548641f3e0b33b1fa /include/llvm
parent412926edf7a8ab605139edc7c5c9b8bcb29d8c3f (diff)
downloadexternal_llvm-272940884048c893b554d0747966d8da2f104043.zip
external_llvm-272940884048c893b554d0747966d8da2f104043.tar.gz
external_llvm-272940884048c893b554d0747966d8da2f104043.tar.bz2
Doxygenify and tersify comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/iPHINode.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/iPHINode.h b/include/llvm/iPHINode.h
index 399c761..8899dd9 100644
--- a/include/llvm/iPHINode.h
+++ b/include/llvm/iPHINode.h
@@ -38,11 +38,12 @@ public:
virtual Instruction *clone() const { return new PHINode(*this); }
- /// getNumIncomingValues - Return the number of incoming edges the PHI node
- /// has
+ /// getNumIncomingValues - Return the number of incoming edges
+ ///
unsigned getNumIncomingValues() const { return Operands.size()/2; }
/// getIncomingValue - Return incoming value #x
+ ///
Value *getIncomingValue(unsigned i) const {
assert(i*2 < Operands.size() && "Invalid value number!");
return Operands[i*2];
@@ -56,6 +57,7 @@ public:
}
/// getIncomingBlock - Return incoming basic block #x
+ ///
BasicBlock *getIncomingBlock(unsigned i) const {
assert(i*2+1 < Operands.size() && "Invalid value number!");
return reinterpret_cast<BasicBlock*>(Operands[i*2+1].get());
@@ -69,6 +71,7 @@ public:
}
/// addIncoming - Add an incoming value to the end of the PHI list
+ ///
void addIncoming(Value *D, BasicBlock *BB) {
assert(getType() == D->getType() &&
"All operands to PHI node must be the same type as the PHI node!");