This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP51]Initial support for novariants clause
ClosedPublic

Authored by jyu2 on Mar 31 2021, 12:53 PM.

Details

Summary

Added basic parsing/sema/serialization support for the 'novariants' clause.

Diff Detail

Event Timeline

jyu2 created this revision.Mar 31 2021, 12:53 PM
jyu2 requested review of this revision.Mar 31 2021, 12:53 PM
jyu2 updated this revision to Diff 334956.Apr 2 2021, 7:47 AM

Fix format problem as suggested.

ABataev added inline comments.Apr 2 2021, 8:15 AM
clang/include/clang/AST/OpenMPClause.h
7659

final

7696–7698

Can you make it private?

clang/lib/AST/OpenMPClause.cpp
1830

I would add a check for non-nullptr Node->getCondition()

jyu2 updated this revision to Diff 334969.Apr 2 2021, 9:31 AM

Thank you, Alexey for the review!!!
This changes have been addressed as you suggested.

jyu2 marked 3 inline comments as done.Apr 2 2021, 9:32 AM
ABataev added inline comments.Apr 2 2021, 9:56 AM
clang/lib/Sema/SemaOpenMP.cpp
13567–13568

What about other directives?

jyu2 added inline comments.Apr 2 2021, 11:35 AM
clang/lib/Sema/SemaOpenMP.cpp
13567–13568

Hi Alexey,

As of now "novariants" clause only allowed in disapatch directive. And dispatch directive can have implicit task directive. So for other directives will be unreachable. Am I missing something here?
Thanks.
Jennifer

ABataev added inline comments.Apr 2 2021, 11:42 AM
clang/lib/Sema/SemaOpenMP.cpp
13567–13568

No, I just was not aware of it.

This revision is now accepted and ready to land.Apr 2 2021, 11:42 AM