C++: More QLDoc.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-04-12 11:22:31 +01:00
parent 49cceb2901
commit ab70f5722e

View File

@@ -160,7 +160,11 @@ class Node extends TIRDataFlowNode {
/** Gets the operands corresponding to this node, if any. */
Operand asOperand() { result = this.(OperandNode).getOperand() }
/** Holds if this node is at index `i` in basic block `block`. */
/**
* Holds if this node is at index `i` in basic block `block`.
*
* Note: Phi nodes are considered to be at index `-1`.
*/
final predicate hasIndexInBlock(IRBlock block, int i) {
this.asInstruction() = block.getInstruction(i)
or