[all-commits] [llvm/llvm-project] 7dc18a: [flang][OpenMP] Added semantic checks for hint clause

NimishMishra via All-commits all-commits at lists.llvm.org
Thu Jul 14 05:56:04 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7dc18a62e40e241019ec77e70f01bc41d39ab748
      https://github.com/llvm/llvm-project/commit/7dc18a62e40e241019ec77e70f01bc41d39ab748
  Author: Nimish Mishra <neelam.nimish at gmail.com>
  Date:   2022-07-14 (Thu, 14 Jul 2022)

  Changed paths:
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    A flang/test/Semantics/OpenMP/omp-atomic-hint-clause.f90
    A flang/test/Semantics/OpenMP/omp-critical-hint-clause.f90

  Log Message:
  -----------
  [flang][OpenMP] Added semantic checks for hint clause

This patch improves semantic checks for hint clause.
It checks "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."

Reviewed By: peixin

Differential Revision: https://reviews.llvm.org/D127615




More information about the All-commits mailing list