[Mlir-commits] [mlir] [mlir][DataLayout] Add a default memory space entry to the data layout. (PR #127416)

Fabian Mora llvmlistbot at llvm.org
Thu Feb 27 09:45:41 PST 2025


================
@@ -602,7 +609,8 @@ class TargetDataLayoutInterface : public DataLayoutDialectInterface {
                             << DLTIDialect::kDataLayoutEndiannessBig << "' or '"
                             << DLTIDialect::kDataLayoutEndiannessLittle << "'";
     }
-    if (entryName == DLTIDialect::kDataLayoutAllocaMemorySpaceKey ||
+    if (entryName == DLTIDialect::kDataLayoutDefaultMemorySpaceKey ||
+        entryName == DLTIDialect::kDataLayoutAllocaMemorySpaceKey ||
----------------
fabianmcg wrote:

They were not in alphabetical order:
```
kDataLayoutAllocaMemorySpaceKey
kDataLayoutProgramMemorySpaceKey
kDataLayoutGlobalMemorySpaceKey
kDataLayoutStackAlignmentKey
```
I added it as the first one as I think It's more important than the others.

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


More information about the Mlir-commits mailing list