[PATCH] D92638: [Flang][openmp]Fix crash in OpenMP semantic check( bug 48308)

Kiran Kumar T P via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 11 03:24:39 PST 2020


kiranktp added inline comments.


================
Comment at: flang/lib/Semantics/resolve-directives.cpp:878
 
-// 2.15.1.1 Data-sharing Attribute Rules - Predetermined
+// [OMP-4.5]2.15.1.1 Data-sharing Attribute Rules - Predetermined
 //   - A loop iteration variable for a sequential loop in a parallel
----------------
clementval wrote:
> kiranchandramohan wrote:
> > clementval wrote:
> > > Not specially for this patch but just a quick question: What is the ultimate standard we are targeting in Flang? 4.5 or 5.0. I have seen both in new patches and since there is no way to enforce one standard or another it feel weird to mix them. Maybe I missed this discussion but if you have any information it would be great for my personal knowledge. 
> > Arm's immediate requirement is to replace the existing Flang (flang-compiler/flang) compiler with llvm/flang. The current compiler has partial support for 4.5 and no support for 5.0.  Hence you see commits from our side referring to 4.5.  Once we are done with checks for 4.5 we will do an upgrade to 5.0. AMD and others will continue to work on 5.0. 
> > 
> > I agree that there is weirdness in this. But I anticipate quick progress on semantic checks and this will go away in a few months time.
> Thanks for the clarification @kiranchandramohan. Is this written somewhere in the doc? If not, it would maybe be nice to have just a line or two in the documentation just mentioning this "transition" phase. 
This is pending for quite sometime. We should add OpenMP 5.0 grammar file as well.
Would it make sense to modify "OpenMP 4.5 Grammar" page to "OpenMP Grammar" and add details about current implementation and future transition along with both grammar[4.5 and 5.0]?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92638/new/

https://reviews.llvm.org/D92638



More information about the llvm-commits mailing list