]> granicus.if.org Git - clang/commit
[OPENMP]Add call to __kmpc_push_target_tripcount() function.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 7 Jan 2019 21:30:43 +0000 (21:30 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 7 Jan 2019 21:30:43 +0000 (21:30 +0000)
commit95d3faa7e80d75dfaf71f63aca109c43b63a4c82
tree50997d7772f60d36eb4044edbd5013c7a300cd9c
parent7a9019d1530f9e93dcd04078c404194168339d87
[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
12 files changed:
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntime.h
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
lib/CodeGen/CGStmtOpenMP.cpp
test/OpenMP/target_teams_distribute_parallel_for_codegen.cpp
test/OpenMP/target_teams_distribute_parallel_for_if_codegen.cpp
test/OpenMP/target_teams_distribute_parallel_for_simd_codegen.cpp
test/OpenMP/target_teams_distribute_parallel_for_simd_if_codegen.cpp
test/OpenMP/teams_distribute_codegen.cpp
test/OpenMP/teams_distribute_parallel_for_codegen.cpp
test/OpenMP/teams_distribute_parallel_for_simd_codegen.cpp
test/OpenMP/teams_distribute_simd_codegen.cpp