[all-commits] [llvm/llvm-project] 0e8222: [flang][debug] Make common blocks data extraction ...

Abid Qadeer via All-commits all-commits at lists.llvm.org
Thu Nov 20 06:29:17 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e8222b84b60c022b2cee308f79a185a943ff514
      https://github.com/llvm/llvm-project/commit/0e8222b84b60c022b2cee308f79a185a943ff514
  Author: Abid Qadeer <haqadeer at amd.com>
  Date:   2025-11-20 (Thu, 20 Nov 2025)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIRCG/CGOps.td
    M flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp
    M flang/lib/Optimizer/Transforms/AddDebugInfo.cpp
    M flang/test/Fir/declare-codegen.fir
    A flang/test/Integration/debug-module-equivalence.f90
    M flang/test/Transforms/debug-common-block.fir

  Log Message:
  -----------
  [flang][debug] Make common blocks data extraction more robust. (#168752)

Our current implementation for extracting information about common block
required traversal of FIR which was not ideal but previously there was
no other way to obtain that information. The `[hl]fir.declare` was
extended in commit https://github.com/llvm/llvm-project/pull/155325 to
include storage and storage_offset. This commit adds these operands in
`fircg.ext_declare` and then use them in `AddDebugInfoPass` to create
debug data for common blocks.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list