22 if (
const auto *operationPos = dyn_cast<OperationPosition>(
this))
23 return operationPos->getDepth();
52 return isa_and_nonnull<OperandPosition, OperandGroupPosition>(
parent);
unsigned getOperationDepth() const
Returns the depth of the first ancestor operation position.
Position * parent
Link to the parent position.
Base class for all predicates, used to allow efficient pointer comparison.
Include the generated interface declarations.
AttributePosition(const KeyTy &key)
OperandGroupPosition(const KeyTy &key)
OperandPosition(const KeyTy &key)
bool isOperandDefiningOp() const
Returns if this operation represents an operand defining op.