diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-02-26 23:20:08 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-02-26 23:20:08 +0000 |
commit | 272940884048c893b554d0747966d8da2f104043 (patch) | |
tree | 42d0c7a1da2dfd960669648548641f3e0b33b1fa /include/llvm | |
parent | 412926edf7a8ab605139edc7c5c9b8bcb29d8c3f (diff) | |
download | external_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.h | 7 |
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!"); |