[flang-commits] [flang] [flang][debug] Add stride information for assumed shape array. (PR #106703)
Abid Qadeer via flang-commits
flang-commits at lists.llvm.org
Fri Aug 30 03:48:07 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))
----------------
abidh wrote:
No, this is just explaining how dwarf expression calculates the stride information. Similar comments exist a few line above for lower bound and count.
https://github.com/llvm/llvm-project/pull/106703
More information about the flang-commits
mailing list