[Mlir-commits] [mlir] [mlir][sparse] allow YieldOp to yield multiple values. (PR #87261)
Aart Bik
llvmlistbot at llvm.org
Mon Apr 1 10:07:11 PDT 2024
================
@@ -1591,7 +1591,8 @@ static LogicalResult verifyNumBlockArgs(T *op, Region ®ion,
if (!yield)
return op->emitError() << regionName
<< " region must end with sparse_tensor.yield";
- if (!yield.getResult() || yield.getResult().getType() != outputType)
+ if (!yield.getSingleResult() ||
----------------
aartbik wrote:
use hasSingleResult if possible
(seems it will make the test more precise)
https://github.com/llvm/llvm-project/pull/87261
More information about the Mlir-commits
mailing list