[flang] [llvm] [Flang] [OpenMP] Add semantic checks for detach clause in task (PR #119172)
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 06:19:24 PST 2024
================
@@ -3711,6 +3768,30 @@ void OmpStructureChecker::Enter(const parser::OmpClause::Linear &x) {
x.v.u);
}
+void OmpStructureChecker::Enter(const parser::OmpClause::Detach &x) {
+ // OpenMP 5.0: Task construct restrictions
+ CheckAllowedClause(llvm::omp::Clause::OMPC_detach);
+
+ // OpenMP 5.2: Detach clause restrictions
----------------
kparzysz wrote:
Same here: please do version-specific checks based on the actual version.
https://github.com/llvm/llvm-project/pull/119172
More information about the llvm-commits
mailing list