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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/lib/Evaluate/intrinsics.cpp | ||
---|---|---|
1347 | If arg must not be a nullptr, better use const ActualArgument &arg here and push the responsibility of passing something non null on the caller. |
Comment Actions
Update function signature of new function, CheckAtomicKind, based on reviewer feedback.
flang/lib/Evaluate/intrinsics.cpp | ||
---|---|---|
1347 | Thanks, the changes have been made. |
If arg must not be a nullptr, better use const ActualArgument &arg here and push the responsibility of passing something non null on the caller.