[Mlir-commits] [mlir] [mlir][LLVM][NFC] Move `LLVMStructType` to ODS (PR #117485)

Tobias Gysi llvmlistbot at llvm.org
Sun Nov 24 08:36:28 PST 2024


================
@@ -117,6 +117,140 @@ def LLVMFunctionType : LLVMType<"LLVMFunction", "func"> {
   }];
 }
 
+//===----------------------------------------------------------------------===//
+// LLVMStructType
+//===----------------------------------------------------------------------===//
+
+def LLVMStructType : LLVMType<"LLVMStruct", "struct", [
+  MutableType,
+  DeclareTypeInterfaceMethods<DataLayoutTypeInterface,
+    ["areCompatible", "verifyEntries"]>,
+  DeclareTypeInterfaceMethods<DestructurableTypeInterface,
+    ["getSubelementIndexMap", "getTypeAtIndex"]>
+]> {
+  let summary = "LLVM struct type";
+
+  let description = [{
+    LLVM dialect structure type representing a collection of different-typed
+    elements manipulated together. Structured can optionally be packed, meaning
----------------
gysit wrote:

```suggestion
    elements manipulated together. Struct types can optionally be packed, meaning
```
nit:

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


More information about the Mlir-commits mailing list