This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP52] Deprecation of 'depend' clause in ordered directive.
ClosedPublic

Authored by jyu2 on Jul 6 2023, 6:35 PM.

Details

Summary

This is just add warning when using depend clause in ordered directive for openmp52 and up.

BTW, I need change test ordered_doacross_codegen.c since I can not use macro _OPENMP >= 202111 due to use of -fopenmp-simd.

Diff Detail

Event Timeline

jyu2 created this revision.Jul 6 2023, 6:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2023, 6:35 PM
jyu2 requested review of this revision.Jul 6 2023, 6:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2023, 6:35 PM
This revision is now accepted and ready to land.Jul 6 2023, 8:57 PM
ABataev added inline comments.Jul 7 2023, 5:28 AM
clang/include/clang/Basic/DiagnosticParseKinds.td
1532

denpend->depend
instaed->instead

aaron.ballman added inline comments.
clang/include/clang/Basic/DiagnosticParseKinds.td
1532

Also, wrap to 80 columns and put syntax elements in single quotes. e.g., 'depend' clause for 'ordered'

jyu2 updated this revision to Diff 538162.Jul 7 2023, 8:53 AM

Thanks @jdoerfert, @ABataev and @aaron.ballman for the code reviews. This is addressing comments.

clang/include/clang/Basic/DiagnosticParseKinds.td
1532

Thanks Alexey and Aaron for the review!!! Just a question, do you know why git-clang-format does not format .td file now. It was working before.
Thanks.
Jennifer

aaron.ballman added inline comments.Jul 7 2023, 11:03 AM
clang/include/clang/Basic/DiagnosticParseKinds.td
1532

I'm not certain; it's never worked properly for me in a .td file (but I use a plugin in Visual Studio). Either it does no formatting, or it formats very oddly because it doesn't understand the syntax.

This revision was landed with ongoing or failed builds.Jul 7 2023, 1:20 PM
This revision was automatically updated to reflect the committed changes.