llvm-project/clang/test
Jonas Hahnfeld b6229be460 [OpenMP] Avoid VLAs for some reductions on array sections
In some cases the compiler can deduce the length of an array section
as constants. With this information, VLAs can be avoided in place of
a constant sized array or even a scalar value if the length is 1.
Example:
int a[4], b[2];
pragma omp parallel reduction(+: a[1:2], b[1:1])
{ }

For chained array sections, this optimization is restricted to cases
where all array sections except the last have a constant length 1.
This trivially guarantees that there are no holes in the memory region
that needs to be privatized.
Example:
int c[3][4];
pragma omp parallel reduction(+: c[1:1][1:2])
{ }

Differential Revision: https://reviews.llvm.org/D39136

llvm-svn: 316229
2017-10-20 19:40:40 +00:00
..
ARCMT clang/test/ARCMT/remap-applying.c: Use %/s on the command line of echo(1). 2017-04-28 05:02:52 +00:00
ASTMerge
Analysis [analyzer] Dump signed integers in SymIntExpr and IntSymExpr correctly 2017-10-19 11:58:21 +00:00
CXX Fix nodiscard for volatile references 2017-10-19 15:58:58 +00:00
CodeCompletion Fixed a crash in code completion. 2017-09-08 13:36:38 +00:00
CodeGen [CodeGen] Fix generation of TBAA info for array-to-pointer conversions 2017-10-20 12:35:17 +00:00
CodeGenCUDA CodeGenModule: Always output wchar_size, check LLVM assumptions. 2017-05-20 01:29:55 +00:00
CodeGenCXX Don't suppress instantiation of definitions for variables subject to explicit 2017-10-18 22:45:01 +00:00
CodeGenCoroutines [coroutines] Support coroutine-handle returning await-suspend (i.e symmetric control transfer) 2017-08-25 04:46:54 +00:00
CodeGenObjC [Sema][ObjC] Preserve syntactic sugar when removing 2017-10-10 01:24:33 +00:00
CodeGenObjCXX Fix off-by-one error in block mangling. 2017-09-07 05:41:24 +00:00
CodeGenOpenCL [AMDGPU] Fix bug in enqueued block codegen due to an extra line 2017-10-19 15:56:13 +00:00
Coverage [Analyzer] Add support for displaying cross-file diagnostic paths in HTML output 2017-08-03 18:12:22 +00:00
CoverageMapping [Coverage] Discard deferred region in closing if-else 2017-10-17 07:47:39 +00:00
Driver Allow /showIncludes with /P 2017-10-20 19:18:30 +00:00
FixIt Add a "vexing parse" warning for ambiguity between a variable declaration and a 2017-09-29 23:57:25 +00:00
Format [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
Frontend Extend -ast-dump for CXXRecordDecl to dump the flags from the DefinitionData. 2017-09-22 00:11:15 +00:00
Headers Driver: hoist the `wchar_t` handling to the driver 2017-10-06 23:09:55 +00:00
Import Add support for remembering origins to ExternalASTMerger 2017-09-27 19:57:58 +00:00
Index [libclang] Visit attributes for function and class templates 2017-10-16 23:43:02 +00:00
Integration Fix the test fix from r312181 2017-08-30 23:26:38 +00:00
Layout
Lexer Driver: hoist the `wchar_t` handling to the driver 2017-10-06 23:09:55 +00:00
Misc Add -f[no-]double-square-bracket-attributes as new driver options to control use of [[]] attributes in all language modes. This is the initial implementation of WG14 N2165, which is a proposal to add [[]] attributes to C2x, but also allows you to enable these attributes in C++98, or disable them in C++11 or later. 2017-10-15 15:01:42 +00:00
Modules [modules] When finding the owning module of an instantiated context in template 2017-10-18 01:41:38 +00:00
OpenMP [OpenMP] Avoid VLAs for some reductions on array sections 2017-10-20 19:40:40 +00:00
PCH Implement C++ [basic.link]p8. 2017-09-20 07:22:00 +00:00
Parser Make __builtin_types_compatible_p more like GCC's 2017-10-16 22:58:37 +00:00
Preprocessor Basic: restore {,u}intptr_t on NetBSD/ARM 2017-10-20 04:11:28 +00:00
Profile [Profile] Do not assign counters to functions without bodies 2017-06-30 21:02:14 +00:00
Refactor [clang-refactor] Add "-Inplace" option to the commandline tool. 2017-10-20 12:37:16 +00:00
Rewriter [clang] Remove unit test which uses reverse-iterate flag 2017-08-24 22:40:32 +00:00
Sema Enable support for the [[maybe_unused]] attribute from WG14 N2053 when enabling double square bracket attributes in C code. 2017-10-18 16:59:27 +00:00
SemaCUDA [CUDA] When compilation fails, print the compilation mode. 2017-09-07 18:37:16 +00:00
SemaCXX [Sema] Fix assertion failure when checking for unused variables in a dependent context. 2017-10-19 19:07:13 +00:00
SemaObjC [ObjC] Don't warn on readwrite properties with custom setters that 2017-10-06 19:24:26 +00:00
SemaObjCXX [Sema] Put nullability fix-it after the end of the pointer. 2017-09-28 23:18:49 +00:00
SemaOpenCL [OpenCL] Restrict swizzle length check to OpenCL mode 2017-10-17 17:54:57 +00:00
SemaTemplate Don't suppress instantiation of definitions for variables subject to explicit 2017-10-18 22:45:01 +00:00
TableGen
Tooling [clang-diff] Treat CXXCtorInitializer as a node 2017-08-27 22:52:20 +00:00
Unit [lit] Rename lld and clang lit configs to end in .py 2017-09-21 17:38:13 +00:00
VFS
clang-rename [refactor] add clang-refactor tool with initial testing support and 2017-09-14 10:06:52 +00:00
.clang-format
CMakeLists.txt [test] Enable clang-func-mapping as a test dep with the analyzer 2017-09-22 22:17:10 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py Resubmit "[lit] Raise the logic for enabling clang & lld substitutions to llvm." 2017-10-17 23:43:36 +00:00
lit.site.cfg.py.in [lit] Add host_cxx to lit config 2017-10-10 17:53:45 +00:00
make_test_dirs.pl