[PATCH] D18286: [OPENMP] private and firstprivate clauses of teams code generation for nvptx
Carlo Bertolli via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 18 15:37:36 PDT 2016
carlo.bertolli created this revision.
carlo.bertolli added reviewers: ABataev, kkwli0, Hahnfeld.
carlo.bertolli added subscribers: sfantao, caomhin, arpith-jacob, cfe-commits.
carlo.bertolli set the repository for this revision to rL LLVM.
Herald added a subscriber: jholewinski.
This patch adds initial support for codegen of private and firstprivate clauses of nvptx.
I simply use the same support in host codegeneration, even though optimizations are possible.
Optimizations may be done by having codegen first analyze data sharing attributes on target and teams (e.g. target firstprivate and teams private on the same variable can drop firstprivate on target). These optimizations will be subject of a successive patch.
Repository:
rL LLVM
http://reviews.llvm.org/D18286
Files:
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
test/OpenMP/nvptx_teams_firstprivate_codegen.cpp
test/OpenMP/nvptx_teams_private_codegen.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18286.51080.patch
Type: text/x-patch
Size: 62617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160318/68bb631f/attachment-0001.bin>
More information about the cfe-commits
mailing list