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

Kiran Chandramohan via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 27 15:44:01 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;
----------------
kiranchandramohan wrote:

I agree with @skatrak's initial comments. We should try to keep the OpenMP specific data-structures in the OpenMP specific checkers. And if we can use the symbol that would be great. If the reduction creates a new private symbol, that should be the symbol bound to the  inclusive or exclusive clause of the SCAN directive.

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


More information about the llvm-commits mailing list