[Mlir-commits] [mlir] [mlir][sparse] Add more tests and verification for n:m (PR #81186)
Aart Bik
llvmlistbot at llvm.org
Fri Feb 9 10:18:10 PST 2024
================
@@ -102,13 +106,17 @@ LvlTypeParser::parseStructure(AsmParser &parser,
OptionalParseResult intValParseResult = parser.parseOptionalInteger(intVal);
if (intValParseResult.has_value()) {
if (failed(*intValParseResult)) {
- parser.emitError(loc, "failed to parse block size");
+ parser.emitError(loc, "failed to parse structure size");
+ return failure();
+ }
+ if (intVal < 0) {
+ parser.emitError(loc, "expected structure size to be >= 0");
return failure();
}
structure->push_back(intVal);
return success();
}
- parser.emitError(loc, "expected valid integer for block size");
+ parser.emitError(loc, "expected valid integer for structure size");
----------------
aartbik wrote:
structured
https://github.com/llvm/llvm-project/pull/81186
More information about the Mlir-commits
mailing list