[Mlir-commits] [mlir] [sparse] allow unpack op to return any integer type. (PR #66161)

Aart Bik llvmlistbot at llvm.org
Tue Sep 12 17:20:00 PDT 2023


================
@@ -1323,7 +1323,8 @@ struct SparseUnpackOpConverter : public OpConversionPattern<UnpackOp> {
         // TODO: maybe change unpack/pack operation instead to be
         // consistent.
         retMem.insert(retMem.begin(), dst);
-        retLen.insert(retLen.begin(), sz);
+        retLen.insert(retLen.begin(),
+                      genCast(rewriter, loc, sz, op.getValLen().getType()));
----------------
aartbik wrote:

Just for consistency and readability, can you give this Type a name as well?

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


More information about the Mlir-commits mailing list