Go to file
Alexey Bataev 1d67713b44 [OPENMP] Codegen for 'if' clause in 'task' directive.
If condition evaluates to true, the code executes task by calling @__kmpc_omp_task() runtime function.
If condition evaluates to false, the code executes serial version of the code by executing the following code:

call void @__kmpc_omp_task_begin_if0(<loc>, <threadid>, <task_t_ptr, returned by @__kmpc_omp_task_alloc()>);
proxy_task_entry(<gtid>, <task_t_ptr, returned by @__kmpc_omp_task_alloc()>);
call void @__kmpc_omp_task_complete_if0(<loc>, <threadid>, <task_t_ptr, returned by @__kmpc_omp_task_alloc()>);
Also it checks if the condition is constant and if it is constant it evaluates its value and then generates either parallel version of the code (if the condition evaluates to true), or the serial version of the code (if the condition evaluates to false).
Differential Revision: http://reviews.llvm.org/D9143

llvm-svn: 235507
2015-04-22 13:57:31 +00:00
clang [OPENMP] Codegen for 'if' clause in 'task' directive. 2015-04-22 13:57:31 +00:00
clang-tools-extra [clang-tidy] Remove static StringSet in favor of binary search. 2015-04-17 13:52:08 +00:00
compiler-rt [sanitizer] Plug a memory leak in symbolization code. 2015-04-21 20:05:10 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc configure: Add --enable-runtime-subnormal option 2015-04-20 18:49:50 +00:00
libcxx Remove constexpr support for std::apply because it introduces regressions. 2015-04-19 15:32:52 +00:00
libcxxabi Declare __cxa_new_handler as extern "C", or it declares a new variable 2015-04-15 15:35:56 +00:00
lld [ARM] Update R_ARM_TARGET1 command line option names (remove prefix 'arm-') 2015-04-22 11:58:09 +00:00
lldb XFAILing a single test in TestConcurrentEvents 2015-04-22 13:20:03 +00:00
llgo [llgo] add buildbot-slave config 2015-04-08 01:41:46 +00:00
llvm [mips][microMIPSr6] Implement mips32 to microMIPSr6 mapping support 2015-04-22 13:27:34 +00:00
openmp updated copyright date to 2015 2015-04-16 11:10:17 +00:00
polly Remove target triples from test cases 2015-04-21 14:28:02 +00:00