[Mlir-commits] [mlir] [MLIR][LLVM] Support Recursive DITypes (PR #80251)

Billy Zhu llvmlistbot at llvm.org
Wed Mar 13 11:58:01 PDT 2024


================
@@ -102,6 +120,15 @@ class DebugTranslation {
   /// metadata.
   DenseMap<Attribute, llvm::DINode *> attrToNode;
 
+  /// A mapping from DistinctAttr ID of DIRecursiveTypeAttr to the translated
+  /// DIType.
+  llvm::MapVector<DistinctAttr, llvm::DIType *> recursiveTypeMap;
+
+  /// A mapping between DistinctAttr ID and the translated LLVM metadata node.
----------------
zyx-billy wrote:

oh this one actually is the distinct attr itself of nodes that are distinct (this way we don't accidentally create two llvm nodes for the same one because now the same llvm node may appear both inside & outside a loop as two different mlir attrs).

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


More information about the Mlir-commits mailing list