This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add atomic_define and atomic_ref to list of intrinsics
ClosedPublic

Authored by ktras on Oct 18 2022, 3:08 PM.

Details

Summary

Add the atomic subroutines, atomic_define and atomic_ref, to the
list of intrinsic subroutines. Add a new function CheckAtomicDefineAndRef
to check that for each of these procedures, that their value arguments are
the same type as their atom arguments, and that their 3rd argument is not
coindexed.

Diff Detail

Event Timeline

ktras created this revision.Oct 18 2022, 3:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 18 2022, 3:08 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
ktras requested review of this revision.Oct 18 2022, 3:08 PM
PeteSteinfeld accepted this revision.Oct 19 2022, 8:20 AM

All builds and tests correctly and looks good.

Thanks for implementing these intrinsics!

This revision is now accepted and ready to land.Oct 19 2022, 8:20 AM