[Mlir-commits] [mlir] [mlir] Add support for DIGlobalVariable and DIGlobalVariableExpression (PR #73367)

Justin Wilson llvmlistbot at llvm.org
Sat Nov 25 07:18:02 PST 2023


================
@@ -23,15 +23,24 @@
 namespace mlir {
 namespace LLVM {
 
-/// This class represents the base attribute for all debug info attributes.
-class DINodeAttr : public Attribute {
+/// This class represents the base attribute for all metadata attributes.
+class MDNodeAttr : public Attribute {
----------------
waj334 wrote:

DIExpression and DIGlobalVariableExpression inherit MDNode directly instead of DINode in LLVM. So I felt like needed to introduce a new base attribute class representing MDNode in order to make things work in the translator and maintain consistency with the LLVM side of things.

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


More information about the Mlir-commits mailing list