[Mlir-commits] [mlir] [mlir][tosa] Convert TOSA enumerations from `StringBasedAttr` to `Tosa_I32EnumAttr` (PR #152856)
Annu Singh
llvmlistbot at llvm.org
Fri Aug 15 04:28:22 PDT 2025
================
@@ -381,6 +381,34 @@ class Extension<list<I32EnumAttrCase> extensions> : Availability {
let instance = "ref";
}
+//===----------------------------------------------------------------------===//
+// Iterable attributes.
+//===----------------------------------------------------------------------===//
+// Defined in `section 3. Enumerations` of the TOSA specification.
+
+def Tosa_RESIZE_NEAREST_NEIGHBOR : I32EnumAttrCase<"NEAREST_NEIGHBOR", 1>;
+def Tosa_RESIZE_BILINEAR : I32EnumAttrCase<"BILINEAR", 2>;
+
+def Tosa_ResizeTypeAttr
+ : Tosa_I32EnumAttr<"ResizeType", "Supported resize/upsampling strategies", "resize_type",
----------------
AnnuCode wrote:
Yes, that would be better. I'll do it. I'm unable to open the link you shared (DNS error), but I can follow the type names as mentioned [here](https://www.mlplatform.org/tosa/tosa_spec_1_0_1.html#_resize_mode_t) if they match.
https://github.com/llvm/llvm-project/pull/152856
More information about the Mlir-commits
mailing list