22 if (
const auto *operationPos = dyn_cast<OperationPosition>(
this))
23 return operationPos->getDepth();
56 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.
std::pair< OperationPosition *, StringAttr > KeyTy
PredicateBase< AttributePosition, Position, std::pair< OperationPosition *, StringAttr >, Kind > Base
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.