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

Luke Hutton llvmlistbot at llvm.org
Fri Aug 29 07:37:33 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) {
----------------
lhutton1 wrote:

Nice suggestion, though I tried this and got the compiler warning:
```
defaulted comparison operators are a C++20 extension [-Wc++20-extensions]
```
LLVM is using c++17

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


More information about the Mlir-commits mailing list