[PATCH] D135835: [flang] Add atomic_cas to the list of intrinsics

Katherine Rasmussen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 12 17:51:30 PDT 2022


ktras created this revision.
ktras added reviewers: klausler, jeanPerier, PeteSteinfeld, rouson, hussainjk, pmccormick, sscalpone.
ktras added projects: Flang, LLVM.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
ktras requested review of this revision.

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`. In this patch, this function is only called once, but it will be called in an upcoming planned patch, which is why it is an additional function, as opposed to using the code in place of the function call.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135835

Files:
  flang/lib/Evaluate/intrinsics.cpp
  flang/test/Semantics/atomic03.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135835.467320.patch
Type: text/x-patch
Size: 4464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221013/742878e9/attachment.bin>


More information about the llvm-commits mailing list