[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 11:14:36 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:
I agree with the suggestion on using output of `cg-rewrite` to test the `AddDebugInfo`. My initial motivation for basing test on fortran source code was that it was more readable.
As action items,
I will update `AddDebugInfo` tests to be based on the output of `cg-rewrite`
I will add `codegen` tests when it is involved.
I will keep adding llvm ir tests in Integration for now.
https://github.com/llvm/llvm-project/pull/91582
More information about the flang-commits
mailing list