[Mlir-commits] [mlir] [mlir][tosa] Disallow inferable dim in reshape/slice validation (PR #182472)
Luke Hutton
llvmlistbot at llvm.org
Mon Mar 2 02:20:51 PST 2026
================
@@ -1214,6 +1215,47 @@ LogicalResult checkErrorIfPad(Operation *op) {
return success();
}
+LogicalResult checkErrorIfReshape(Operation *op) {
+ auto reshapeOp = dyn_cast<tosa::ReshapeOp>(op);
+ if (!reshapeOp)
+ return success();
+
+ constexpr int64_t kInferableDim = -1;
----------------
lhutton1 wrote:
Good point thanks, moved to `TosaOps.h`
https://github.com/llvm/llvm-project/pull/182472
More information about the Mlir-commits
mailing list