Folds away TiledLoopOp output tensors when the following conditions are met:
- result of linalg.tiled_loop has no uses
- output tensor is the argument of linalg.yield
Example:
%0 = linalg.tiled_loop ... outs (%out, %out_buf:tensor<...>, memref<...>) { ... linalg.yield %out : tensor ... }
Becomes
linalg.tiled_loop ... outs (%out_buf:memref<...>) { ... linalg.yield }
can you use llvm::enumerate and drop resultId ?