llvm-project/clang/lib
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
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST Fix nodiscard for volatile references 2017-10-19 15:58:58 +00:00
ASTMatchers [ASTMatchers] Don't create a copy of a std::set when iterating over it. 2017-10-10 07:21:34 +00:00
Analysis [Analyzer] Always use non-reference types when creating expressions in BodyFarm. 2017-10-17 22:28:18 +00:00
Basic Basic: restore {,u}intptr_t on NetBSD/ARM 2017-10-20 04:11:28 +00:00
CodeGen [OpenMP] Avoid VLAs for some reductions on array sections 2017-10-20 19:40:40 +00:00
CrossTU Fix implicit-fallthrough warning by adding missing break 2017-09-24 15:17:46 +00:00
Driver Allow /showIncludes with /P 2017-10-20 19:18:30 +00:00
Edit [clang] Fix format specifiers fixits for nested macros 2017-06-20 20:46:58 +00:00
Format [clang-format] Sort whole block of using declarations while partially formatting 2017-10-18 22:13:25 +00:00
Frontend Revert r316193. 2017-10-20 00:25:07 +00:00
FrontendTool [CMake] Use #cmakedefine01 for CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER) 2017-10-18 05:21:17 +00:00
Headers [Headers] Fix typoed __ARM_DWARF_EH__ ifdefs 2017-10-19 07:40:45 +00:00
Index Fix indexer crash for default template template parameter value 2017-10-10 21:09:49 +00:00
Lex 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
Parse 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
Rewrite [Analyzer] Add support for displaying cross-file diagnostic paths in HTML output 2017-08-03 18:12:22 +00:00
Sema [OpenMP] Avoid VLAs for some reductions on array sections 2017-10-20 19:40:40 +00:00
Serialization Support for destroying operator delete, per C++2a proposal P0722. 2017-10-13 01:55:36 +00:00
StaticAnalyzer [analyzer] Dump signed integers in SymIntExpr and IntSymExpr correctly 2017-10-19 11:58:21 +00:00
Tooling Revert r316193. 2017-10-20 00:25:07 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00