[flang-commits] [flang] [llvm] [Flang][OpenMP][Sema] Adding parsing and semantic support for scan directive. (PR #102792)

Anchu Rajendran S via flang-commits flang-commits at lists.llvm.org
Sun Sep 22 22:07:23 PDT 2024


================
@@ -198,6 +198,10 @@ class DirectiveStructureChecker : public virtual BaseChecker {
     ClauseMapTy clauseInfo;
     std::list<C> actualClauses;
     std::list<C> crtGroup;
+    std::set<std::string> usedInScanDirective;
----------------
anchuraj wrote:

The `symbol *` of reduction variables and scan variables are different now. Reduction declares a private symbol as implemented [here](https://github.com/anchuraj/llvm-project/blob/master/flang/lib/Semantics/resolve-directives.cpp#L2478). So checking `Symbol *` would not be appropriate at this stage. Looking to make further modification of using the same `Symbol *` in both clauses (if required) as I proceed with the implementation.

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


More information about the flang-commits mailing list