This is an archive of the discontinued LLVM Phabricator instance.

[Clang][OpenMP] Support for omp nothing
ClosedPublic

Authored by koops on Apr 7 2022, 12:40 AM.

Details

Diff Detail

Event Timeline

koops created this revision.Apr 7 2022, 12:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2022, 12:40 AM
koops requested review of this revision.Apr 7 2022, 12:40 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 7 2022, 12:40 AM
tianshilei1992 retitled this revision from Patch for : omp nothing to [Clang][OpenMP] Support for omp nothing.May 14 2022, 5:18 AM

Can we have test for right usage?

clang/lib/Parse/ParseOpenMP.cpp
2496

clang-format plz, and remove the { and } as there is only one statement.

koops updated this revision to Diff 430933.May 20 2022, 3:51 AM

changes to support clang format.

koops added a comment.May 20 2022, 3:55 AM

Can we have test for right usage?

I do not understand "test for right usage". From the specifications the only right usage for "omp nothing" will be in the metadirective. If you have meeting notes when "omp nothing" was framed please share it.

koops added a comment.May 23 2022, 9:17 AM

Can we have test for right usage?

I do not understand "test for right usage". From the specifications the only right usage for "omp nothing" will be in the metadirective. If you have meeting notes when "omp nothing" was framed please share it.

In gcc sources support "#pragma omp nothing" has been implemented. Test cases for it are in:

gcc/gcc/testsuite/c-c++-common/gomp/nothing-1.c
gcc/gcc/testsuite/c-c++-common/gomp/nothing-2.c

These 2 test cases indicate a similar kind of test cases as those which have been added in this support for "omp nothing". There does not seem to be a test for right usage.

This revision is now accepted and ready to land.May 23 2022, 2:46 PM
This revision was landed with ongoing or failed builds.May 24 2022, 10:00 PM
This revision was automatically updated to reflect the committed changes.