[Mlir-commits] [mlir] [mlir][tosa] Shape operation level checks limited to MAX_SHAPE_LEN (PR #175020)
Luke Hutton
llvmlistbot at llvm.org
Fri Jan 9 03:24:47 PST 2026
================
@@ -255,6 +249,18 @@ struct TosaValidation : public tosa::impl::TosaValidationBase<TosaValidation> {
return levelCheckSize(op, v.getType(), operandOrResult);
}
+ // Perform the Level shape length check on a value.
+ LogicalResult levelCheckShapeLength(Operation *op, const Type typeToCheck,
+ const StringRef operandOrResult) {
----------------
lhutton1 wrote:
This is used below: https://github.com/llvm/llvm-project/pull/175020/changes#diff-9094a3c264abb63100ab95e0e9e6d5c303b346ec9926b814e58b50ffaa1253e0R303. Perhaps the naming of the function below could be improved: `levelCheckShapeLengths`
https://github.com/llvm/llvm-project/pull/175020
More information about the Mlir-commits
mailing list