llvm-project/clang/test
Carlo Bertolli b74bfc80a4 [OPENMP] Implementation of codegen for firstprivate clause of target directive
This patch implements the following aspects:

It extends sema to check that a variable is not reference in both a map clause and firstprivate or private. This is needed to ensure correct functioning at codegen level, apart from being useful for the user.
It implements firstprivate for target in codegen. The implementation applies to both host and nvptx devices.
It adds regression tests for codegen of firstprivate, host and device side when using the host as device, and nvptx side.
Please note that the regression test for nvptx codegen is missing VLAs. This is because VLAs currently require saving and restoring the stack which appears not to be a supported operation by nvptx backend.

It adds a check in sema regression tests for target map, firstprivate, and private clauses.

http://reviews.llvm.org/D18203

llvm-svn: 263837
2016-03-18 21:43:32 +00:00
..
ARCMT Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
ASTMerge [ASTImporter] Implement missing VisitAccessSpecDecl function in ASTImporter class. 2016-02-18 23:08:36 +00:00
Analysis [analyzer] Fix missed leak from MSVC specific allocation functions 2016-03-08 01:21:51 +00:00
CXX Implement support for [[maybe_unused]] in C++1z that is based off existing support for unused, and treat it as an extension pre-C++1z. This also means extending the existing unused attribute so that it can be placed on an enum and enumerator, in addition to the other subjects. 2016-03-09 16:48:08 +00:00
CodeCompletion Fix ObjCMethodDecl::findPropertyDecl for class properties. 2016-03-11 21:14:40 +00:00
CodeGen Add -fnative-half-arguments-and-returns 2016-03-18 16:58:36 +00:00
CodeGenCUDA Fixed test failure platforms with name mangling different from Linux. 2016-03-02 21:03:20 +00:00
CodeGenCXX Revert "For MS ABI, emit dllexport friend functions defined inline in class" 2016-03-17 20:06:58 +00:00
CodeGenObjC Convert some ObjC msgSends to runtime calls. 2016-03-16 00:33:21 +00:00
CodeGenObjCXX Mangle extended qualifiers in the proper order and mangle the 2016-03-01 22:18:03 +00:00
CodeGenOpenCL AMDGPU: Add builtins for recently added intrinsics 2016-02-27 09:54:43 +00:00
Coverage Stop messing with the 'g' group of options in CompilerInvocation. 2015-10-08 04:24:12 +00:00
CoverageMapping [Coverage] Fix the start/end locations of switch statements 2016-03-04 08:07:15 +00:00
Driver [clang-cl] Allow use of -gline-tables-only 2016-03-18 18:42:56 +00:00
FixIt [Lit Test] Updated 26 Lit tests to be C++11 compatible. 2015-11-11 19:34:47 +00:00
Format Fix clang-format test. I believe that the new behavior is better. 2015-11-23 08:50:52 +00:00
Frontend Make it possible for AST plugins to enable themselves by default 2016-03-15 12:51:40 +00:00
Headers test/Headers/float.c: fix theoretical edge values 2016-02-12 19:24:36 +00:00
Index [index] Make sure that declarations of builtin functions are indexed. 2016-03-17 04:28:19 +00:00
Integration
Layout [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions, by Denis Zobnin. 2015-11-20 07:02:57 +00:00
Lexer Update diagnostics now that hexadecimal literals look likely to be part of C++17. 2016-03-04 22:32:06 +00:00
Misc Update test case for llvm summary format changes in D17592. 2016-03-11 18:52:42 +00:00
Modules Revert "Reapply [VFS] Add 'overlay-relative' field to YAML files" 2016-03-17 21:30:55 +00:00
OpenMP [OPENMP] Implementation of codegen for firstprivate clause of target directive 2016-03-18 21:43:32 +00:00
PCH P0188R1: add support for standard [[fallthrough]] attribute. This is almost 2016-03-08 00:32:55 +00:00
Parser Silence duplicate diagnostics because parsing of a standards-based attribute triggers parsing diagnostics that may also be picked up during semantic analysis. 2016-03-08 21:31:32 +00:00
Preprocessor Add more ARM Cortex-R8 regression tests to Clang. 2016-03-16 10:21:04 +00:00
Profile [PGO] Change profile use cc1 option to handle IR level profiles 2016-03-02 20:59:36 +00:00
Rewriter Stop messing with the 'g' group of options in CompilerInvocation. 2015-10-08 04:24:12 +00:00
Sema Fix printing of anonymous struct typedefs. 2016-03-18 21:35:59 +00:00
SemaCUDA [CUDA] do not allow attribute-based overloading for __global__ functions. 2016-02-24 21:54:45 +00:00
SemaCXX Revert r263687 for ubsan bot failure. 2016-03-17 22:13:50 +00:00
SemaObjC [Objective-c] Fix a crash in WeakObjectProfileTy::getBaseInfo. 2016-03-18 19:03:50 +00:00
SemaObjCXX Improve some infrastructure for extended parameter infos and 2016-03-03 00:10:03 +00:00
SemaOpenCL [OpenCL] Refine pipe builtin support 2016-03-04 07:11:16 +00:00
SemaTemplate Add missing triple to instantiate-sizeof.cpp test 2016-03-11 19:17:53 +00:00
TableGen
Tooling int function without a return statement is invalid C++. 2015-11-27 18:10:49 +00:00
Unit
VFS [VFS] Fix status() of opened redirected file 2015-12-10 23:41:39 +00:00
.clang-format
CMakeLists.txt [CMake] Add convenience target clang-test-depends to build test dependencies. 2016-03-02 00:27:15 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Revert r260266 (and r260276), "clang-cl: Enable plugins on Windows" 2016-02-11 16:43:08 +00:00
lit.site.cfg.in [modules] Compress files embedded into a .pcm file, to reduce the disk usage of -fembed-all-files mode. 2016-02-06 02:06:43 +00:00
make_test_dirs.pl