llvm-project/clang/test
Alexey Bataev 38e8953352 [OPENMP] Codegen for 'lastprivate' clause in 'for' directive.
#pragma omp for lastprivate(<var>)
for (i = a; i < b; ++b)
  <BODY>;

This construct is translated into something like:

  <last_iter> = alloca i32
  <lastprivate_var> = alloca <type>
  <last_iter> = 0
  ; No initializer for simple variables or a default constructor is called for objects.
  ; For arrays perform element by element initialization by the call of the default constructor.
  ...
  OMP_FOR_START(...,<last_iter>, ..); sets <last_iter> to 1 if this is the last iteration.
  <BODY>
  ...
  OMP_FOR_END
  if (<last_iter> != 0) {
    <var> = <lastprivate_var> ; Update original variable with the lastprivate value.
  }
  call __kmpc_cancel_barrier() ; an implicit barrier to avoid possible data race.

Differential Revision: http://reviews.llvm.org/D8658

llvm-svn: 235074
2015-04-16 04:54:05 +00:00
..
ARCMT [Objective-C SDK modernizer]. Patch to convert setter/getter 2015-04-02 21:36:03 +00:00
ASTMerge
Analysis [analyzer] This implements potential undefbehavior.ZeroAllocDereference checker. 2015-04-14 14:18:04 +00:00
CXX Improve the error message for assigning to read-only variables. 2015-04-11 01:53:13 +00:00
CodeCompletion
CodeGen Don't crash when a selectany symbol would get common linkage 2015-04-15 23:04:24 +00:00
CodeGenCUDA Fix addrspace when emitting constructors of static local variables 2015-03-25 20:06:28 +00:00
CodeGenCXX Revert "[CodeGen] Fix crash with duplicated mangled name." 2015-04-15 08:44:40 +00:00
CodeGenObjC Revert r234581, it might have caused a few miscompiles in Chromium. 2015-04-11 23:51:38 +00:00
CodeGenObjCXX Revert r234581, it might have caused a few miscompiles in Chromium. 2015-04-11 23:51:38 +00:00
CodeGenOpenCL Remove the cl-no-signed-zeros cc1 option 2015-04-04 14:54:24 +00:00
Coverage clang/test/Coverage/html-diagnostics.c: Use find(1) to avoid globbing. 2014-11-04 13:05:10 +00:00
CoverageMapping InstrProf: Handle whitespace and comments at the ends of macros 2015-03-25 04:13:49 +00:00
Driver clang-cl: support -fsyntax-only (PR23197) 2015-04-15 10:02:21 +00:00
FixIt Unify warnings/errors from "maybe you meant" to "did you mean". 2015-04-02 22:10:06 +00:00
Format
Frontend Fix typo in my last commit. 2015-03-03 00:12:08 +00:00
Headers Make this test not rely on a backend being registered. 2015-04-03 01:27:02 +00:00
Index [libclang] Add functions to get information about fields. 2015-04-13 16:55:04 +00:00
Integration
Layout PR6037 2015-01-19 01:44:02 +00:00
Lexer [lex] Don't read past the end of the buffer 2015-03-29 14:11:37 +00:00
Misc Generate a diagnostic when a catch handler cannot execute due to class hierarchy inversion with regards to other catch handlers for the same block. 2015-04-08 00:05:29 +00:00
Modules [modules] Allow a function template definition if we have a pre-existing but not visible definition of the same template. 2015-03-27 21:57:41 +00:00
OpenMP [OPENMP] Codegen for 'lastprivate' clause in 'for' directive. 2015-04-16 04:54:05 +00:00
PCH Use raw_pwrite_stream in clang. 2015-04-14 15:15:49 +00:00
Parser [parse] Don't crash on alternative operator spellings from macros in c++11 attributes. 2015-03-29 19:25:07 +00:00
Preprocessor [Mips] Generate warning for invalid '-mnan' and '-march' combinations 2015-04-14 12:49:08 +00:00
Profile Fix this test so it doesn't try to open a file to write to the source tree 2015-04-06 16:33:18 +00:00
Rewriter [Objective-C modern translation]. Patch to fix type of 2015-04-09 18:36:50 +00:00
Sema Comment parsing: fix an assertion failure on a verbatim block terminated with "**/" 2015-04-15 23:45:43 +00:00
SemaCUDA Create a frontend flag to disable CUDA cross-target call checks 2015-04-15 22:27:06 +00:00
SemaCXX Fix for PR20402 in -Wconsumed. 2015-04-15 22:32:44 +00:00
SemaObjC [Objective-C Sema]This patch fixes the warning when clang issues 2015-04-15 17:26:21 +00:00
SemaObjCXX [Objective-C Sema] Fixes a typo which did not allow 2015-04-10 22:07:47 +00:00
SemaOpenCL Restores r228382, which was reverted in r228406. 2015-02-25 05:48:23 +00:00
SemaTemplate Improve the error message for assigning to read-only variables. 2015-04-11 01:53:13 +00:00
TableGen
Tooling Remove "REQUIRES:shell" from tests. They work for me. 2014-11-04 13:41:33 +00:00
Unit
VFS DebugInfo: Move new hierarchy into place (clang) 2015-03-03 17:25:55 +00:00
.clang-format
CMakeLists.txt Revert "Wrap clang module files in a Mach-O, ELF, or COFF container." 2015-02-25 02:44:04 +00:00
Makefile Fix makefile for debuginfo-tests execution. 2014-10-17 23:50:47 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Check for backtraces in tests which are verifying pretty stack traces from a crashing clang. 2015-02-10 19:53:38 +00:00
lit.site.cfg.in Check for backtraces in tests which are verifying pretty stack traces from a crashing clang. 2015-02-10 19:53:38 +00:00
make_test_dirs.pl