[Mlir-commits] [mlir] [MLIR] Translate DIStringType. (PR #94480)
Tobias Gysi
llvmlistbot at llvm.org
Wed Jun 5 08:44:47 PDT 2024
================
@@ -676,6 +676,21 @@ def LLVM_DILabelAttr : LLVM_Attr<"DILabel", "di_label",
let assemblyFormat = "`<` struct(params) `>`";
}
+def LLVM_DIStringTypeAttr : LLVM_Attr<"DIStringType", "di_string_type",
+ /*traits=*/[], "DITypeAttr"> {
+ let parameters = (ins
+ LLVM_DITagParameter:$tag,
+ "StringAttr":$name,
+ OptionalParameter<"uint64_t">:$sizeInBits,
+ OptionalParameter<"uint64_t">:$alignInBits,
----------------
gysit wrote:
```suggestion
OptionalParameter<"uint32_t">:$alignInBits,
```
LLVM seems to use uint32_t for the alignment.
https://github.com/llvm/llvm-project/pull/94480
More information about the Mlir-commits
mailing list