[flang-commits] [flang] [flang] Support declarations scoping in FIR AA. (PR #201216)

via flang-commits flang-commits at lists.llvm.org
Mon Jun 8 00:59:16 PDT 2026


================
@@ -288,14 +347,34 @@ struct AliasAnalysis {
   /// If getLastInstantiationPoint is true, the search for the source
   /// will stop at [hl]fir.declare if it represents a dummy
   /// argument declaration (i.e. it has the dummy_scope operand).
+  /// If collectScopedOrigins is false, the per-declare ScopedOrigin
+  /// snapshots are not collected (used internally by buildSourceAtDeclare
----------------
jeanPerier wrote:

nit: remove "used internally by buildSourceAtDeclare" from the comment since this is a public API, or make it a private API with the public one dispatching to it.

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


More information about the flang-commits mailing list