1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Doxygenify and tersify comments.

llvm-svn: 11890
This commit is contained in:
Misha Brukman 2004-02-26 23:20:08 +00:00
parent 05afcfeafd
commit cb8fb60617

View File

@ -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!");