This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Initial parsing and semantic analysis support for 'strict' modifier with 'num_tasks' clause on 'taskloop' construct
ClosedPublic

Authored by mdfazlay on Nov 18 2022, 1:26 PM.

Details

Summary

This patch gives basic parsing and semantic analysis support for 'strict' modifier with 'num_tasks' clause on 'taskloop' construct introduced in OpenMP 5.1 ( section 2.12.2)

Diff Detail

Event Timeline

mdfazlay created this revision.Nov 18 2022, 1:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2022, 1:26 PM
mdfazlay requested review of this revision.Nov 18 2022, 1:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2022, 1:26 PM
mdfazlay retitled this revision from [OpenMP] Initial parsing and semantic analysis support for 'strict' modifier with 'grainsize' clause on 'taskloop' construct to [OpenMP] Initial parsing and semantic analysis support for 'strict' modifier with 'num_tasks' clause on 'taskloop' construct.Nov 18 2022, 1:29 PM
ABataev added inline comments.Nov 18 2022, 1:44 PM
clang/lib/Parse/ParseOpenMP.cpp
3915–3916

Check that it is ':

mdfazlay added inline comments.Nov 18 2022, 3:12 PM
clang/lib/Parse/ParseOpenMP.cpp
3915–3916

I believe we do it in line 3910 ( if (NextToken().is(tok::colon)))

This revision is now accepted and ready to land.Nov 18 2022, 3:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2022, 4:27 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript