We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BufferizeToAllocationOp
1 parent 147c5d6 commit 6367677Copy full SHA for 6367677
mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
@@ -289,7 +289,13 @@ DiagnosedSilenceableFailure transform::BufferizeToAllocationOp::apply(
289
290
void transform::BufferizeToAllocationOp::getEffects(
291
SmallVectorImpl<MemoryEffects::EffectInstance> &effects) {
292
- consumesHandle(getTarget(), effects);
+ if (getBufferizeDestinationOnly()) {
293
+ // The destination is replaced with a newly allocated buffer, but the op
294
+ // itself remains in place.
295
+ onlyReadsHandle(getTarget(), effects);
296
+ } else {
297
+ consumesHandle(getTarget(), effects);
298
+ }
299
producesHandle(getAllocatedBuffer(), effects);
300
producesHandle(getNewOps(), effects);
301
modifiesPayload(effects);
0 commit comments