llvm-project/clang/test/OpenMP
Alexey Bataev f841bd9fcd [OPENMP] Bugfix for processing of global variables in OpenMP regions.
Currently, if global variable is marked as a private OpenMP variable, the compiler crashes in debug version or generates incorrect code in release version. It happens because in the OpenMP region the original global variable is used instead of the generated private copy. It happens because currently globals variables are not captured in the OpenMP region.
This patch adds capturing of global variables iff private copy of the global variable must be used in the OpenMP region.
Differential Revision: http://reviews.llvm.org/D6259

llvm-svn: 224323
2014-12-16 07:00:22 +00:00
..
atomic_ast_print.cpp [OPENMP] Initial parsing and sema analysis for clause 'seq_cst' of 'atomic' directive. 2014-07-24 08:55:34 +00:00
atomic_messages.c [OPENMP] Additional processing of 'omp atomic write' directive. 2014-11-28 07:21:40 +00:00
atomic_messages.cpp [OPENMP] Additional processing of 'omp atomic write' directive. 2014-11-28 07:21:40 +00:00
barrier_ast_print.cpp [OPENMP] Initial parsing and sema analysis for 'barrier' directive. 2014-07-18 09:11:51 +00:00
barrier_codegen.cpp [OPENMP] Test for 'omp barrier' directive 2014-12-05 04:10:27 +00:00
barrier_messages.cpp [OPENMP] Initial parsing and sema analysis for 'barrier' directive. 2014-07-18 09:11:51 +00:00
critical_ast_print.cpp [OPENMP] Parsing/Sema of the OpenMP directive 'critical'. 2014-07-21 09:42:05 +00:00
critical_codegen.cpp [OPENMP] Codegen for 'omp critical' directive. 2014-09-22 10:01:53 +00:00
critical_messages.cpp [OPENMP] Parsing/Sema of the OpenMP directive 'critical'. 2014-07-21 09:42:05 +00:00
flush_ast_print.cpp [OPENMP] Initial parsing and sema analysis for 'flush' directive. 2014-07-21 11:26:11 +00:00
flush_codegen.cpp [OPENMP] Codegen for "omp flush" directive. 2014-11-20 04:34:54 +00:00
flush_messages.cpp [OPENMP] Initial parsing and sema analysis for 'flush' directive. 2014-07-21 11:26:11 +00:00
for_ast_print.cpp [OPENMP] Additional checking for 'collapse' clause. 2014-06-24 12:55:56 +00:00
for_codegen.cpp Test for 'omp for' (for r224233). 2014-12-15 07:08:38 +00:00
for_collapse_messages.cpp [OPENMP] Additional checking for 'collapse' clause. 2014-06-24 12:55:56 +00:00
for_firstprivate_messages.cpp [OPENMP] Codegen for 'firstprivate' clause. 2014-10-08 14:01:46 +00:00
for_lastprivate_messages.cpp [OPENMP] Improved diagnostic messages for vars with the predetermined data sharing attributes and reformatting 2014-06-19 09:13:45 +00:00
for_loop_messages.cpp [OPENMP] Temporary fix for processing of global variables in loops. 2014-11-14 04:08:45 +00:00
for_misc_messages.c [OPENMP] Fix target triple of a test, which uses __int128 type 2014-10-06 11:36:48 +00:00
for_private_messages.cpp [OPENMP] Codegen for 'private' clause in 'parallel' directive. 2014-10-21 03:16:40 +00:00
for_reduction_messages.cpp [OPENMP] Improved diagnostic messages for vars with the predetermined data sharing attributes and reformatting 2014-06-19 09:13:45 +00:00
for_schedule_messages.cpp [OPENMP] Initial support for 'schedule' clause. 2014-06-20 07:16:17 +00:00
for_simd_aligned_messages.cpp [OPENMP] Codegen of the ‘aligned’ clause for the ‘omp simd’ directive. 2014-09-30 05:29:28 +00:00
for_simd_ast_print.cpp Parsing/Sema of directive omp for simd 2014-09-18 05:12:34 +00:00
for_simd_collapse_messages.cpp Parsing/Sema of directive omp for simd 2014-09-18 05:12:34 +00:00
for_simd_firstprivate_messages.cpp [OPENMP] Codegen for 'firstprivate' clause. 2014-10-08 14:01:46 +00:00
for_simd_lastprivate_messages.cpp Parsing/Sema of directive omp for simd 2014-09-18 05:12:34 +00:00
for_simd_linear_messages.cpp Parsing/Sema of directive omp for simd 2014-09-18 05:12:34 +00:00
for_simd_loop_messages.cpp [OPENMP] Temporary fix for processing of global variables in loops. 2014-11-14 04:08:45 +00:00
for_simd_misc_messages.c Parsing/Sema of directive omp for simd 2014-09-18 05:12:34 +00:00
for_simd_private_messages.cpp [OPENMP] Codegen for 'private' clause in 'parallel' directive. 2014-10-21 03:16:40 +00:00
for_simd_reduction_messages.cpp Parsing/Sema of directive omp for simd 2014-09-18 05:12:34 +00:00
for_simd_safelen_messages.cpp Parsing/Sema of directive omp for simd 2014-09-18 05:12:34 +00:00
for_simd_schedule_messages.cpp Parsing/Sema of directive omp for simd 2014-09-18 05:12:34 +00:00
linking.c [OPENMP] Fixed linked libraries for libiomp5 on Linux 2014-03-07 07:43:52 +00:00
master_ast_print.cpp [OPENMP] Parsing/Sema analysis of directive 'master' 2014-07-17 08:54:58 +00:00
master_codegen.cpp [OPENMP] Codegen for 'omp master' directive 2014-12-04 07:23:53 +00:00
master_messages.cpp [OPENMP] Parsing/Sema analysis of directive 'master' 2014-07-17 08:54:58 +00:00
nesting_of_regions.cpp [OPENMP] 'omp teams' directive basic support. 2014-10-09 04:18:56 +00:00
no_option.c [OPENMP] Improved diagnostic messages for vars with the predetermined data sharing attributes and reformatting 2014-06-19 09:13:45 +00:00
no_option_no_warn.c [OPENMP] Improved diagnostic messages for vars with the predetermined data sharing attributes and reformatting 2014-06-19 09:13:45 +00:00
openmp_common.c [OPENMP] Added option -fopenmp=libiomp5|libgomp 2014-03-06 05:43:53 +00:00
option_warn.c OpenMP threadprivate directive parsing and semantic analysis 2013-03-22 06:34:35 +00:00
ordered_ast_print.cpp [OPENMP] Initial parsing and sema analysis for 'ordered' directive. 2014-07-22 06:45:04 +00:00
ordered_messages.cpp [OPENMP] Initial parsing and sema analysis for 'ordered' directive. 2014-07-22 06:45:04 +00:00
parallel_ast_print.cpp [OPENMP] Initial support of 'reduction' clause 2014-06-16 07:08:35 +00:00
parallel_codegen.cpp [OPENMP] Codegen for 'firstprivate' clause. 2014-10-08 14:01:46 +00:00
parallel_copyin_messages.cpp [OPENMP] Implemented 'copyin' clause 2014-03-31 03:36:38 +00:00
parallel_default_messages.cpp [OPENMP] Added option -fopenmp=libiomp5|libgomp 2014-03-06 05:43:53 +00:00
parallel_firstprivate_codegen.cpp [OPENMP] Bugfix for processing of global variables in OpenMP regions. 2014-12-16 07:00:22 +00:00
parallel_firstprivate_messages.cpp [OPENMP] Codegen for 'firstprivate' clause. 2014-10-08 14:01:46 +00:00
parallel_for_ast_print.cpp [OPENMP] Added initial support for 'omp parallel for'. 2014-07-07 13:01:15 +00:00
parallel_for_collapse_messages.cpp [OPENMP] Added initial support for 'omp parallel for'. 2014-07-07 13:01:15 +00:00
parallel_for_copyin_messages.cpp [OPENMP] Added initial support for 'omp parallel for'. 2014-07-07 13:01:15 +00:00
parallel_for_default_messages.cpp [OPENMP] Added initial support for 'omp parallel for'. 2014-07-07 13:01:15 +00:00
parallel_for_firstprivate_messages.cpp [OPENMP] Codegen for 'firstprivate' clause. 2014-10-08 14:01:46 +00:00
parallel_for_if_messages.cpp [OPENMP] Added initial support for 'omp parallel for'. 2014-07-07 13:01:15 +00:00
parallel_for_lastprivate_messages.cpp [OPENMP] Added initial support for 'omp parallel for'. 2014-07-07 13:01:15 +00:00
parallel_for_loop_messages.cpp [OPENMP] Temporary fix for processing of global variables in loops. 2014-11-14 04:08:45 +00:00
parallel_for_messages.cpp [OPENMP] Added several test cases for clauses 'ordered' and 'nowait': if there are more than one 'nowait' or 'ordered' clause an error message is expected. 2014-07-21 02:45:36 +00:00
parallel_for_misc_messages.c [OPENMP] Improved DSA processing of the loop control variables for loop directives. 2014-07-25 06:27:47 +00:00
parallel_for_num_threads_messages.cpp [OPENMP] Added initial support for 'omp parallel for'. 2014-07-07 13:01:15 +00:00
parallel_for_private_messages.cpp [OPENMP] Codegen for 'private' clause in 'parallel' directive. 2014-10-21 03:16:40 +00:00
parallel_for_proc_bind_messages.cpp [OPENMP] Added initial support for 'omp parallel for'. 2014-07-07 13:01:15 +00:00
parallel_for_reduction_messages.cpp [OPENMP] Added initial support for 'omp parallel for'. 2014-07-07 13:01:15 +00:00
parallel_for_schedule_messages.cpp [OPENMP] Added initial support for 'omp parallel for'. 2014-07-07 13:01:15 +00:00
parallel_for_simd_aligned_messages.cpp [OPENMP] Codegen of the ‘aligned’ clause for the ‘omp simd’ directive. 2014-09-30 05:29:28 +00:00
parallel_for_simd_ast_print.cpp [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_for_simd_collapse_messages.cpp [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_for_simd_copyin_messages.cpp [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_for_simd_default_messages.cpp [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_for_simd_firstprivate_messages.cpp [OPENMP] Codegen for 'firstprivate' clause. 2014-10-08 14:01:46 +00:00
parallel_for_simd_if_messages.cpp [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_for_simd_lastprivate_messages.cpp [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_for_simd_linear_messages.cpp [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_for_simd_loop_messages.cpp [OPENMP] Temporary fix for processing of global variables in loops. 2014-11-14 04:08:45 +00:00
parallel_for_simd_messages.cpp [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_for_simd_misc_messages.c [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_for_simd_num_threads_messages.cpp [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_for_simd_private_messages.cpp [OPENMP] Codegen for 'private' clause in 'parallel' directive. 2014-10-21 03:16:40 +00:00
parallel_for_simd_proc_bind_messages.cpp [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_for_simd_reduction_messages.cpp [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_for_simd_safelen_messages.cpp [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_for_simd_schedule_messages.cpp [OPENMP] Parsing/Sema of directive omp parallel for simd 2014-09-23 09:33:00 +00:00
parallel_if_codegen.cpp More OpenMP test case compatibility fixes 2014-10-13 13:49:39 +00:00
parallel_if_messages.cpp [OPENMP] Added option -fopenmp=libiomp5|libgomp 2014-03-06 05:43:53 +00:00
parallel_messages.cpp [OPENMP] Added option -fopenmp=libiomp5|libgomp 2014-03-06 05:43:53 +00:00
parallel_num_threads_codegen.cpp Support matching signext attribute in the parallel_num_threads_codegen test to appease clang-cmake-mips builder. 2014-11-22 16:21:18 +00:00
parallel_num_threads_messages.cpp [OPENMP] Clause 'num_threads' 2014-03-06 06:15:19 +00:00
parallel_private_codegen.cpp [OPENMP] Bugfix for processing of global variables in OpenMP regions. 2014-12-16 07:00:22 +00:00
parallel_private_messages.cpp [OPENMP] Codegen for 'private' clause in 'parallel' directive. 2014-10-21 03:16:40 +00:00
parallel_proc_bind_messages.cpp [OPENMP] 'proc_bind' clause support - Parsing and sema analysis for OpenMP clause 'proc_bind' 2014-05-06 06:04:14 +00:00
parallel_reduction_messages.cpp [OPENMP] Improved diagnostic messages for vars with the predetermined data sharing attributes and reformatting 2014-06-19 09:13:45 +00:00
parallel_sections_ast_print.cpp [OPENMP] Parsing and sema analysis for 'omp parallel sections' directive. 2014-07-08 08:12:03 +00:00
parallel_sections_copyin_messages.cpp [OPENMP] Parsing and sema analysis for 'omp parallel sections' directive. 2014-07-08 08:12:03 +00:00
parallel_sections_default_messages.cpp [OPENMP] Parsing and sema analysis for 'omp parallel sections' directive. 2014-07-08 08:12:03 +00:00
parallel_sections_firstprivate_messages.cpp [OPENMP] Codegen for 'firstprivate' clause. 2014-10-08 14:01:46 +00:00
parallel_sections_if_messages.cpp [OPENMP] Parsing and sema analysis for 'omp parallel sections' directive. 2014-07-08 08:12:03 +00:00
parallel_sections_lastprivate_messages.cpp [OPENMP] Parsing and sema analysis for 'omp parallel sections' directive. 2014-07-08 08:12:03 +00:00
parallel_sections_messages.cpp [OPENMP] Added several test cases for clauses 'ordered' and 'nowait': if there are more than one 'nowait' or 'ordered' clause an error message is expected. 2014-07-21 02:45:36 +00:00
parallel_sections_misc_messages.c [OPENMP] Parsing and sema analysis for 'omp parallel sections' directive. 2014-07-08 08:12:03 +00:00
parallel_sections_num_threads_messages.cpp [OPENMP] Parsing and sema analysis for 'omp parallel sections' directive. 2014-07-08 08:12:03 +00:00
parallel_sections_private_messages.cpp [OPENMP] Codegen for 'private' clause in 'parallel' directive. 2014-10-21 03:16:40 +00:00
parallel_sections_proc_bind_messages.cpp [OPENMP] Parsing and sema analysis for 'omp parallel sections' directive. 2014-07-08 08:12:03 +00:00
parallel_sections_reduction_messages.cpp [OPENMP] Parsing and sema analysis for 'omp parallel sections' directive. 2014-07-08 08:12:03 +00:00
parallel_sections_shared_messages.cpp [OPENMP] Parsing and sema analysis for 'omp parallel sections' directive. 2014-07-08 08:12:03 +00:00
parallel_shared_messages.cpp [OPENMP] Added option -fopenmp=libiomp5|libgomp 2014-03-06 05:43:53 +00:00
predefined_macro.c [OPENMP] Updated comments and _OPENMP macro value for OpenMP 4.0 (for 'omp simd' support) 2014-03-06 12:27:56 +00:00
sections_ast_print.cpp [OPENMP] Initial parsing and sema analysis for 'section' directive. 2014-06-26 08:21:58 +00:00
sections_firstprivate_messages.cpp [OPENMP] Codegen for 'firstprivate' clause. 2014-10-08 14:01:46 +00:00
sections_lastprivate_messages.cpp [OPENMP] Initial support for 'sections' directive. 2014-06-25 11:44:49 +00:00
sections_misc_messages.c [OPENMP] Added several test cases for clauses 'ordered' and 'nowait': if there are more than one 'nowait' or 'ordered' clause an error message is expected. 2014-07-21 02:45:36 +00:00
sections_private_messages.cpp [OPENMP] Codegen for 'private' clause in 'parallel' directive. 2014-10-21 03:16:40 +00:00
sections_reduction_messages.cpp [OPENMP] Initial support for 'sections' directive. 2014-06-25 11:44:49 +00:00
simd_aligned_messages.cpp [OPENMP] Codegen of the ‘aligned’ clause for the ‘omp simd’ directive. 2014-09-30 05:29:28 +00:00
simd_ast_print.cpp [OPENMP] Parsing/Sema for OMPLasprivateClause. 2014-06-04 13:06:39 +00:00
simd_codegen.cpp [OPENMP] Loop collapsing and codegen for 'omp simd' directive. 2014-10-01 06:03:56 +00:00
simd_collapse_messages.cpp [OPENMP] Additional checking for 'collapse' clause. 2014-06-24 12:55:56 +00:00
simd_lastprivate_messages.cpp [OPENMP] Added initial support for 'omp parallel for'. 2014-07-07 13:01:15 +00:00
simd_linear_messages.cpp [OPENMP] Initial support of 'reduction' clause 2014-06-16 07:08:35 +00:00
simd_loop_messages.cpp [OPENMP] Temporary fix for processing of global variables in loops. 2014-11-14 04:08:45 +00:00
simd_metadata.c IR: Make metadata typeless in assembly, clang side 2014-12-15 19:10:08 +00:00
simd_misc_messages.c [OPENMP] Improved DSA processing of the loop control variables for loop directives. 2014-07-25 06:27:47 +00:00
simd_private_messages.cpp [OPENMP] Codegen for 'private' clause in 'parallel' directive. 2014-10-21 03:16:40 +00:00
simd_reduction_messages.cpp [OPENMP] Allow ‘reduction’ clause on ‘omp simd’ directive. 2014-07-08 11:33:21 +00:00
simd_safelen_messages.cpp [OPENMP] parsing of clause 'safelen' (for directive 'omp simd') 2014-03-21 04:51:18 +00:00
single_ast_print.cpp [OPENMP] Parsing and sema analysis for 'copyprivate' clause. 2014-06-27 10:37:06 +00:00
single_copyprivate_messages.cpp [OPENMP] Fixed DSA detecting for function parameters: by default they must be private. 2014-07-24 02:33:58 +00:00
single_firstprivate_messages.cpp [OPENMP] Codegen for 'firstprivate' clause. 2014-10-08 14:01:46 +00:00
single_misc_messages.c [OPENMP] Added several test cases for clauses 'ordered' and 'nowait': if there are more than one 'nowait' or 'ordered' clause an error message is expected. 2014-07-21 02:45:36 +00:00
single_private_messages.cpp [OPENMP] Codegen for 'private' clause in 'parallel' directive. 2014-10-21 03:16:40 +00:00
target_ast_print.cpp [OPENMP] Initial parsing/sema analysis of 'target' directive. 2014-09-19 08:19:49 +00:00
target_if_messages.cpp [OPENMP] Initial parsing/sema analysis of 'target' directive. 2014-09-19 08:19:49 +00:00
target_messages.cpp [OPENMP] Initial parsing/sema analysis of 'target' directive. 2014-09-19 08:19:49 +00:00
task_ast_print.cpp [OPENMP] Initial parsing and sema analysis of 'mergeable' clause. 2014-07-17 12:47:03 +00:00
task_default_messages.cpp [OPENMP] Parsing and sema analysis for 'omp task' directive. 2014-07-11 11:25:16 +00:00
task_final_messages.cpp [OPENMP] Initial parsing and sema analysis for 'final' clause. 2014-07-17 07:32:53 +00:00
task_firstprivate_messages.cpp [OPENMP] Codegen for 'firstprivate' clause. 2014-10-08 14:01:46 +00:00
task_if_messages.cpp [OPENMP] Parsing and sema analysis for 'omp task' directive. 2014-07-11 11:25:16 +00:00
task_messages.cpp [OPENMP] Codegen for 'firstprivate' clause. 2014-10-08 14:01:46 +00:00
task_private_messages.cpp [OPENMP] Codegen for 'private' clause in 'parallel' directive. 2014-10-21 03:16:40 +00:00
task_shared_messages.cpp [OPENMP] Parsing and sema analysis for 'omp task' directive. 2014-07-11 11:25:16 +00:00
taskwait_ast_print.cpp [OPENMP] Initial parsing and sema analysis for 'taskwait' directive. 2014-07-18 10:17:07 +00:00
taskwait_messages.cpp [OPENMP] Initial parsing and sema analysis for 'taskwait' directive. 2014-07-18 10:17:07 +00:00
taskyield_ast_print.cpp [OPENMP] Initial parsing and sema analysis of 'taskyield' directive. 2014-07-18 07:47:19 +00:00
taskyield_messages.cpp [OPENMP] Initial parsing and sema analysis of 'taskyield' directive. 2014-07-18 07:47:19 +00:00
teams_ast_print.cpp [OPENMP] 'omp teams' directive basic support. 2014-10-09 04:18:56 +00:00
teams_default_messages.cpp [OPENMP] 'omp teams' directive basic support. 2014-10-09 04:18:56 +00:00
teams_firstprivate_messages.cpp [OPENMP] 'omp teams' directive basic support. 2014-10-09 04:18:56 +00:00
teams_messages.cpp [OPENMP] 'omp teams' directive basic support. 2014-10-09 04:18:56 +00:00
teams_private_messages.cpp [OPENMP] Codegen for 'private' clause in 'parallel' directive. 2014-10-21 03:16:40 +00:00
teams_reduction_messages.cpp [OPENMP] 'omp teams' directive basic support. 2014-10-09 04:18:56 +00:00
teams_shared_messages.cpp [OPENMP] 'omp teams' directive basic support. 2014-10-09 04:18:56 +00:00
threadprivate_ast_print.cpp [OPENMP] Small update in threadprivate variables processing to fix template instantiation. 2014-03-07 08:03:37 +00:00
threadprivate_codegen.cpp [OPENMP] Codegen for threadprivate variables 2014-11-11 04:05:39 +00:00
threadprivate_messages.cpp Rnamed Class to TestClass 2014-06-06 03:41:14 +00:00