Kajetan Puchalski 7c2f109811
[flang][OpenMP] Check for OpenMP 5.0+ for the if clause on "do simd" (#151154)
The "if" clause on "do simd" is only supported from OpenMP version 5.0.
Currently the tablegen for OMP_DoSimd does not restrict it, leading to
an ICE if the clause is used with an older OpenMP version as opposed to
a semantic error. Restrict the version to show the correct semantic
error.

Add flang tests for using the if clause with -fopenmp-version=45
and -fopenmp-version=50 to check for these types of errors.

---------

Signed-off-by: Kajetan Puchalski <kajetan.puchalski@arm.com>
2025-08-01 17:40:18 +01:00
..
2022-10-29 14:08:44 -07:00
2025-02-27 14:32:30 -08:00
2023-05-16 13:56:24 -07:00
2025-01-08 13:15:51 -08:00
2025-01-08 13:15:51 -08:00
2023-02-14 10:04:56 -03:00