[PATCH] D10753: [OpenMP] Add TLS-based implementation for threadprivate directive

Samuel Antao sfantao at us.ibm.com
Thu Jul 9 14:37:10 PDT 2015


sfantao updated this revision to Diff 29392.
sfantao added a comment.

Leverage the TLS_dynamic implementation for OpenMP threadprivate and fix the regression tests accordingly.

Sema was changed to allow thread local vars to be declared thread private If TLS support is enabled for OpenMP codegen. Using thread locals in threadprivate is only a problem for the no-tls implementation.

The use of tls for OpenMP thread private is set to 'true' by default for PPC targets, as it has shown to be about 10x faster than the no-tls implementation.


http://reviews.llvm.org/D10753

Files:
  include/clang/Basic/LangOptions.def
  include/clang/Driver/Options.td
  lib/AST/Decl.cpp
  lib/CodeGen/CGOpenMPRuntime.cpp
  lib/CodeGen/CodeGenModule.cpp
  lib/Driver/Tools.cpp
  lib/Frontend/CompilerInvocation.cpp
  lib/Sema/SemaOpenMP.cpp
  test/Driver/ppc-features.cpp
  test/OpenMP/parallel_copyin_codegen.cpp
  test/OpenMP/single_codegen.cpp
  test/OpenMP/threadprivate_ast_print.cpp
  test/OpenMP/threadprivate_codegen.cpp
  test/OpenMP/threadprivate_messages.cpp
  test/PCH/chain-openmp-threadprivate.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10753.29392.patch
Type: text/x-patch
Size: 52375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150709/df462c93/attachment.bin>


More information about the cfe-commits mailing list