[flang] Add atomic_cas to the list of intrinsics
authorKatherine Rasmussen <krasmussen@lbl.gov>
Thu, 13 Oct 2022 00:32:14 +0000 (17:32 -0700)
committerKatherine Rasmussen <krasmussen@lbl.gov>
Tue, 18 Oct 2022 17:20:12 +0000 (11:20 -0600)
commit1eb5cd020c8782166c13a4d14b2a911e3d00de3d
tree2d61f6e8519a0e832aeaf21b367ff2284b8b2693
parentf5c747bfbe36b8f53e6fe2d85ffcaecba6d7153c
[flang] Add atomic_cas to the list of intrinsics

Add the atomic subroutine, atomic_cas, to the list of intrinsic
subroutines and check one of its arguments for a coindexed object.
Create a new function, CheckAtomicKind, that will be used for the
atomic subroutines that have arguments that can be either of type
int and of kind atomic_int_kind or of type logical and of kind
atomic_logical_kind.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D135835
flang/lib/Evaluate/intrinsics.cpp
flang/test/Semantics/atomic03.f90