Go to file
Alexey Bataev 3854f63aaf [OPENMP] Codegen for 'firstprivate' clause.
This patch generates some helper variables that used as private copies of the corresponding original variables inside an OpenMP 'parallel' directive. These generated variables are initialized by copy using values of the original variables (with the copy constructor, if any). For arrays, initializator is generated for single element and in the codegen procedure this initial value is automatically propagated between all elements of the private copy.
In outlined function, references to original variables are replaced by the references to these private helper variables. At the end of the initialization of the private variables an implicit barier is generated by calling __kmpc_barrier(...) runtime function to be sure that all threads were initialized using original values of the variables.
Differential Revision: http://reviews.llvm.org/D5140

llvm-svn: 219297
2014-10-08 11:35:04 +00:00
clang [OPENMP] Codegen for 'firstprivate' clause. 2014-10-08 11:35:04 +00:00
clang-tools-extra Make clang-tidy's runCheckOnCode actually use the DiagnosticConsumer. 2014-10-07 15:49:36 +00:00
compiler-rt Custom wrappers for DFSanitizing sprintf & snprintf. 2014-10-08 10:01:42 +00:00
debuginfo-tests relax testcase for LLDB output format compatibility. 2014-03-19 23:06:18 +00:00
libclc Implement log1p builtin 2014-10-07 20:22:42 +00:00
libcxx Fix for PR 19616: 'tuple_cat of nested tuples fails in noexcept specification'. Thanks to Louis Dionne for the fix. 2014-10-07 21:42:12 +00:00
libcxxabi Use __atomic_exchange_n instead of Clang's __sync_swap 2014-10-03 20:03:47 +00:00
lld [ELF][AllArchs] Fix includes 2014-10-08 04:12:08 +00:00
lldb Minor comment change to test out svn access 2014-10-08 01:50:37 +00:00
llvm Use the TargetLowering information we already have on the 2014-10-08 09:50:54 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly [Refactor] Rename MemoryAccess::Type as it clashes with llvm::Type 2014-10-08 10:11:33 +00:00