[Mlir-commits] [mlir] [mlir][tosa] Disallow inferable dim in reshape/slice validation (PR #182472)
Sayan Saha
llvmlistbot at llvm.org
Sat Feb 28 16:45:54 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;
----------------
sahas3 wrote:
Is there a common header where this can be defined once instead of defining in multiple places?
https://github.com/llvm/llvm-project/pull/182472
More information about the Mlir-commits
mailing list