[PATCH] D78075: [Clang][OpenMP] Added support for nowait target in CodeGen
Shilei Tian via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 29 13:36:24 PDT 2020
tianshilei1992 updated this revision to Diff 274223.
tianshilei1992 added a comment.
Herald added a subscriber: sstefan1.
Will update failed tests later
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78075/new/
https://reviews.llvm.org/D78075
Files:
clang/lib/CodeGen/CGOpenMPRuntime.cpp
Index: clang/lib/CodeGen/CGOpenMPRuntime.cpp
===================================================================
--- clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -9297,7 +9297,8 @@
assert(OutlinedFn && "Invalid outlined function!");
- const bool RequiresOuterTask = D.hasClausesOfKind<OMPDependClause>();
+ const bool RequiresOuterTask = D.hasClausesOfKind<OMPDependClause>() ||
+ D.hasClausesOfKind<OMPNowaitClause>();
llvm::SmallVector<llvm::Value *, 16> CapturedVars;
const CapturedStmt &CS = *D.getCapturedStmt(OMPD_target);
auto &&ArgsCodegen = [&CS, &CapturedVars](CodeGenFunction &CGF,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78075.274223.patch
Type: text/x-patch
Size: 681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200629/e5af6711/attachment-0001.bin>
More information about the cfe-commits
mailing list