[flang-commits] [flang] [flang] Represent use statement in fir. (PR #168106)
Kareem Ergawy via flang-commits
flang-commits at lists.llvm.org
Mon Nov 24 00:09:13 PST 2025
================
@@ -55,6 +55,19 @@ struct EquivalenceObject {
};
using EquivalenceSet = std::vector<EquivalenceObject>;
+// Preserved USE statement information for debug info generation.
+struct PreservedUseStmt {
+ enum class Kind { UseOnly, UseRenames, UseAll };
----------------
ergawy wrote:
I am wondering if we need that enum. `UseOnly` and `UseRenames` are not mutually exclusive. And `UseAll` can be deduced if `onlyNames` is not empty. Also, I don't think we need to keep track of `UseAll` since during lowering, we do nothing with it.
```suggestion
```
https://github.com/llvm/llvm-project/pull/168106
More information about the flang-commits
mailing list