[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:17 PST 2026


================
@@ -437,6 +437,22 @@ struct TosaValidation : public tosa::impl::TosaValidationBase<TosaValidation> {
     return success();
   }
 
+  // Exp2Shape op: level check max shape
+  LogicalResult levelCheckExp2Shape(Operation *op) {
----------------
lhutton1 wrote:

In the spec this is a `REQUIRE`, so it seems odd to have it as a level check. I think we should remove this and only check it when executing/constant folding an operator

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


More information about the Mlir-commits mailing list