[Mlir-commits] [mlir] [mlir][tosa] Add log2_ceil/log2_floor/exp2_shape ops (PR #175057)

Luke Hutton llvmlistbot at llvm.org
Thu Jan 8 13:40:16 PST 2026


================
@@ -673,6 +689,13 @@ LogicalResult TosaValidation::levelCheckRanksAndSizes(Operation *op) {
   CHECK_RANKS_AND_SIZES(VariableRead);
   // Shape Operators
   CHECK_RANKS_AND_SIZES(Dim);
+  CHECK_RANKS_AND_SIZES(DivCeilShape);
+  CHECK_RANKS_AND_SIZES(DivFloorShape);
+  CHECK_RANKS_AND_SIZES(Exp2Shape);
+  CHECK_RANKS_AND_SIZES(Log2CeilShape);
+  CHECK_RANKS_AND_SIZES(Log2FloorShape);
+  CHECK_RANKS_AND_SIZES(MulShape);
+  CHECK_RANKS_AND_SIZES(SubShape);
----------------
lhutton1 wrote:

These were converted to `CHECK_RANKS` (see below). The reason is that checking `sizes` is not applicable for shape types

https://github.com/llvm/llvm-project/pull/175057


More information about the Mlir-commits mailing list