[flang-commits] [flang] [flang] Add debug information for module variables. (PR #91582)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Mon May 20 02:55:41 PDT 2024


================
@@ -0,0 +1,39 @@
+! RUN: %flang_fc1 -emit-fir -debug-info-kind=standalone -mmlir --mlir-print-debuginfo %s -o - | \
+! RUN: fir-opt --cg-rewrite --mlir-print-debuginfo | fir-opt --add-debug-info --mlir-print-debuginfo | FileCheck %s
----------------
abidh wrote:

The `AddDebugInfo` pass now operates on `XDeclareOp` so we need to run `CodeGenRewrite` before to convert the `DeclareOp`.

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


More information about the flang-commits mailing list