[flang-commits] [flang] [flang][OpenMP] Add OpenMP versions to some tests (PR #89295)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Mon Apr 22 08:51:52 PDT 2024


kparzysz wrote:

> > Add a flag with the minimum required OpenMP version (other than the default version) to these tests that need it
> > -fopenmp-version=52
> 
> If I remember correctly, this flag is only used for debug or offload purposes only right? We do not distinguish between openmp versions inside the compiler, right?

OMP.h.inc defines the function
```
bool isAllowedClauseForDirective(Directive D, Clause C, unsigned Version);
```
I use that function to implement the parts of the spec that say something along the lines of "clause applies to the first construct that allows it".

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


More information about the flang-commits mailing list