r359340 - [OPENMP]Added check for non-random access types for the dependent loop

2019-04-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Apr 26 12:28:37 2019 New Revision: 359340 URL: http://llvm.org/viewvc/llvm-project?rev=359340&view=rev Log: [OPENMP]Added check for non-random access types for the dependent loop counters. According to the OpenMP 5.0, For any associated loop where the b or lb expression

r359459 - [OPENMP]Fix PR41617: crash on template instantiation.

2019-04-29 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Apr 29 08:51:36 2019 New Revision: 359459 URL: http://llvm.org/viewvc/llvm-project?rev=359459&view=rev Log: [OPENMP]Fix PR41617: crash on template instantiation. Fixed the crash on the template instantiation when trying to check the data locality in the current instantia

r360061 - [OPENMP]Fix PR41768: check DSA for globals with `default(none)` clauses.

2019-05-06 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon May 6 10:49:22 2019 New Revision: 360061 URL: http://llvm.org/viewvc/llvm-project?rev=360061&view=rev Log: [OPENMP]Fix PR41768: check DSA for globals with `default(none)` clauses. If the `default(none)` was specified for the construct, we might miss diagnostic for the g

r360073 - [OPENMP]Fix PR41767: diagnose DSA for variables in clauses with

2019-05-06 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon May 6 13:07:20 2019 New Revision: 360073 URL: http://llvm.org/viewvc/llvm-project?rev=360073&view=rev Log: [OPENMP]Fix PR41767: diagnose DSA for variables in clauses with default(none). If the combined directive has default(none) clause and has clauses for inner directi

r360362 - [OPENMP]Fix PR41768: check DSA for globals with default(none) clauses.

2019-05-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu May 9 11:14:57 2019 New Revision: 360362 URL: http://llvm.org/viewvc/llvm-project?rev=360362&view=rev Log: [OPENMP]Fix PR41768: check DSA for globals with default(none) clauses. If the default(none) was specified for the construct, we might miss diagnostic for the globa

r360365 - [OPENMP]Fix PR41767: diagnose DSA for variables in clauses with default(none).

2019-05-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu May 9 11:44:53 2019 New Revision: 360365 URL: http://llvm.org/viewvc/llvm-project?rev=360365&view=rev Log: [OPENMP]Fix PR41767: diagnose DSA for variables in clauses with default(none). If the combined directive has default(none) clause and has clauses for inner directi

r342648 - [OPENMP] Add support for mapping memory pointed by member pointer.

2018-09-20 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Sep 20 06:54:02 2018 New Revision: 342648 URL: http://llvm.org/viewvc/llvm-project?rev=342648&view=rev Log: [OPENMP] Add support for mapping memory pointed by member pointer. Added support for map(s, s.ptr[0:1]) kind of mapping. Modified: cfe/trunk/lib/CodeGen/CGOpe

r342738 - [OPENMP][NVPTX] Enable support for lastprivates in SPMD constructs.

2018-09-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Sep 21 07:22:53 2018 New Revision: 342738 URL: http://llvm.org/viewvc/llvm-project?rev=342738&view=rev Log: [OPENMP][NVPTX] Enable support for lastprivates in SPMD constructs. Previously we could not use lastprivates in SPMD constructs, patch allows supporting lastprivat

r342741 - [OPENMP] Disable emission of the class with vptr if they are not used in

2018-09-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Sep 21 07:55:26 2018 New Revision: 342741 URL: http://llvm.org/viewvc/llvm-project?rev=342741&view=rev Log: [OPENMP] Disable emission of the class with vptr if they are not used in target constructs. Prevent compilation of the classes with the virtual tables when compili

r342991 - [DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file types.

2018-09-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 25 10:09:17 2018 New Revision: 342991 URL: http://llvm.org/viewvc/llvm-project?rev=342991&view=rev Log: [DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file types. clang-offload-bundler should not be invoked with the unbundling action when the input file typ

r342995 - [OPENMP] Fix failed test, NFC.

2018-09-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 25 10:47:53 2018 New Revision: 342995 URL: http://llvm.org/viewvc/llvm-project?rev=342995&view=rev Log: [OPENMP] Fix failed test, NFC. Modified: cfe/trunk/test/Driver/openmp-offload.c Modified: cfe/trunk/test/Driver/openmp-offload.c URL: http://llvm.org/viewvc/

r342996 - [OPENMP] Fix the test, NFC.

2018-09-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 25 10:58:08 2018 New Revision: 342996 URL: http://llvm.org/viewvc/llvm-project?rev=342996&view=rev Log: [OPENMP] Fix the test, NFC. Fixed test to pacify buildbot. Modified: cfe/trunk/test/Driver/openmp-offload.c Modified: cfe/trunk/test/Driver/openmp-offload.c

r343002 - Revert "[DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file

2018-09-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 25 11:31:56 2018 New Revision: 343002 URL: http://llvm.org/viewvc/llvm-project?rev=343002&view=rev Log: Revert "[DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file types." It reverts commit r342991 + several other commits intended to fix the tests. Still ha

r343335 - [DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file types.

2018-09-28 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Sep 28 09:17:59 2018 New Revision: 343335 URL: http://llvm.org/viewvc/llvm-project?rev=343335&view=rev Log: [DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file types. clang-offload-bundler should not be invoked with the unbundling action when the input file typ

r343356 - [OPENMP]Fix PR39084: Check datasharing attributes of reduction variables only.

2018-09-28 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Sep 28 12:33:14 2018 New Revision: 343356 URL: http://llvm.org/viewvc/llvm-project?rev=343356&view=rev Log: [OPENMP]Fix PR39084: Check datasharing attributes of reduction variables only. According to OpenMP, the reduction item must be shared in parent region. But the ite

r343479 - [OPENMP] Fix enum identifier, NFC.

2018-10-01 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 1 07:26:31 2018 New Revision: 343479 URL: http://llvm.org/viewvc/llvm-project?rev=343479&view=rev Log: [OPENMP] Fix enum identifier, NFC. Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp URL: http://llvm.org/vie

r343483 - [OPENMP] Simplify code, NFC.

2018-10-01 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 1 07:40:06 2018 New Revision: 343483 URL: http://llvm.org/viewvc/llvm-project?rev=343483&view=rev Log: [OPENMP] Simplify code, NFC. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp URL: http://ll

r343492 - [OPENMP][NVPTX] Handle `requires datasharing` flag correctly with

2018-10-01 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 1 09:20:57 2018 New Revision: 343492 URL: http://llvm.org/viewvc/llvm-project?rev=343492&view=rev Log: [OPENMP][NVPTX] Handle `requires datasharing` flag correctly with lightweight runtime. The datasharing flag must be set to `1` when executing SPMD-mode compatible

r343856 - [OPENMP] Fix emission of the __kmpc_global_thread_num.

2018-10-05 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Oct 5 08:08:53 2018 New Revision: 343856 URL: http://llvm.org/viewvc/llvm-project?rev=343856&view=rev Log: [OPENMP] Fix emission of the __kmpc_global_thread_num. Fixed emission of the __kmpc_global_thread_num() so that it is not messed up with alloca instructions anymor

r343857 - [OPENMP][NVPTX] Fix emission of __kmpc_global_thread_num() for non-SPMD

2018-10-05 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Oct 5 08:27:47 2018 New Revision: 343857 URL: http://llvm.org/viewvc/llvm-project?rev=343857&view=rev Log: [OPENMP][NVPTX] Fix emission of __kmpc_global_thread_num() for non-SPMD mode. __kmpc_global_thread_num() should be called before initialization of the runtime. Mo

r353204 - [DEBUG_INFO][NVPTX] Generate correct data about variable address class.

2019-02-05 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Feb 5 11:45:57 2019 New Revision: 353204 URL: http://llvm.org/viewvc/llvm-project?rev=353204&view=rev Log: [DEBUG_INFO][NVPTX] Generate correct data about variable address class. Summary: Added ability to generate correct debug info data about the variable address class

r353214 - [DOCS]Support for emission of the debug info for the Cuda devices, NFC.

2019-02-05 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Feb 5 12:38:36 2019 New Revision: 353214 URL: http://llvm.org/viewvc/llvm-project?rev=353214&view=rev Log: [DOCS]Support for emission of the debug info for the Cuda devices, NFC. Modified: cfe/trunk/docs/OpenMPSupport.rst cfe/trunk/docs/ReleaseNotes.rst Modifie

r353456 - [SEMA]Generalize deferred diagnostic interface, NFC.

2019-02-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Feb 7 11:46:42 2019 New Revision: 353456 URL: http://llvm.org/viewvc/llvm-project?rev=353456&view=rev Log: [SEMA]Generalize deferred diagnostic interface, NFC. Summary: Deferred diagnostic interface is going to be used for OpenMP device compilation. Generalized previous

r353540 - [OPENMP]Initial support for the delayed diagnostics.

2019-02-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Feb 8 09:38:09 2019 New Revision: 353540 URL: http://llvm.org/viewvc/llvm-project?rev=353540&view=rev Log: [OPENMP]Initial support for the delayed diagnostics. It is important to delay the emission of the diagnostic messages for the functions unless it is proved that th

r353541 - Revert "[OPENMP]Initial support for the delayed diagnostics."

2019-02-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Feb 8 09:42:00 2019 New Revision: 353541 URL: http://llvm.org/viewvc/llvm-project?rev=353541&view=rev Log: Revert "[OPENMP]Initial support for the delayed diagnostics." This reverts commit r353540. Erroneously committed, need to fix the message and description. Modifie

r353542 - [OPENMP]Delay emission of the error messages for the exceptions.

2019-02-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Feb 8 10:02:25 2019 New Revision: 353542 URL: http://llvm.org/viewvc/llvm-project?rev=353542&view=rev Log: [OPENMP]Delay emission of the error messages for the exceptions. Fixed diagnostic emission for the exceptions support in case of the compilation of OpenMP code for

r354486 - [OPENMP] Delay emission of the asm target-specific error messages.

2019-02-20 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Feb 20 09:42:57 2019 New Revision: 354486 URL: http://llvm.org/viewvc/llvm-project?rev=354486&view=rev Log: [OPENMP] Delay emission of the asm target-specific error messages. Summary: Added the ability to emit target-specific builtin assembler error messages only in case

r354509 - [OPENMP] Use targetDiag for diagnostics of unsupported exceptions, NFC.

2019-02-20 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Feb 20 11:37:17 2019 New Revision: 354509 URL: http://llvm.org/viewvc/llvm-project?rev=354509&view=rev Log: [OPENMP] Use targetDiag for diagnostics of unsupported exceptions, NFC. Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp cfe/trunk/lib/Sema/SemaStmt.cpp Modif

r354593 - [CUDA]Delayed diagnostics for the asm instructions.

2019-02-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Feb 21 07:51:30 2019 New Revision: 354593 URL: http://llvm.org/viewvc/llvm-project?rev=354593&view=rev Log: [CUDA]Delayed diagnostics for the asm instructions. Summary: Adapted targetDiag for the CUDA and used for the delayed diagnostics in asm constructs. Works for both

r354596 - Revert "[CUDA]Delayed diagnostics for the asm instructions."

2019-02-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Feb 21 08:40:21 2019 New Revision: 354596 URL: http://llvm.org/viewvc/llvm-project?rev=354596&view=rev Log: Revert "[CUDA]Delayed diagnostics for the asm instructions." This reverts commit r354593 to fix the problem with the crash on windows. Removed: cfe/trunk/test

r354671 - [CUDA]Delayed diagnostics for the asm instructions.

2019-02-22 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Feb 22 06:42:48 2019 New Revision: 354671 URL: http://llvm.org/viewvc/llvm-project?rev=354671&view=rev Log: [CUDA]Delayed diagnostics for the asm instructions. Adapted targetDiag for the CUDA and used for the delayed diagnostics in asm constructs. Works for both host and

r354679 - [OPENMP] Delayed diagnostics for VLA support.

2019-02-22 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Feb 22 08:49:13 2019 New Revision: 354679 URL: http://llvm.org/viewvc/llvm-project?rev=354679&view=rev Log: [OPENMP] Delayed diagnostics for VLA support. Generalized processing of the deferred diagnostics for OpenMP/CUDA code. Modified: cfe/trunk/lib/Sema/SemaType.c

r354680 - Revert "[OPENMP] Delayed diagnostics for VLA support."

2019-02-22 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Feb 22 09:16:50 2019 New Revision: 354680 URL: http://llvm.org/viewvc/llvm-project?rev=354680&view=rev Log: Revert "[OPENMP] Delayed diagnostics for VLA support." This reverts commit r354679 to fix the problem with the Windows buildbots Modified: cfe/trunk/lib/Sema/

r354690 - [OPENMP] Delayed diagnostics for VLA support.

2019-02-22 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Feb 22 12:36:10 2019 New Revision: 354690 URL: http://llvm.org/viewvc/llvm-project?rev=354690&view=rev Log: [OPENMP] Delayed diagnostics for VLA support. Generalized processing of the deferred diagnostics for OpenMP/CUDA code. Modified: cfe/trunk/include/clang/Sema/

r311777 - [OPENMP] Fix for PR34321: ustom OpenMP reduction in C++ template causes

2017-08-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 25 08:43:55 2017 New Revision: 311777 URL: http://llvm.org/viewvc/llvm-project?rev=311777&view=rev Log: [OPENMP] Fix for PR34321: ustom OpenMP reduction in C++ template causes SEGFAULT at compile time Compiler crashed when tried to rebuild non-template expression in

r311908 - [OPENMP] Remove unused header files, NFC.

2017-08-28 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Aug 28 12:26:54 2017 New Revision: 311908 URL: http://llvm.org/viewvc/llvm-project?rev=311908&view=rev Log: [OPENMP] Remove unused header files, NFC. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp URL: http://llvm.org/viewvc

r312024 - [OPENMP] Capture global variables in all target executable regions.

2017-08-29 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Aug 29 12:30:57 2017 New Revision: 312024 URL: http://llvm.org/viewvc/llvm-project?rev=312024&view=rev Log: [OPENMP] Capture global variables in all target executable regions. Capturing of the global variables occurs only in target regions. Patch fixes it and allows capt

r312292 - [OPENMP] Fix for PR34398: assert with random access iterator if the

2017-08-31 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Aug 31 16:06:52 2017 New Revision: 312292 URL: http://llvm.org/viewvc/llvm-project?rev=312292&view=rev Log: [OPENMP] Fix for PR34398: assert with random access iterator if the step>1. If the loop is a loot with random access iterators and the iteration construct is repre

r312296 - [OPENMP] Fix the test, NFC.

2017-08-31 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Aug 31 16:34:33 2017 New Revision: 312296 URL: http://llvm.org/viewvc/llvm-project?rev=312296&view=rev Log: [OPENMP] Fix the test, NFC. Modified: cfe/trunk/test/OpenMP/for_codegen.cpp Modified: cfe/trunk/test/OpenMP/for_codegen.cpp URL: http://llvm.org/viewvc/llvm-

r312638 - [OPENMP] Fix for PR34445: Reduction initializer segfaults at runtime in

2017-09-06 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Sep 6 07:49:58 2017 New Revision: 312638 URL: http://llvm.org/viewvc/llvm-project?rev=312638&view=rev Log: [OPENMP] Fix for PR34445: Reduction initializer segfaults at runtime in move constructor. Previously user-defined reduction initializer was considered as an assign

r312642 - [OPENMP] Fix for PR33922: New ident_t flags for

2017-09-06 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Sep 6 09:17:35 2017 New Revision: 312642 URL: http://llvm.org/viewvc/llvm-project?rev=312642&view=rev Log: [OPENMP] Fix for PR33922: New ident_t flags for __kmpc_for_static_fini(). Added special flags for calls of __kmpc_for_static_fini(), like previous ly for __kmpc_fo

r313141 - [OPENMP] Allow all classes as mappable types.

2017-09-13 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Sep 13 04:12:35 2017 New Revision: 313141 URL: http://llvm.org/viewvc/llvm-project?rev=313141&view=rev Log: [OPENMP] Allow all classes as mappable types. According to upcoming OpenMP 5.0 all classes/structs are now considered as mappable, even polymorphic and with static

r313186 - [OPENMP] Fix types for the target specific parameters in debug mode.

2017-09-13 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Sep 13 13:20:59 2017 New Revision: 313186 URL: http://llvm.org/viewvc/llvm-project?rev=313186&view=rev Log: [OPENMP] Fix types for the target specific parameters in debug mode. Used incorrect types for target specific parameters in debug mode, should use original pointer

r313805 - [OPENMP] Support for re-declarations when checking captured variables.

2017-09-20 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Sep 20 13:11:31 2017 New Revision: 313805 URL: http://llvm.org/viewvc/llvm-project?rev=313805&view=rev Log: [OPENMP] Support for re-declarations when checking captured variables. Need to check for variables re-declarations when checking that the variable was already capt

r313880 - [OPENMP] Use canonical declarations for redeclarations checks.

2017-09-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Sep 21 07:06:59 2017 New Revision: 313880 URL: http://llvm.org/viewvc/llvm-project?rev=313880&view=rev Log: [OPENMP] Use canonical declarations for redeclarations checks. If the captured variable has some redeclarations we may run into the situation where the redeclarati

r313995 - [OPENMP] Handle re-declaration of captured variables in CodeGen.

2017-09-22 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Sep 22 09:56:13 2017 New Revision: 313995 URL: http://llvm.org/viewvc/llvm-project?rev=313995&view=rev Log: [OPENMP] Handle re-declaration of captured variables in CodeGen. If the captured variable has re-declaration we may end up with the situation where the captured va

r363717 - [OPENMP]Use host's long double when compiling the code for device.

2019-06-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jun 18 11:39:26 2019 New Revision: 363717 URL: http://llvm.org/viewvc/llvm-project?rev=363717&view=rev Log: [OPENMP]Use host's long double when compiling the code for device. The device code must use the same long double type as the host. Otherwise the code cannot be lin

r363720 - [OPENMP][NVPTX]Correct codegen for 128 bit long double.

2019-06-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jun 18 12:04:27 2019 New Revision: 363720 URL: http://llvm.org/viewvc/llvm-project?rev=363720&view=rev Log: [OPENMP][NVPTX]Correct codegen for 128 bit long double. If the host uses 128 bit long doubles, the compiler should generate correct code for NVPTX devices. If the

r363734 - [OPENMP]Use host's mangling for 128 bit float types on the device.

2019-06-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jun 18 13:29:06 2019 New Revision: 363734 URL: http://llvm.org/viewvc/llvm-project?rev=363734&view=rev Log: [OPENMP]Use host's mangling for 128 bit float types on the device. Device have to use the same mangling as the host for 128bit float types. Otherwise, the codegen

r365821 - [OPENMP]Improve handling of analysis of unsupported VLAs in reductions.

2019-07-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jul 11 13:35:31 2019 New Revision: 365821 URL: http://llvm.org/viewvc/llvm-project?rev=365821&view=rev Log: [OPENMP]Improve handling of analysis of unsupported VLAs in reductions. Fixed the processing of the unsupported VLAs in the reduction clauses. Used targetDiag if t

r366068 - [OPENMP]Add support for analysis of if clauses.

2019-07-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jul 15 07:46:23 2019 New Revision: 366068 URL: http://llvm.org/viewvc/llvm-project?rev=366068&view=rev Log: [OPENMP]Add support for analysis of if clauses. Summary: Added support for analysis of if clauses in the OpenMP directives to be able to check for the use of unini

r366211 - [OPENMP]Add support for analysis of if clauses.

2019-07-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jul 16 07:51:46 2019 New Revision: 366211 URL: http://llvm.org/viewvc/llvm-project?rev=366211&view=rev Log: [OPENMP]Add support for analysis of if clauses. Summary: Added support for analysis of if clauses in the OpenMP directives to be able to check for the use of unini

r366357 - [OPENMP]Fix PR42632: crash on the analysis of the OpenMP constructs.

2019-07-17 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Jul 17 11:03:39 2019 New Revision: 366357 URL: http://llvm.org/viewvc/llvm-project?rev=366357&view=rev Log: [OPENMP]Fix PR42632: crash on the analysis of the OpenMP constructs. Fixed processing of the CapturedStmt children to fix the crash of the OpenMP constructs during

r366437 - [OPENMP][NVPTX]Mark barrier functions calls as convergent.

2019-07-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jul 18 06:49:24 2019 New Revision: 366437 URL: http://llvm.org/viewvc/llvm-project?rev=366437&view=rev Log: [OPENMP][NVPTX]Mark barrier functions calls as convergent. Added convergent attribute to the barrier functions calls for correct optimizations. Modified: cfe/

r366474 - [OPENMP]Provide correct data sharing attributes for loop control

2019-07-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jul 18 10:49:13 2019 New Revision: 366474 URL: http://llvm.org/viewvc/llvm-project?rev=366474&view=rev Log: [OPENMP]Provide correct data sharing attributes for loop control variables. Loop control variables are private in loop-based constructs and we shall take this into

r366483 - [OPENMP]Fix sharing of threadprivate variables with TLS support.

2019-07-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jul 18 12:40:24 2019 New Revision: 366483 URL: http://llvm.org/viewvc/llvm-project?rev=366483&view=rev Log: [OPENMP]Fix sharing of threadprivate variables with TLS support. If the threadprivate variable is used in the copyin clause on inner parallel directive with TLS su

r366689 - [OPENMP]Add support for analysis of firstprivate variables.

2019-07-22 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jul 22 06:51:07 2019 New Revision: 366689 URL: http://llvm.org/viewvc/llvm-project?rev=366689&view=rev Log: [OPENMP]Add support for analysis of firstprivate variables. Summary: Firstprivate variables are the variables, for which the private copies must be created in the

r366702 - [OPENMP][MSVC]Enable /openmp[:experimental] to compile OpenMP.

2019-07-22 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jul 22 09:49:59 2019 New Revision: 366702 URL: http://llvm.org/viewvc/llvm-project?rev=366702&view=rev Log: [OPENMP][MSVC]Enable /openmp[:experimental] to compile OpenMP. Mapped /openmp[:experimental] to -fopenmp option and /openmp- option to -fno-openmp Modified: c

r367116 - [OPENMP]Add support for analysis of reduction variables.

2019-07-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jul 26 07:50:05 2019 New Revision: 367116 URL: http://llvm.org/viewvc/llvm-project?rev=367116&view=rev Log: [OPENMP]Add support for analysis of reduction variables. Summary: Reduction variables are the variables, for which the private copies must be created in the OpenMP

r368170 - [OPENMP]Add standard macro value _OPENMP for OpenMP 5.0.

2019-08-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Aug 7 07:02:11 2019 New Revision: 368170 URL: http://llvm.org/viewvc/llvm-project?rev=368170&view=rev Log: [OPENMP]Add standard macro value _OPENMP for OpenMP 5.0. According to the OpenMP standard, compiler must define _OPENMP macro, which has value in format mm, wh

r368172 - [OPENMP]Set default version to OpenMP 4.5.

2019-08-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Aug 7 07:39:17 2019 New Revision: 368172 URL: http://llvm.org/viewvc/llvm-project?rev=368172&view=rev Log: [OPENMP]Set default version to OpenMP 4.5. Since clang fully supports OpenMP 4.5, set the default version to 4.5 instead of 3.1. Modified: cfe/trunk/lib/Front

r368295 - [OPENMP]Add support for analysis of linear variables and step.

2019-08-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Aug 8 06:42:45 2019 New Revision: 368295 URL: http://llvm.org/viewvc/llvm-project?rev=368295&view=rev Log: [OPENMP]Add support for analysis of linear variables and step. Summary: Added support for basic analysis of the linear variables and linear step expression. Linear

r368739 - Don't use std::errc

2019-08-13 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Aug 13 12:32:36 2019 New Revision: 368739 URL: http://llvm.org/viewvc/llvm-project?rev=368739&view=rev Log: Don't use std::errc Summary: As noted on Errc.h: // * std::errc is just marked with is_error_condition_enum. This means that // common patters like AnErrorCode

Re: r368739 - Don't use std::errc

2019-08-13 Thread Alexey Bataev via cfe-commits
in the CL description. On Tue, Aug 13, 2019 at 3:31 PM Alexey Bataev via cfe-commits mailto:cfe-commits@lists.llvm.org>> wrote: Author: abataev Date: Tue Aug 13 12:32:36 2019 New Revision: 368739 URL: http://llvm.org/viewvc/llvm-project?rev=368739&view=rev Log: Don't use std::errc

Re: [PATCH] D65819: [Driver][Bundler] Improve bundling of object files.

2019-08-14 Thread Alexey Bataev via cfe-commits
I said this before that most probably this is the bug in partial linking, made by ld. But clang-offload-bundler is also nit quite correct here since the original host code is actually not unbundled. I'll fix the patch later today to keep the partial linking for the host object, but really unbund

r368903 - [OPENMP]Support for non-rectangular loops.

2019-08-14 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Aug 14 12:30:06 2019 New Revision: 368903 URL: http://llvm.org/viewvc/llvm-project?rev=368903&view=rev Log: [OPENMP]Support for non-rectangular loops. Added basic support for non-rectangular loops. It requires an additional analysis of min/max boundaries for non-rectangu

r369015 - [BUNDLER]Improve the test, NFC.

2019-08-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Aug 15 09:28:24 2019 New Revision: 369015 URL: http://llvm.org/viewvc/llvm-project?rev=369015&view=rev Log: [BUNDLER]Improve the test, NFC. Summary: Make the test more portable and do not rely on the pre-bundled object file. Reviewers: Hahnfeld, hfinkel, jdoerfert Subs

r369019 - [Driver][Bundler] Improve bundling of object files.

2019-08-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Aug 15 10:15:35 2019 New Revision: 369019 URL: http://llvm.org/viewvc/llvm-project?rev=369019&view=rev Log: [Driver][Bundler] Improve bundling of object files. Summary: Previously, object files were bundled using partial linking. It resulted in the following structure of

r369028 - Fix the test, NFC.

2019-08-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Aug 15 10:53:49 2019 New Revision: 369028 URL: http://llvm.org/viewvc/llvm-project?rev=369028&view=rev Log: Fix the test, NFC. Modified: cfe/trunk/test/Driver/clang-offload-bundler.c Modified: cfe/trunk/test/Driver/clang-offload-bundler.c URL: http://llvm.org/viewv

Re: [PATCH] D66296: [BUNDLER]Improve the test, NFC.

2019-08-15 Thread Alexey Bataev via cfe-commits
Will fix this shortly. - Best regards, Alexey Bataev 15.08.2019 16:23, Azhar Mohammed пишет: > Seeing this now: > > fatal error: error in backend: Global variable '' has an invalid > section specifier > '__CLANG_OFFLOAD_BUNDLE__host-x86_64-apple-darwin17.6.0': mach-o > section specifi

r369044 - Mark the test as unsupported on darwin, NFC.

2019-08-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Aug 15 13:31:47 2019 New Revision: 369044 URL: http://llvm.org/viewvc/llvm-project?rev=369044&view=rev Log: Mark the test as unsupported on darwin, NFC. The bundler may fail on darwin, mark the test as not compatible. Modified: cfe/trunk/test/Driver/clang-offload-bu

r369146 - [OPENMP5.0]Diagnose global variables in lambda not marked as declare

2019-08-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 16 13:15:02 2019 New Revision: 369146 URL: http://llvm.org/viewvc/llvm-project?rev=369146&view=rev Log: [OPENMP5.0]Diagnose global variables in lambda not marked as declare target. According to OpenMP 5.0, if a lambda declaration and definition appears between a dec

r364061 - [OPENMP]Fix PR42159: do not capture threadprivate variables.

2019-06-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jun 21 08:08:30 2019 New Revision: 364061 URL: http://llvm.org/viewvc/llvm-project?rev=364061&view=rev Log: [OPENMP]Fix PR42159: do not capture threadprivate variables. The threadprivate variables should not be captured in the outlined regions, otherwise it leads to the

r364080 - [OPENMP]Fix PR42068: Vla type is not captured.

2019-06-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jun 21 10:28:41 2019 New Revision: 364080 URL: http://llvm.org/viewvc/llvm-project?rev=364080&view=rev Log: [OPENMP]Fix PR42068: Vla type is not captured. If the variably modified type is declared outside of the captured region and then used in the cast expression along

Re: r364080 - [OPENMP]Fix PR42068: Vla type is not captured.

2019-06-24 Thread Alexey Bataev via cfe-commits
heck%201/logs/FAIL%3A%20Clang%3A%3Aparallel_codegen.cpp > > Thanks, > Yvan > > On Fri, 21 Jun 2019 at 19:25, Alexey Bataev via cfe-commits > wrote: >> >> Author: abataev >> Date: Fri Jun 21 10:28:41 2019 >> New Revision: 364080 >> >> URL: htt

r364189 - [OPENMP]Relax the test checks to pacify 32bit buildbots, NFC.

2019-06-24 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jun 24 08:30:20 2019 New Revision: 364189 URL: http://llvm.org/viewvc/llvm-project?rev=364189&view=rev Log: [OPENMP]Relax the test checks to pacify 32bit buildbots, NFC. Modified: cfe/trunk/test/OpenMP/parallel_codegen.cpp Modified: cfe/trunk/test/OpenMP/parallel_co

r364575 - [OPENMP]Generate correctly implicit flags for mapped data.

2019-06-27 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jun 27 11:53:07 2019 New Revision: 364575 URL: http://llvm.org/viewvc/llvm-project?rev=364575&view=rev Log: [OPENMP]Generate correctly implicit flags for mapped data. Implicit flag must not be emitted for explicitly specified firstprivate variables, but for implicitly ca

r364647 - [OPENMP]Fix checks for DSA in simd constructs.

2019-06-28 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jun 28 07:59:25 2019 New Revision: 364647 URL: http://llvm.org/viewvc/llvm-project?rev=364647&view=rev Log: [OPENMP]Fix checks for DSA in simd constructs. The errors for incorrectly specified data-sharing attributes for simd constructs must be emitted only for the explic

r364650 - [OPENMP]Fix DSA for loop iteration variables in simd loops.

2019-06-28 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jun 28 08:16:37 2019 New Revision: 364650 URL: http://llvm.org/viewvc/llvm-project?rev=364650&view=rev Log: [OPENMP]Fix DSA for loop iteration variables in simd loops. According to the OpenMP 5.0 standard, the loop iteration variable in the associated for-loop of a simd

r364655 - [OPENMP]Fix top DSA for static members.

2019-06-28 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jun 28 09:16:00 2019 New Revision: 364655 URL: http://llvm.org/viewvc/llvm-project?rev=364655&view=rev Log: [OPENMP]Fix top DSA for static members. Fixed handling of the data-sharing attributes for static members when requesting top most attribute. Previously, it might r

r364683 - [OPENMP]Improve analysis of implicit captures.

2019-06-28 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jun 28 13:45:14 2019 New Revision: 364683 URL: http://llvm.org/viewvc/llvm-project?rev=364683&view=rev Log: [OPENMP]Improve analysis of implicit captures. If the variable is used in the OpenMP region implicitly, we need to check the data-sharing attributes for such varia

r364820 - [OPENMP]Fix handling of lambda captures in target regions.

2019-07-01 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jul 1 10:46:52 2019 New Revision: 364820 URL: http://llvm.org/viewvc/llvm-project?rev=364820&view=rev Log: [OPENMP]Fix handling of lambda captures in target regions. Previously, lambda captures were processed in the function called during capturing the variables. It lea

r365374 - [OPENMP]Improve error message for device unsupported types.

2019-07-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jul 8 12:21:54 2019 New Revision: 365374 URL: http://llvm.org/viewvc/llvm-project?rev=365374&view=rev Log: [OPENMP]Improve error message for device unsupported types. Provide more data to the user in the error message about unsupported type for device compilation. Modi

r365485 - [OPENMP]Fix the float point semantics handling on the device.

2019-07-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jul 9 07:09:53 2019 New Revision: 365485 URL: http://llvm.org/viewvc/llvm-project?rev=365485&view=rev Log: [OPENMP]Fix the float point semantics handling on the device. The device should use the same float point representation as the host. Previous patch fixed the handl

r365691 - [OPENMP]Remove not used check line from the test, NFC.

2019-07-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Jul 10 12:30:25 2019 New Revision: 365691 URL: http://llvm.org/viewvc/llvm-project?rev=365691&view=rev Log: [OPENMP]Remove not used check line from the test, NFC. Modified: cfe/trunk/test/OpenMP/sections_lastprivate_codegen.cpp Modified: cfe/trunk/test/OpenMP/sectio

r365777 - Added mapping for pointers captured in Lambdas in OpenMP target regions,

2019-07-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jul 11 06:54:26 2019 New Revision: 365777 URL: http://llvm.org/viewvc/llvm-project?rev=365777&view=rev Log: Added mapping for pointers captured in Lambdas in OpenMP target regions, by David Truby. Summary: This adds a zero length array section mapping for each pointer ca

r365786 - [OPENMP]Initial fix PR42392: Improve -Wuninitialized warnings for OpenMP programs.

2019-07-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jul 11 07:54:17 2019 New Revision: 365786 URL: http://llvm.org/viewvc/llvm-project?rev=365786&view=rev Log: [OPENMP]Initial fix PR42392: Improve -Wuninitialized warnings for OpenMP programs. Summary: Some OpenMP clauses rely on the values of the variables. If the variab

r361269 - [OPENMP][NVPTX]Mark more functions as always_inline for better

2019-05-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue May 21 08:11:58 2019 New Revision: 361269 URL: http://llvm.org/viewvc/llvm-project?rev=361269&view=rev Log: [OPENMP][NVPTX]Mark more functions as always_inline for better performance. Internally generated functions must be marked as always_inlines in most cases. Patch ma

r361283 - [OPENMP]Use the attributes for dso locality when building for device.

2019-05-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue May 21 11:20:08 2019 New Revision: 361283 URL: http://llvm.org/viewvc/llvm-project?rev=361283&view=rev Log: [OPENMP]Use the attributes for dso locality when building for device. Currently, we ignore all dso locality attributes/info when building for the device and thus a

r361564 - [OPENMP]Do not crash for const firstprivates.

2019-05-23 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu May 23 15:30:43 2019 New Revision: 361564 URL: http://llvm.org/viewvc/llvm-project?rev=361564&view=rev Log: [OPENMP]Do not crash for const firstprivates. If the variable is a firstprivate variable and it was not emitted beause this a constant variable with the constant i

r348930 - [CUDA][OPENMP][NVPTX]Improve logic of the debug info support.

2018-12-12 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Dec 12 06:52:27 2018 New Revision: 348930 URL: http://llvm.org/viewvc/llvm-project?rev=348930&view=rev Log: [CUDA][OPENMP][NVPTX]Improve logic of the debug info support. Summary: Added support for the -gline-directives-only option + fixed logic of the debug info for CUDA

r349192 - [OPENMP][NVPTX]Improved interwarp copy function.

2018-12-14 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Dec 14 13:00:58 2018 New Revision: 349192 URL: http://llvm.org/viewvc/llvm-project?rev=349192&view=rev Log: [OPENMP][NVPTX]Improved interwarp copy function. Inlined runtime with the current implementation of the interwarp copy function leads to the undefined behavior bec

r349525 - [OPENMP][NVPTX]Added extra sync point to the inter-warp copy function.

2018-12-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Dec 18 11:20:15 2018 New Revision: 349525 URL: http://llvm.org/viewvc/llvm-project?rev=349525&view=rev Log: [OPENMP][NVPTX]Added extra sync point to the inter-warp copy function. The parallel reduction operation requires an extra synchronization point in the inter-warp c

r349540 - [OPENMP][NVPTX]Emit shared memory buffer for reduction as 128 bytes

2018-12-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Dec 18 13:01:42 2018 New Revision: 349540 URL: http://llvm.org/viewvc/llvm-project?rev=349540&view=rev Log: [OPENMP][NVPTX]Emit shared memory buffer for reduction as 128 bytes buffer. Seems to me, nvlink has a bug with the proper support of the weakly linked symbols. It

r349657 - [OPENMP]Mark the loop as started when initialized.

2018-12-19 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Dec 19 10:16:37 2018 New Revision: 349657 URL: http://llvm.org/viewvc/llvm-project?rev=349657&view=rev Log: [OPENMP]Mark the loop as started when initialized. Need to mark the loop as started when the initialization statement is found. It is required to prevent possible

r350127 - [OPENMP]Fix processing of the clauses on target combined directives.

2018-12-28 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Dec 28 09:27:32 2018 New Revision: 350127 URL: http://llvm.org/viewvc/llvm-project?rev=350127&view=rev Log: [OPENMP]Fix processing of the clauses on target combined directives. For constants with the predefined data-sharing clauses we may had troubles with the target com

r350328 - [OPENMP][NVPTX]Use __kmpc_barrier_simple_spmd(nullptr, 0) instead of

2019-01-03 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jan 3 08:25:35 2019 New Revision: 350328 URL: http://llvm.org/viewvc/llvm-project?rev=350328&view=rev Log: [OPENMP][NVPTX]Use __kmpc_barrier_simple_spmd(nullptr, 0) instead of nvvm_barrier0. Use runtime functions instead of the direct call to the nvvm intrinsics. It all

r350415 - [OPENMP][NVPTX]Use new functions from the runtime library.

2019-01-04 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jan 4 09:25:09 2019 New Revision: 350415 URL: http://llvm.org/viewvc/llvm-project?rev=350415&view=rev Log: [OPENMP][NVPTX]Use new functions from the runtime library. Updated codegen to use the new functions from the runtime library. Modified: cfe/trunk/lib/CodeGen/

r350530 - [OPENMP][NVPTX]Reduce number of barriers in reductions.

2019-01-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jan 7 07:45:09 2019 New Revision: 350530 URL: http://llvm.org/viewvc/llvm-project?rev=350530&view=rev Log: [OPENMP][NVPTX]Reduce number of barriers in reductions. After the fix for the syncthreads we don't need to generate extra barriers for the parallel reductions. Mo

r350571 - [OPENMP]Add call to __kmpc_push_target_tripcount() function.

2019-01-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jan 7 13:30:43 2019 New Revision: 350571 URL: http://llvm.org/viewvc/llvm-project?rev=350571&view=rev Log: [OPENMP]Add call to __kmpc_push_target_tripcount() function. Each we create the target regions with the teams distribute inner region, we can better estimate numbe

<    1   2   3   4   5   6   7   8   9   10   >