[all-commits] [llvm/llvm-project] 7c2f10: [flang][OpenMP] Check for OpenMP 5.0+ for the if c...
Kajetan Puchalski via All-commits
all-commits at lists.llvm.org
Fri Aug 1 09:40:41 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7c2f109811181a227ffd784c046ed8d475173f8f
https://github.com/llvm/llvm-project/commit/7c2f109811181a227ffd784c046ed8d475173f8f
Author: Kajetan Puchalski <kajetan.puchalski at arm.com>
Date: 2025-08-01 (Fri, 01 Aug 2025)
Changed paths:
A flang/test/Semantics/OpenMP/if-clause-45.f90
A flang/test/Semantics/OpenMP/if-clause-50.f90
M llvm/include/llvm/Frontend/OpenMP/OMP.td
Log Message:
-----------
[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 at arm.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list