[all-commits] [llvm/llvm-project] 81dac7: [Flang][OpenMP] Add Semantic Checks for Atomic Cap...

harishch4 via All-commits all-commits at lists.llvm.org
Tue Sep 24 21:00:07 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81dac7d613c945cf56925162081eaf4a998cea8a
      https://github.com/llvm/llvm-project/commit/81dac7d613c945cf56925162081eaf4a998cea8a
  Author: harishch4 <harishcse44 at gmail.com>
  Date:   2024-09-25 (Wed, 25 Sep 2024)

  Changed paths:
    M flang/include/flang/Semantics/tools.h
    M flang/lib/Lower/DirectivesCommon.h
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    M flang/test/Semantics/OpenMP/omp-atomic-assignment-stmt.f90
    M flang/test/Semantics/OpenMP/requires-atomic01.f90
    M flang/test/Semantics/OpenMP/requires-atomic02.f90

  Log Message:
  -----------
  [Flang][OpenMP] Add Semantic Checks for Atomic Capture Construct (#108516)

This PR adds semantic checks to ensure the atomic capture construct
conforms to one of the valid forms:
[capture-stmt, update-stmt], [capture-stmt, write-stmt] or [update-stmt,
capture-stmt].

Functions checkForSymbolMatch and checkForSingleVariableOnRHS are moved
from flang/lib/Lower/DirectivesCommon.h to flang/Semantics/tools.h for
reuse.

---------

Co-authored-by: Kiran Chandramohan <kiranchandramohan at gmail.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