[Mlir-commits] [mlir] [mlir] Add support for DIGlobalVariable and DIGlobalVariableExpression (PR #73367)
Tobias Gysi
llvmlistbot at llvm.org
Thu Nov 30 23:46:54 PST 2023
================
@@ -447,6 +468,40 @@ def LLVM_DILocalVariableAttr : LLVM_Attr<"DILocalVariable", "di_local_variable",
let assemblyFormat = "`<` struct(params) `>`";
}
+//===----------------------------------------------------------------------===//
+// DIGlobalVariableExpressionAttr
+//===----------------------------------------------------------------------===//
+
+def LLVM_DIGlobalVariableExpressionAttr
+ : LLVM_Attr<"DIGlobalVariableExpression", "di_global_variable_expression",
+ /*traits=*/[], "DINodeAttr"> {
----------------
gysit wrote:
```suggestion
> {
```
If we follow the LLVM class diagram we could skip the base class here?
https://github.com/llvm/llvm-project/pull/73367
More information about the Mlir-commits
mailing list