[all-commits] [llvm/llvm-project] c46d73: [flang][openacc] Check atomic update lhs/rhs are s...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Sep 12 11:00:14 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c46d732fd739d39a65d155623d58128f8665ba47
      https://github.com/llvm/llvm-project/commit/c46d732fd739d39a65d155623d58128f8665ba47
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2023-09-12 (Tue, 12 Sep 2023)

  Changed paths:
    M flang/lib/Semantics/check-acc-structure.cpp
    M flang/lib/Semantics/check-acc-structure.h
    M flang/test/Semantics/OpenACC/acc-atomic-validity.f90

  Log Message:
  -----------
  [flang][openacc] Check atomic update lhs/rhs are scalar (#66113)

Add semantic check for `!$acc atomic update`. RHS and LHS of the update
assignment must be scalar.

Without this check the code was going all the way to MLIR and trigger a
verifier error. This gives better user error message.




More information about the All-commits mailing list