This patch improves semantic checks for hint clause.
- check "hint-expression is a constant expression that evaluates to a scalar value with kind omp_sync_hint_kind and a value that is a valid synchronization hint."
Depends on D127822
Paths
| Differential D127615
[flang][OpenMP] Added semantic checks for hint clause ClosedPublic Authored by NimishMishra on Jun 13 2022, 12:44 AM.
Details Summary This patch improves semantic checks for hint clause.
Depends on D127822
Diff Detail
Event TimelineNimishMishra added reviewers: shraiysh, kiranchandramohan, kiranktp, peixin, MatsPetersson.Jun 13 2022, 1:04 AM Comment Actions Can you split this patch into two:
This revision now requires changes to proceed.Jun 14 2022, 2:31 AM
NimishMishra added a parent revision: D127822: [flang][OpenMP][NFC] Refactor code related to OpenMP atomic memory order clause semantics. NimishMishra retitled this revision from [flang][OpenMP] Added semantic checks for atomic construct clauses to [flang][OpenMP] Added semantic checks for hint clause. Comment Actions Is hint_contended + hint_speculative + hint_speculative rejected in other compilers?
Comment Actions
This revision is now accepted and ready to land.Jul 11 2022, 7:04 PM Closed by commit rG7dc18a62e40e: [flang][OpenMP] Added semantic checks for hint clause (authored by NimishMishra). · Explain WhyJul 14 2022, 5:56 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 444623 flang/lib/Semantics/check-omp-structure.h
flang/lib/Semantics/check-omp-structure.cpp
flang/test/Semantics/OpenMP/omp-atomic-hint-clause.f90
flang/test/Semantics/OpenMP/omp-critical-hint-clause.f90
|
Nit: Place directiveNest_ things together. I mean, move line 293 to line 279.