[Mlir-commits] [mlir] [MLIR][DataLayout] Add support for scalable vectors (PR #89349)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Fri Apr 19 01:48:29 PDT 2024


================
@@ -46,9 +46,16 @@ struct TestDataLayoutQuery
       Attribute programMemorySpace = layout.getProgramMemorySpace();
       Attribute globalMemorySpace = layout.getGlobalMemorySpace();
       uint64_t stackAlignment = layout.getStackAlignment();
+
+      auto convertTypeSizeToAttr = [&](llvm::TypeSize typeSize) -> Attribute {
+        if (typeSize.isScalable())
+          return builder.getStringAttr("scalable");
----------------
ftynse wrote:

Nit: would it be preferable to have a pair "scalable" + min size?

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


More information about the Mlir-commits mailing list