This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][IRBuilder] Add final clause to task
ClosedPublic

Authored by shraiysh on May 29 2022, 10:05 PM.

Diff Detail

Unit TestsFailed

Event Timeline

shraiysh created this revision.May 29 2022, 10:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 29 2022, 10:05 PM
shraiysh requested review of this revision.May 29 2022, 10:05 PM
Herald added a project: Restricted Project. · View Herald Transcript
Meinersbur added inline comments.Jun 1 2022, 11:06 AM
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
627

Please document the new parameter in the doxygen comment.

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
1259

[style] LLVM naming conventions have parameters start with an upper case letter.

Also I don't see the point of the Bool suffix. Consider IsFinal or Final.

1340

[style]

llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
4590

[style]

4611

[👍] Great use of any_of

shraiysh updated this revision to Diff 434527.Jun 6 2022, 10:43 AM
shraiysh marked 4 inline comments as done.

Addressed comments. Thanks for the review @Meinersbur.

shraiysh added inline comments.Jun 6 2022, 10:45 AM
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
4611

Thank you! :)

Meinersbur accepted this revision.Jun 6 2022, 1:46 PM

LGTM with a request to describe the llvm::Value argument more precisely.

llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
627

Since IsFinal is not a bool, you cannot pass true/false like for Tied. What is passed is the llvm::Value that decides whether to create a (non-)final task at runtime.

This revision is now accepted and ready to land.Jun 6 2022, 1:46 PM
shraiysh updated this revision to Diff 435986.Jun 10 2022, 11:24 AM

Thanks for pointing it out @Meinersbur. Somehow I mistook it for
a bool value while addressing comments earlier. Corrected the
description now.

This revision was landed with ongoing or failed builds.Jun 10 2022, 11:32 AM
This revision was automatically updated to reflect the committed changes.