[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.");
+ if (!mlir::isa<IndexType>(op->getResult(0).getType()))
+ op->emitError("operation's result type should be index.");
----------------
bondhugula wrote:
This implementation is wrong - you are never returning failure! Missing test cases to check that as well.
https://github.com/llvm/llvm-project/pull/118478
More information about the Mlir-commits
mailing list