diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2019-01-07 21:30:43 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-01-07 21:30:43 +0000 |
commit | 95d3faa7e80d75dfaf71f63aca109c43b63a4c82 (patch) | |
tree | 50997d7772f60d36eb4044edbd5013c7a300cd9c /lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp | |
parent | 7a9019d1530f9e93dcd04078c404194168339d87 (diff) | |
download | clang-95d3faa7e80d75dfaf71f63aca109c43b63a4c82.tar.gz |
[OPENMP]Add call to __kmpc_push_target_tripcount() function.
Each we create the target regions with the teams distribute inner
region, we can better estimate number of the teams required to execute
the target region. Function __kmpc_push_target_tripcount() is used for
purpose, which accepts device_id and the number of the iterations,
performed by the associated loop.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp')
-rw-r--r-- | lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp b/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp index 403aefbef9..7046ab3aa3 100644 --- a/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp +++ b/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp @@ -705,8 +705,8 @@ getDataSharingMode(CodeGenModule &CGM) { : CGOpenMPRuntimeNVPTX::Generic; } -// Checks if the expression is constant or does not have non-trivial function -// calls. +/// Checks if the expression is constant or does not have non-trivial function +/// calls. static bool isTrivial(ASTContext &Ctx, const Expr * E) { // We can skip constant expressions. // We can skip expressions with trivial calls or simple expressions. |