Lines Matching defs:opOperand
90 static void setInPlaceOpOperand(OpOperand &opOperand, bool inPlace) {
91 Operation *op = opOperand.getOwner();
98 for (OpOperand &opOperand : op->getOpOperands())
99 if (isa<TensorType>(opOperand.get().getType()))
100 inPlaceVector[opOperand.getOperandNumber()] = "false";
102 inPlaceVector[opOperand.getOperandNumber()] = inPlace ? "true" : "false";
130 for (OpOperand &opOperand : bufferizableOp->getOpOperands())
131 if (isa<TensorType>(opOperand.get().getType()))
132 if (bufferizableOp.mustBufferizeInPlace(opOperand, *this))
133 bufferizeInPlace(opOperand);
203 OpOperand *opOperand = &(*opResult.getUses().begin());
204 if (findDefinitionsCached(opOperand).empty())
213 bool OneShotAnalysisState::hasUndefinedContents(OpOperand *opOperand) const {
214 return undefinedTensorUses.contains(opOperand);
217 bool OneShotAnalysisState::isInPlace(OpOperand &opOperand) const {
218 return inplaceBufferized.contains(&opOperand);
256 /// Return true if opOperand has been decided to bufferize in-place.
257 static bool isInplaceMemoryWrite(OpOperand &opOperand,
260 if (!state.bufferizesToMemoryWrite(opOperand))
263 return state.isInPlace(opOperand);
487 OpOperand *opOperand,
500 state.findValueInReverseUseDefChain(opOperand, matchingSubset);
975 OneShotAnalysisState::findDefinitionsCached(OpOperand *opOperand) {
976 Value value = opOperand->get();
978 cachedDefinitions[value] = findDefinitions(opOperand);
1013 for (OpOperand &opOperand : op->getOpOperands())
1014 if (isa<TensorType>(opOperand.get().getType()))
1015 if (failed(bufferizableInPlaceAnalysisImpl(opOperand, *this, domInfo)))
1033 Value firstOperand = aliases.begin()->opOperand->get();
1037 bool isInPlace = state.isInPlace(*alias.opOperand);
1038 Value operand = alias.opOperand->get();
1114 Value v = alias.opOperand->get();
1234 for (OpOperand &opOperand : op->getOpOperands()) {
1235 if (isa<TensorType>(opOperand.get().getType())) {
1237 opOperand, domInfo, state,
1249 if (state.isInPlace(opOperand) &&
1251 opOperand, state, /*checkConsistencyOnly=*/true)) {
1271 for (OpOperand &opOperand : op->getOpOperands())
1272 if (isa<TensorType>(opOperand.get().getType()))
1273 setInPlaceOpOperand(opOperand, state.isInPlace(opOperand));