[flang-commits] [flang] [flang][debug] Add stride information for assumed shape array. (PR #106703)

Paul Osmialowski via flang-commits flang-commits at lists.llvm.org
Fri Aug 30 03:29:15 PDT 2024


================
@@ -139,10 +139,18 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertBoxedSequenceType(
         mlir::LLVM::DIExpressionAttr::get(context, ops);
     ops.clear();
 
+    addOp(llvm::dwarf::DW_OP_push_object_address, {});
+    addOp(llvm::dwarf::DW_OP_plus_uconst,
+          {offset + (indexSize * kDimStridePos)});
+    addOp(llvm::dwarf::DW_OP_deref, {});
+    // stride[i] = *(base_addr + offset + (indexSize * kDimStridePos))
----------------
pawosm-arm wrote:

was this commented-out code left intentionally?

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


More information about the flang-commits mailing list