This is an archive of the discontinued LLVM Phabricator instance.

[clang][OpenMP] Add IRBuilder support for taskgroup
ClosedPublic

Authored by shraiysh on Jul 18 2022, 2:46 AM.

Details

Summary

This patch makes use of OMPIRBuilder support for codegen of taskgroup
construct in clang.

Depends on D128203

Diff Detail

Event Timeline

shraiysh created this revision.Jul 18 2022, 2:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2022, 2:46 AM
shraiysh requested review of this revision.Jul 18 2022, 2:46 AM
Herald added a project: Restricted Project. · View Herald Transcript
Meinersbur added inline comments.Jul 18 2022, 12:46 PM
clang/lib/CodeGen/CGStmtOpenMP.cpp
5215

Instead of S.clauses().size() == 0, could we make it more explicit and extendable by adding a function like isSupportedbyOpenMPIRBuilder(S)?

shraiysh updated this revision to Diff 445697.Jul 18 2022, 10:46 PM

Moved checking to isSupportedByOpenMPIRBuilder.

clang/lib/CodeGen/CGStmtOpenMP.cpp
5215

Done.

Meinersbur accepted this revision.Jul 19 2022, 12:54 PM

LGTM

clang/lib/CodeGen/CGStmtOpenMP.cpp
5207–5209

simplification

This revision is now accepted and ready to land.Jul 19 2022, 12:54 PM
shraiysh updated this revision to Diff 446355.Jul 20 2022, 10:23 PM

Rebase with main

This revision was landed with ongoing or failed builds.Jul 20 2022, 10:44 PM
This revision was automatically updated to reflect the committed changes.