summaryrefslogtreecommitdiff
path: root/clang/test/OpenMP/for_simd_aligned_messages.cpp
AgeCommit message (Collapse)Author
2020-08-19Explain why the array bound is non-constant in VLA diagnostics.Richard Smith
In passing, also use a more precise diagnostic to explain why an expression is not an ICE if it's not of integral type.
2019-07-08[OPENMP]Add -Wunintialized to the erroneous tests for future fix PR42392,Alexey Bataev
NFC. llvm-svn: 365334
2017-12-29[OPENMP] Support for -fopenmp-simd option with compilation of simd loopsAlexey Bataev
only. Added support for -fopenmp-simd option that allows compilation of simd-based constructs without emission of OpenMP runtime calls. llvm-svn: 321560
2017-06-13Revert "Revert r301742 which made ExprConstant checking apply to all ↵Diana Picus
full-exprs." This reverts commit r305239 because it broke the buildbots (the diag-flags.cpp test is failing). llvm-svn: 305287
2017-06-12Revert r301742 which made ExprConstant checking apply to all full-exprs.Nick Lewycky
This patch also exposed pre-existing bugs in clang, see PR32864 and PR33140#c3 . llvm-svn: 305239
2017-04-29Remove Sema::CheckForIntOverflow, and instead check all full-expressions.Nick Lewycky
CheckForIntOverflow used to implement a whitelist of top-level expressions to send to the constant expression evaluator, which handled many more expressions than the CheckForIntOverflow whitelist did. llvm-svn: 301742
2016-10-21DR583, DR1512: Implement a rewrite to C++'s 'composite pointer type' rules.Richard Smith
This has two significant effects: 1) Direct relational comparisons between null pointer constants (0 and nullopt) and pointers are now ill-formed. This was always the case for C, and it appears that C++ only ever permitted by accident. For instance, cases like nullptr < &a are now rejected. 2) Comparisons and conditional operators between differently-cv-qualified pointer types now work, and produce a composite type that both source pointer types can convert to (when possible). For instance, comparison between 'int **' and 'const int **' is now valid, and uses an intermediate type of 'const int *const *'. Clang previously supported #2 as an extension. We do not accept the cases in #1 as an extension. I've tested a fair amount of code to check that this doesn't break it, but if it turns out that someone is relying on this, we can easily add it back as an extension. This is a re-commit of r284800. llvm-svn: 284890
2016-10-21Revert "DR583, DR1512: Implement a rewrite to C++'s 'composite pointer type' ↵Renato Golin
rules." This reverts commit r284800, as it failed all ARM/AArch64 bots. llvm-svn: 284811
2016-10-21DR583, DR1512: Implement a rewrite to C++'s 'composite pointer type' rules.Richard Smith
This has two significant effects: 1) Direct relational comparisons between null pointer constants (0 and nullopt) and pointers are now ill-formed. This was always the case for C, and it appears that C++ only ever permitted by accident. For instance, cases like nullptr < &a are now rejected. 2) Comparisons and conditional operators between differently-cv-qualified pointer types now work, and produce a composite type that both source pointer types can convert to (when possible). For instance, comparison between 'int **' and 'const int **' is now valid, and uses an intermediate type of 'const int *const *'. Clang previously supported #2 as an extension. We do not accept the cases in #1 as an extension. I've tested a fair amount of code to check that this doesn't break it, but if it turns out that someone is relying on this, we can easily add it back as an extension. llvm-svn: 284800
2016-04-01Revert "[OPENMP] Allow skip expression after comma in clauses with lists."Alexey Bataev
This reverts commit http://reviews.llvm.org/rL265003. After some thoughts decided to emit errors here. llvm-svn: 265119
2016-03-31[OPENMP] Allow skip expression after comma in clauses with lists.Alexey Bataev
Compatibility fix for better compatibility with the existing software. llvm-svn: 265003
2016-03-29[OPENMP 4.5] Allow data members in 'aligned' clause.Alexey Bataev
OpenMP 4.5 allows privatization of data members OpenMP clauses. Patch adds support for data members in 'aligned' clause. llvm-svn: 264715
2015-12-01[OPENMP 4.5] Parsing/sema analysis for 'priority' clause.Alexey Bataev
OpenMP 4.5 defines new clause 'priority' for 'task', 'taskloop' and 'taskloop simd' directives. Added parsing and sema analysis for 'priority' clause in 'task' and 'taskloop' directives. llvm-svn: 254398
2015-05-20[OPENMP] -fopenmp enables OpenMP support (fix for http://llvm.org/PR23492)Alexey Bataev
-fopenmp turns on OpenMP support and links libiomp5 as OpenMP library. Also there is -fopenmp={libiomp5|libgomp} option that allows to override effect of -fopenmp and link libgomp library (if -fopenmp=libgomp is specified). Differential Revision: http://reviews.llvm.org/D9736 llvm-svn: 237769
2014-09-30[OPENMP] Codegen of the ‘aligned’ clause for the ‘omp simd’ directive.Alexander Musman
Differential Revision: http://reviews.llvm.org/D5499 llvm-svn: 218660
2014-09-18Parsing/Sema of directive omp for simdAlexander Musman
llvm-svn: 218029