Lines Matching defs:consumer
1112 /// Return the untiled producer whose slice is used in a tiled consumer. The
1115 /// iter_args indicates that this is a destination operand of the consumer. If
1522 /// Implementation of tile consumer and fuse producer greedily.
1525 RewriterBase &rewriter, TilingInterface consumer,
1529 if (!consumer->getNumResults()) {
1531 consumer, "invalid pattern for op with no results");
1534 // 1. First tile the consumer.
1539 tileUsingSCF(rewriter, consumer, options.tilingOptions);
1542 return rewriter.notifyMatchFailure(consumer, "failed to tile consumer");
1548 consumer->getResults(), tilingResult->mergeResult.replacements)) {
1585 return rewriter.notifyMatchFailure(consumer, "cleanup patterns failed");
1647 return rewriter.notifyMatchFailure(consumer, "cleanup patterns failed");
1720 /// before the last defineOp of consumer operand. Because that we need to move
1752 /// @param consumerOp: consumer operation
1815 // TODO: We have to init result of consumer before scf.for, use
1891 /// Fetch the untiled consumer of a scf.for's result which is yielded by a
1914 /// Fetch the first untiled consumer of a scf.forall's result which is yielded
1938 /// A utility to fetch an untiled consumer of
1952 /// Implementation of fusing consumer of a single slice by computing the
1953 /// slice of the consumer in-place for scf loop.
1963 // 1. Get the consumer of scf.for for the result yielded by
1969 "could not fetch consumer to fuse");
1979 consumerOp, "consumer op's operand doesn't seem to be an OpResult");
2006 "of consumer operand(s)");
2011 // 2. Check consumer is not using scf loop's output as init.
2015 "consumer op is not DPS operation");
2021 "consumer op taking the result of scf.for as init is not supported");
2054 // 5.a. Clone consumer op.
2064 // 6. Perform tiling of the cloned consumer and replace the operand at
2085 // 8. Set inner insertPoint right before tiled consumer op.
2116 // consumer. This would then be used to form the corresponding
2172 // 15. Replace the result of scf loop and consumer op with new loop's
2181 // 16. Need to erase the old scf loop and the cloned consumer op.