[Mlir-commits] [mlir] [mlir][tosa] Add the concept of a TOSA target environment (PR #153771)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Aug 29 07:02:17 PDT 2025


================
@@ -20,24 +20,67 @@
 namespace mlir {
 namespace tosa {
 
+struct TosaLevel {
+  int32_t MAX_RANK = 0;
+  int32_t MAX_KERNEL = 0;
+  int32_t MAX_STRIDE = 0;
+  int32_t MAX_SCALE = 0;
+  int32_t MAX_LOG2_SIZE = 0;
+  int32_t MAX_NESTING = 0;
+  int32_t MAX_TENSOR_LIST_SIZE = 0;
+
+  bool operator==(const TosaLevel &rhs) {
----------------
udaya-ranga wrote:

The compiler can auto-gen this comparison ?
You just need `bool operator==(const TosaLevel &rhs) = default;`

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


More information about the Mlir-commits mailing list