[Mlir-commits] [mlir] [MLIR] Translate DIStringType. (PR #94480)
Abid Qadeer
llvmlistbot at llvm.org
Thu Jun 6 03:47:05 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,
+ OptionalParameter<"DINodeAttr">:$stringLength,
----------------
abidh wrote:
Thanks for the pointers. I have added `DIVariableAttr` and I think it makes the patch cleaner. With `DIVariableAttr` now available, there may be some cleanup possible in the `DISubrangeAttr` changes that I did last week. I will handle that in a separate PR.
https://github.com/llvm/llvm-project/pull/94480
More information about the Mlir-commits
mailing list