[flang-commits] [flang] [flang][debug] Support derived types. (PR #99476)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Thu Jul 25 06:57:26 PDT 2024


================
@@ -154,6 +156,56 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertBoxedSequenceType(
       dataLocation, /*rank=*/nullptr, allocated, associated);
 }
 
+mlir::LLVM::DITypeAttr DebugTypeGenerator::convertRecordType(
----------------
abidh wrote:

Keeping a cache for `mlir::Type` to `mlir::DITypeAttr` was always the plan. Although I have noticed in the IR dump that there is no type duplication. So may be mlir does caching at some level. I will keep this thing as a TODO to avoid generating redundant types.

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


More information about the flang-commits mailing list