[flang-commits] [flang] [RFC][flang] Replace special symbols in uniqued global names. (PR #104859)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Thu Sep 19 13:44:55 PDT 2024


abidh wrote:

> real, bind(c,name='XYZ') :: aaa

For variable like `_QQclX9a37c0`, the kind is `NameKind::GENERATED` which we can use to filter them. The variable like `_QMmEXcXt1` have `NameKind::VARIABLE` so they go through. I was thinking that if we could get `NameKind::GENERATED` for all compiler generated variables then that probably would be the cleanest solution.

As a temporary solution, I could filter XcX* and XdtX* like variable by looking at their type which will have _QM__fortran_type_info*. But variable *XnX* will still be there as those have normal character types.

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


More information about the flang-commits mailing list