Lines Matching defs:owner

234 detail::OperandStorage::OperandStorage(Operation *owner,
240 new (&operandStorage[i]) OpOperand(owner, values[i]);
254 void detail::OperandStorage::setOperands(Operation *owner, ValueRange values) {
255 MutableArrayRef<OpOperand> storageOperands = resize(owner, values.size());
263 void detail::OperandStorage::setOperands(Operation *owner, unsigned start,
277 setOperands(owner, start, newSize, operands);
281 auto storageOperands = resize(owner, size() + (newSize - length));
328 MutableArrayRef<OpOperand> detail::OperandStorage::resize(Operation *owner,
346 new (&opBegin[numOperands]) OpOperand(owner);
367 new (&newOperands[numOperands]) OpOperand(owner);
406 const OwnerT &owner = getBase();
407 ArrayRef<int32_t> sizeData = llvm::cast<DenseI32ArrayAttr>(owner.second);
408 return OperandRange(owner.first,
426 Operation *owner, unsigned start, unsigned length,
428 : owner(owner), start(start), length(length),
430 assert((start + length) <= owner->getNumOperands() && "invalid range");
432 MutableOperandRange::MutableOperandRange(Operation *owner)
433 : MutableOperandRange(owner, /*start=*/0, owner->getNumOperands()) {}
446 MutableOperandRange subSlice(owner, start + subStart, subLen,
457 owner->insertOperands(start + length, values);
463 owner->setOperands(start, length, values);
471 owner->setOperand(start, value);
473 owner->setOperands(start, length, value);
483 owner->eraseOperands(start + subStart, subLen);
490 owner->eraseOperands(start, length);
497 return owner->getOperands().slice(start, length);
506 return owner->getOpOperands().slice(start, length);
526 owner->setAttr(segment.second.getName(), segment.second.getValue());
532 return owner->getOpOperand(start + index);
536 return owner->getOpOperands().slice(start, length).begin();
540 return owner->getOpOperands().slice(start, length).end();
649 ValueRange::OwnerT ValueRange::offset_base(const OwnerT &owner,
651 if (const auto *value = llvm::dyn_cast_if_present<const Value *>(owner))
653 if (auto *operand = llvm::dyn_cast_if_present<OpOperand *>(owner))
655 return cast<detail::OpResultImpl *>(owner)->getNextResultAtOffset(index);
658 Value ValueRange::dereference_iterator(const OwnerT &owner, ptrdiff_t index) {
659 if (const auto *value = llvm::dyn_cast_if_present<const Value *>(owner))
661 if (auto *operand = llvm::dyn_cast_if_present<OpOperand *>(owner))
663 return cast<detail::OpResultImpl *>(owner)->getNextResultAtOffset(index);