mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-06 03:38:34 +00:00
Doxygenify and tersify comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
412926edf7
commit
2729408840
@ -38,11 +38,12 @@ public:
|
|||||||
|
|
||||||
virtual Instruction *clone() const { return new PHINode(*this); }
|
virtual Instruction *clone() const { return new PHINode(*this); }
|
||||||
|
|
||||||
/// getNumIncomingValues - Return the number of incoming edges the PHI node
|
/// getNumIncomingValues - Return the number of incoming edges
|
||||||
/// has
|
///
|
||||||
unsigned getNumIncomingValues() const { return Operands.size()/2; }
|
unsigned getNumIncomingValues() const { return Operands.size()/2; }
|
||||||
|
|
||||||
/// getIncomingValue - Return incoming value #x
|
/// getIncomingValue - Return incoming value #x
|
||||||
|
///
|
||||||
Value *getIncomingValue(unsigned i) const {
|
Value *getIncomingValue(unsigned i) const {
|
||||||
assert(i*2 < Operands.size() && "Invalid value number!");
|
assert(i*2 < Operands.size() && "Invalid value number!");
|
||||||
return Operands[i*2];
|
return Operands[i*2];
|
||||||
@ -56,6 +57,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// getIncomingBlock - Return incoming basic block #x
|
/// getIncomingBlock - Return incoming basic block #x
|
||||||
|
///
|
||||||
BasicBlock *getIncomingBlock(unsigned i) const {
|
BasicBlock *getIncomingBlock(unsigned i) const {
|
||||||
assert(i*2+1 < Operands.size() && "Invalid value number!");
|
assert(i*2+1 < Operands.size() && "Invalid value number!");
|
||||||
return reinterpret_cast<BasicBlock*>(Operands[i*2+1].get());
|
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
|
/// addIncoming - Add an incoming value to the end of the PHI list
|
||||||
|
///
|
||||||
void addIncoming(Value *D, BasicBlock *BB) {
|
void addIncoming(Value *D, BasicBlock *BB) {
|
||||||
assert(getType() == D->getType() &&
|
assert(getType() == D->getType() &&
|
||||||
"All operands to PHI node must be the same type as the PHI node!");
|
"All operands to PHI node must be the same type as the PHI node!");
|
||||||
|
Loading…
Reference in New Issue
Block a user