[Mlir-commits] [mlir] [mlir][affine]introduce AffineSymbol trait and use it for using gpu.threadid op in the inner loops. (PR #118478)
Uday Bondhugula
llvmlistbot at llvm.org
Sat Jan 11 14:19:30 PST 2025
================
@@ -1390,6 +1390,14 @@ LogicalResult OpTrait::impl::verifyIsIsolatedFromAbove(Operation *isolatedOp) {
return success();
}
+LogicalResult OpTrait::impl::verifyIndexResultType(Operation *op) {
+ if (op->getNumResults() != 1)
+ op->emitError("operation's result number should be 1.");
----------------
bondhugula wrote:
It's not clear why this operation should always generate one result - why not have the ability to generate multiple results with all of those being valid symbols?
https://github.com/llvm/llvm-project/pull/118478
More information about the Mlir-commits
mailing list