[Mlir-commits] [mlir] [mlir][debug] Handle DIImportedEntity. (PR #103055)
Christian Ulmann
llvmlistbot at llvm.org
Tue Aug 13 09:13:15 PDT 2024
================
@@ -619,6 +619,25 @@ def LLVM_DINamespaceAttr : LLVM_Attr<"DINamespace", "di_namespace",
let assemblyFormat = "`<` struct(params) `>`";
}
+//===----------------------------------------------------------------------===//
+// DIImportedEntityAttr
+//===----------------------------------------------------------------------===//
+
+def LLVM_DIImportedEntityAttr : LLVM_Attr<"DIImportedEntity", "di_imported_entity",
+ /*traits=*/[], "DINodeAttr"> {
+ let parameters = (ins
+ LLVM_DITagParameter:$tag,
+ OptionalParameter<"DIScopeAttr">:$scope,
+ OptionalParameter<"DINodeAttr">:$entity,
+ OptionalParameter<"DIFileAttr">:$file,
+ OptionalParameter<"unsigned">:$line,
+ OptionalParameter<"StringAttr">:$name,
+ OptionalArrayRefParameter<"DINodeAttr">:$elements
----------------
Dinistro wrote:
Does LLVM really make all these fields optional?
https://github.com/llvm/llvm-project/pull/103055
More information about the Mlir-commits
mailing list