[PATCH] [OPENMP] Codegen for 'num_threads' clause in 'parallel' directive

Alexey Bataev a.bataev at hotmail.com
Tue Sep 2 00:25:13 PDT 2014


Hi doug.gregor, hfinkel, rjmccall, rsmith, fraggamuffin, ejstotzer,

This patch generates call to "__kmpc_push_num_threads(ident_t *loc, kmp_int32 global_tid, kmp_int32 num_threads);" library function before calling "__kmpc_fork_call" each time there is an associated "num_threads" clause in the "omp parallel" directive.

http://reviews.llvm.org/D5145

Files:
  include/clang/AST/StmtOpenMP.h
  lib/AST/Stmt.cpp
  lib/CodeGen/CGOpenMPRuntime.cpp
  lib/CodeGen/CGOpenMPRuntime.h
  lib/CodeGen/CGStmtOpenMP.cpp
  lib/Sema/SemaOpenMP.cpp
  test/OpenMP/parallel_num_threads_codegen.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5145.13153.patch
Type: text/x-patch
Size: 9870 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140902/f7505e1c/attachment.bin>


More information about the cfe-commits mailing list