[Mlir-commits] [mlir] [mlir][sparse] infer returned type for sparse_tensor.to_[buffer] ops (PR #83343)

Yinying Li llvmlistbot at llvm.org
Wed Feb 28 14:53:24 PST 2024


================
@@ -1454,6 +1486,14 @@ LogicalResult ToPositionsOp::verify() {
   return success();
 }
 
+LogicalResult
+ToPositionsOp::inferReturnTypes(MLIRContext *ctx, std::optional<Location> loc,
----------------
yinying-lisa-li wrote:

Will there be multiple return types? Since inferSparseBufferType is singular, should inferReturnType be singular too?

https://github.com/llvm/llvm-project/pull/83343


More information about the Mlir-commits mailing list