This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add `stopped_images` to list of intrinsics and add test
ClosedPublic

Authored by ktras on Jul 11 2022, 1:20 PM.

Details

Summary

Add stopped_images to the list of intrinsic functions. Add a semantics test for stopped_images.

Diff Detail

Event Timeline

ktras created this revision.Jul 11 2022, 1:20 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
ktras requested review of this revision.Jul 11 2022, 1:20 PM
ngeorge1098 requested changes to this revision.Jul 14 2022, 3:35 PM
This comment was removed by ngeorge1098.
This revision now requires changes to proceed.Jul 14 2022, 3:35 PM
ngeorge1098 added a comment.EditedJul 14 2022, 3:40 PM

I would add error directives for repeated keywords in the semantics test.

stopped = stopped_images(team=home, team=league(1))

stopped = stopped_images(kind=c_int32_t, kind=c_int64_t)
ktras updated this revision to Diff 448211.Jul 27 2022, 4:44 PM

Add additional non-conforming statements to the stopped_images test.

This comment was removed by ngeorge1098.
ngeorge1098 accepted this revision.Aug 1 2022, 10:00 AM

The semantics test looks good to me.

This revision is now accepted and ready to land.Aug 1 2022, 10:00 AM
ktras added a comment.Aug 1 2022, 10:49 AM

Thanks @ngeorge1098 for reviewing the test.

Could one of the reviewers (@klausler, @jeanPerier, @PeteSteinfeld, @craig.rasmussen) who has experience with flang/lib/Evaluate/intrinsics.cpp review my edits to add stopped_images to the list of intrinsic functions?

klausler accepted this revision.Aug 1 2022, 10:55 AM
ktras added a comment.Aug 2 2022, 5:02 PM

Thanks for the review @klausler.