r339152 - [OPENMP] Mark variables captured in declare target region as implicitly

2018-08-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Aug 7 09:14:36 2018 New Revision: 339152 URL: http://llvm.org/viewvc/llvm-project?rev=339152&view=rev Log: [OPENMP] Mark variables captured in declare target region as implicitly declare target. According to OpenMP 5.0, variables captured in lambdas in declare target re

r339568 - [OPENMP] Fix emission of the loop doacross constructs.

2018-08-13 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Aug 13 07:05:43 2018 New Revision: 339568 URL: http://llvm.org/viewvc/llvm-project?rev=339568&view=rev Log: [OPENMP] Fix emission of the loop doacross constructs. The number of loops associated with the OpenMP loop constructs should not be considered as the number loops

r339574 - Revert "[OPENMP] Fix emission of the loop doacross constructs."

2018-08-13 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Aug 13 07:42:18 2018 New Revision: 339574 URL: http://llvm.org/viewvc/llvm-project?rev=339574&view=rev Log: Revert "[OPENMP] Fix emission of the loop doacross constructs." This reverts commit r339568 because of the problems with the buildbots. Modified: cfe/trunk/in

r339603 - [OPENMP] Fix emission of the loop doacross constructs.

2018-08-13 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Aug 13 12:04:24 2018 New Revision: 339603 URL: http://llvm.org/viewvc/llvm-project?rev=339603&view=rev Log: [OPENMP] Fix emission of the loop doacross constructs. The number of loops associated with the OpenMP loop constructs should not be considered as the number loops

r339704 - [OPENMP] Fix processing of declare target construct.

2018-08-14 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Aug 14 11:31:20 2018 New Revision: 339704 URL: http://llvm.org/viewvc/llvm-project?rev=339704&view=rev Log: [OPENMP] Fix processing of declare target construct. The attribute marked as inheritable since OpenMP 5.0 supports it + additional fixes to support new functionali

r339805 - [OPENMP] FIx processing of declare target variables.

2018-08-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Aug 15 12:45:12 2018 New Revision: 339805 URL: http://llvm.org/viewvc/llvm-project?rev=339805&view=rev Log: [OPENMP] FIx processing of declare target variables. The compiler may produce unexpected error messages/crashes when declare target variables were used. Patch fixe

Re: r339603 - [OPENMP] Fix emission of the loop doacross constructs.

2018-08-16 Thread Alexey Bataev via cfe-commits
it. Could you do that, Jonas? >> >> - >> Best regards, >> Alexey Bataev >> >> 15.08.2018 5:02, Jonas Hahnfeld via cfe-commits пишет: >> >> Alexey, Hans, >> >> does it make sense to backport for 7.0 as it fixes PR37580? >> >

r340181 - [OPENMP][BLOCKS]Fix PR38923: reference to a global variable is captured

2018-08-20 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Aug 20 09:00:22 2018 New Revision: 340181 URL: http://llvm.org/viewvc/llvm-project?rev=340181&view=rev Log: [OPENMP][BLOCKS]Fix PR38923: reference to a global variable is captured by a block. Added checks for capturing of the variable in the block when trying to emit cor

r340191 - [OPENMP] Fix crash on the emission of the weak function declaration.

2018-08-20 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Aug 20 11:03:40 2018 New Revision: 340191 URL: http://llvm.org/viewvc/llvm-project?rev=340191&view=rev Log: [OPENMP] Fix crash on the emission of the weak function declaration. If the function is actually a weak reference, it should not be marked as deferred definition a

r331879 - [OPENMP] Mark global tors/dtors as used.

2018-05-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed May 9 07:15:18 2018 New Revision: 331879 URL: http://llvm.org/viewvc/llvm-project?rev=331879&view=rev Log: [OPENMP] Mark global tors/dtors as used. If the global variables are marked as declare target and they need ctors/dtors, these ctors/dtors are emitted and then inv

r331899 - [OPENMP] Generate unique names for offloading regions id.

2018-05-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed May 9 11:02:37 2018 New Revision: 331899 URL: http://llvm.org/viewvc/llvm-project?rev=331899&view=rev Log: [OPENMP] Generate unique names for offloading regions id. It is required to emit unique names for offloading regions ids. Required to support compilation and linki

r332016 - [OPENMP, NVPTX] Initial support for L2 parallelism in SPMD mode.

2018-05-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu May 10 11:32:08 2018 New Revision: 332016 URL: http://llvm.org/viewvc/llvm-project?rev=332016&view=rev Log: [OPENMP, NVPTX] Initial support for L2 parallelism in SPMD mode. Added initial support for L2 parallelism in SPMD mode. Note, though, that the orphaned parallel di

r332129 - [OPENMP, NVPTX] Do not use SPMD mode for target simd and target teams

2018-05-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri May 11 12:45:14 2018 New Revision: 332129 URL: http://llvm.org/viewvc/llvm-project?rev=332129&view=rev Log: [OPENMP, NVPTX] Do not use SPMD mode for target simd and target teams distribute simd directives. Directives `target simd` and `target teams distribute simd` must

r332380 - [OPENMP, NVPTX] Do not globalize variables with reference/pointer types.

2018-05-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue May 15 11:01:01 2018 New Revision: 332380 URL: http://llvm.org/viewvc/llvm-project?rev=332380&view=rev Log: [OPENMP, NVPTX] Do not globalize variables with reference/pointer types. In generic data-sharing mode we do not need to globalize variables/parameters of reference

r332467 - [OPENMP, NVPTX] Add check for SPMD mode in orphaned parallel directives.

2018-05-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed May 16 06:36:30 2018 New Revision: 332467 URL: http://llvm.org/viewvc/llvm-project?rev=332467&view=rev Log: [OPENMP, NVPTX] Add check for SPMD mode in orphaned parallel directives. If the orphaned directive is executed in SPMD mode, we need to emit the check for the SPMD

r332477 - [OPENMP] DO not crash on combined constructs in declare target

2018-05-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed May 16 08:08:32 2018 New Revision: 332477 URL: http://llvm.org/viewvc/llvm-project?rev=332477&view=rev Log: [OPENMP] DO not crash on combined constructs in declare target functions. If the combined construct is specified in the declare target function and the device code

r332852 - [OPENMP-SIMD] Fix PR37536: Fix definition of _OPENMP macro.

2018-05-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon May 21 09:40:32 2018 New Revision: 332852 URL: http://llvm.org/viewvc/llvm-project?rev=332852&view=rev Log: [OPENMP-SIMD] Fix PR37536: Fix definition of _OPENMP macro. if `-fopenmp-simd` is specified alone, `_OPENMP` macro should not be defined. If `-fopenmp-simd` is s

r333301 - [OPENMP, NVPTX] Fixed codegen for orphaned parallel region.

2018-05-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri May 25 13:16:03 2018 New Revision: 01 URL: http://llvm.org/viewvc/llvm-project?rev=01&view=rev Log: [OPENMP, NVPTX] Fixed codegen for orphaned parallel region. If orphaned parallel region is found, the next code must be emitted: ``` if(__kmpc_is_spmd_exec_mode()

r314205 - [OPENMP] Generate implicit map|firstprivate clauses for target-based

2017-09-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 26 06:47:31 2017 New Revision: 314205 URL: http://llvm.org/viewvc/llvm-project?rev=314205&view=rev Log: [OPENMP] Generate implicit map|firstprivate clauses for target-based directives. If the variable is used in the target-based region but is not found in any private

r314220 - [OPENMP] Fix handling of implicit mapping of array sections.

2017-09-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 26 09:19:04 2017 New Revision: 314220 URL: http://llvm.org/viewvc/llvm-project?rev=314220&view=rev Log: [OPENMP] Fix handling of implicit mapping of array sections. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp cfe/trunk/test/OpenMP/target_map_messages.cpp Mod

r314670 - [OPENMP] Simplify codegen for non-offloading code.

2017-10-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 2 07:20:58 2017 New Revision: 314670 URL: http://llvm.org/viewvc/llvm-project?rev=314670&view=rev Log: [OPENMP] Simplify codegen for non-offloading code. Simplified and generalized codegen for non-offloading part that works if offloading is failed or condition of th

r314673 - [OPENMP] Fix test, NFC.

2017-10-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 2 07:35:31 2017 New Revision: 314673 URL: http://llvm.org/viewvc/llvm-project?rev=314673&view=rev Log: [OPENMP] Fix test, NFC. Modified: cfe/trunk/test/OpenMP/target_codegen.cpp Modified: cfe/trunk/test/OpenMP/target_codegen.cpp URL: http://llvm.org/viewvc/llv

r314686 - [OPENMP] Capture argument of `device` clause for target-based

2017-10-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 2 09:32:39 2017 New Revision: 314686 URL: http://llvm.org/viewvc/llvm-project?rev=314686&view=rev Log: [OPENMP] Capture argument of `device` clause for target-based directives. The argument of the `device` clause in target-based executable directives must be capture

Re: r270962 - [OPENMP] Fixed processing of '-fopenmp-version=' option and test.

2017-10-02 Thread Alexey Bataev via cfe-commits
#x27;#if _OPENMP >= 201307' or similar. Thanks again, Hal On 05/26/2016 11:13 PM, Alexey Bataev via cfe-commits wrote: Author: abataev Date: Thu May 26 23:13:39 2016 New Revision: 270962 URL: http://llvm.org/viewvc/llvm-project?rev=270962&view=rev Log: [OPENMP] Fixed processing of '-

Re: r270962 - [OPENMP] Fixed processing of '-fopenmp-version=' option and test.

2017-10-02 Thread Alexey Bataev via cfe-commits
= 201307' or similar. Thanks again, Hal On 05/26/2016 11:13 PM, Alexey Bataev via cfe-commits wrote: Author: abataev Date: Thu May 26 23:13:39 2016 New Revision: 270962 URL: http://llvm.org/viewvc/llvm-project?rev=270962&view=rev Log: [OPENMP] Fixed processing of '-fopenmp-ver

r314833 - [OPENMP] Allow use of declare target directive inside struct

2017-10-03 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 3 13:00:00 2017 New Revision: 314833 URL: http://llvm.org/viewvc/llvm-project?rev=314833&view=rev Log: [OPENMP] Allow use of declare target directive inside struct declaration. Patch allows using of the `#pragma omp declare target`| `#pragma omp end declare target`

r314995 - [OPENMP] Fix mapping|privatization of implicitly captured variables.

2017-10-05 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 5 10:51:39 2017 New Revision: 314995 URL: http://llvm.org/viewvc/llvm-project?rev=314995&view=rev Log: [OPENMP] Fix mapping|privatization of implicitly captured variables. If the `defaultmap(tofrom:scalar)` clause is specified, the scalars must be mapped with 'tofro

r315074 - [OPENMP] Capture references to global variables.

2017-10-06 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Oct 6 09:17:25 2017 New Revision: 315074 URL: http://llvm.org/viewvc/llvm-project?rev=315074&view=rev Log: [OPENMP] Capture references to global variables. In C++11 variable to global variables are considered as constant expressions and these variables are not captured

r315076 - [OPENMP] Do not capture local static variables.

2017-10-06 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Oct 6 10:00:28 2017 New Revision: 315076 URL: http://llvm.org/viewvc/llvm-project?rev=315076&view=rev Log: [OPENMP] Do not capture local static variables. Previously we may erroneously try to capture locally declared static variables, which will lead to crash for target

r315315 - [OPENMP] Add default codegen|tests for 'target parallel for[ simd]'

2017-10-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 10 07:14:43 2017 New Revision: 315315 URL: http://llvm.org/viewvc/llvm-project?rev=315315&view=rev Log: [OPENMP] Add default codegen|tests for 'target parallel for[ simd]' constructs. Added default codegen for 'target parallel for' construct + tests for default codeg

r315464 - [OPENMP] Fix PR34916: Crash on mixing taskloop|tasks directives.

2017-10-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Oct 11 08:29:40 2017 New Revision: 315464 URL: http://llvm.org/viewvc/llvm-project?rev=315464&view=rev Log: [OPENMP] Fix PR34916: Crash on mixing taskloop|tasks directives. If both taskloop and task directives are used at the same time in one program, we may ran into the

r315467 - [OPENMP] Remove extra if, NFC.

2017-10-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Oct 11 08:56:38 2017 New Revision: 315467 URL: http://llvm.org/viewvc/llvm-project?rev=315467&view=rev Log: [OPENMP] Remove extra if, NFC. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp URL: http://llvm.org/v

r315578 - [OPENMP] Fix PR34925: Fix getting thread_id lvalue for inlined regions

2017-10-12 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 12 06:51:32 2017 New Revision: 315578 URL: http://llvm.org/viewvc/llvm-project?rev=315578&view=rev Log: [OPENMP] Fix PR34925: Fix getting thread_id lvalue for inlined regions in C. If we try to get the lvalue for thread_id variables in inlined regions, we did not use

r315586 - [OPENMP] Fix PR34926: Fix handling of the array sections passed as

2017-10-12 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 12 08:18:41 2017 New Revision: 315586 URL: http://llvm.org/viewvc/llvm-project?rev=315586&view=rev Log: [OPENMP] Fix PR34926: Fix handling of the array sections passed as function params. Codegen could crash if the array section base expression is the function parame

r315611 - [OPENMP] Fix PR34927: Emit initializer for reduction array with declare

2017-10-12 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 12 13:03:39 2017 New Revision: 315611 URL: http://llvm.org/viewvc/llvm-project?rev=315611&view=rev Log: [OPENMP] Fix PR34927: Emit initializer for reduction array with declare reduction. If the reduction is an array or an array section and reduction operation is decl

r316011 - [OPENMP] Fix capturing of boolean variables in debug mode.

2017-10-17 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 17 09:47:34 2017 New Revision: 316011 URL: http://llvm.org/viewvc/llvm-project?rev=316011&view=rev Log: [OPENMP] Fix capturing of boolean variables in debug mode. If the variables is boolean and we generating inner function with real types, the codegen may crash beca

r316488 - [OPENMP] Fix PR35013: Fix passing VLAs captures to outlined functions.

2017-10-24 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 24 12:52:31 2017 New Revision: 316488 URL: http://llvm.org/viewvc/llvm-project?rev=316488&view=rev Log: [OPENMP] Fix PR35013: Fix passing VLAs captures to outlined functions. Fixed passing of VLAs and variably-modified types to outlined functions. Synchronized passin

r316584 - [OPENMP] Constify function parameters, NFC.

2017-10-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Oct 25 08:44:52 2017 New Revision: 316584 URL: http://llvm.org/viewvc/llvm-project?rev=316584&view=rev Log: [OPENMP] Constify function parameters, NFC. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp URL: http://llvm.org/view

r316585 - [OPENMP] Improve debug info for taskgroup implicitly generated

2017-10-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Oct 25 08:54:04 2017 New Revision: 316585 URL: http://llvm.org/viewvc/llvm-project?rev=316585&view=rev Log: [OPENMP] Improve debug info for taskgroup implicitly generated expressions. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp cfe/trunk/test/OpenMP/taskgroup_tas

r340953 - [OPENMP][NVPTX] Add support for lightweight runtime.

2018-08-29 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Aug 29 11:32:21 2018 New Revision: 340953 URL: http://llvm.org/viewvc/llvm-project?rev=340953&view=rev Log: [OPENMP][NVPTX] Add support for lightweight runtime. If the target construct can be executed in SPMD mode + it is a loop based directive with static scheduling, we

r340968 - [OPENMP] Do not create offloading entry for declare target variables

2018-08-29 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Aug 29 13:41:37 2018 New Revision: 340968 URL: http://llvm.org/viewvc/llvm-project?rev=340968&view=rev Log: [OPENMP] Do not create offloading entry for declare target variables declarations. We should not create offloading entries for declare target var declarations as i

r341073 - [OPENMP][NVPTX] Add options -f[no-]openmp-cuda-force-full-runtime.

2018-08-30 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Aug 30 07:45:24 2018 New Revision: 341073 URL: http://llvm.org/viewvc/llvm-project?rev=341073&view=rev Log: [OPENMP][NVPTX] Add options -f[no-]openmp-cuda-force-full-runtime. Added options -f[no-]openmp-cuda-force-full-runtime to [not] force use of the full runtime for O

r341093 - [OPENMP] Fix PR38710: static functions are not emitted as implicitly

2018-08-30 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Aug 30 11:56:11 2018 New Revision: 341093 URL: http://llvm.org/viewvc/llvm-project?rev=341093&view=rev Log: [OPENMP] Fix PR38710: static functions are not emitted as implicitly 'declare target'. All the functions, referenced in implicit|explicit target regions must be em

r341212 - [DEBUGINFO] Add support for emission of the debug directives only.

2018-08-31 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 31 06:56:14 2018 New Revision: 341212 URL: http://llvm.org/viewvc/llvm-project?rev=341212&view=rev Log: [DEBUGINFO] Add support for emission of the debug directives only. Summary: Added option -gline-directives-only to support emission of the debug directives only. I

r341483 - [OPENMP][NVPTX] Disable runtime-type info for CUDA devices.

2018-09-05 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Sep 5 10:10:30 2018 New Revision: 341483 URL: http://llvm.org/viewvc/llvm-project?rev=341483&view=rev Log: [OPENMP][NVPTX] Disable runtime-type info for CUDA devices. RTTI is not supported by the NVPTX target. Added: cfe/trunk/test/OpenMP/nvptx_target_rtti_messages

r341570 - [OPENMP] Fix PR38823: Do not emit vtable if it is not used in target

2018-09-06 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Sep 6 10:56:28 2018 New Revision: 341570 URL: http://llvm.org/viewvc/llvm-project?rev=341570&view=rev Log: [OPENMP] Fix PR38823: Do not emit vtable if it is not used in target context. If the explicit template instantiation definition defined outside of the target conte

r341668 - Revert "[OPENMP][NVPTX] Disable runtime-type info for CUDA devices."

2018-09-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Sep 7 07:50:25 2018 New Revision: 341668 URL: http://llvm.org/viewvc/llvm-project?rev=341668&view=rev Log: Revert "[OPENMP][NVPTX] Disable runtime-type info for CUDA devices." Still need the RTTI for NVPTX target to pass sema checks. Removed: cfe/trunk/test/OpenMP/

r341939 - [OPENMP] Simplified checks for declarations in declare target regions.

2018-09-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 11 06:59:10 2018 New Revision: 341939 URL: http://llvm.org/viewvc/llvm-project?rev=341939&view=rev Log: [OPENMP] Simplified checks for declarations in declare target regions. Sema analysis should not mark functions as an implicit declare target, it may break codegen.

r342062 - [OPENMP] Fix PR38902: support ADL for declare reduction constructs.

2018-09-12 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Sep 12 09:31:59 2018 New Revision: 342062 URL: http://llvm.org/viewvc/llvm-project?rev=342062&view=rev Log: [OPENMP] Fix PR38902: support ADL for declare reduction constructs. Added support for argument-dependent lookup when trying to find the required declare reduction

r342151 - [OPENMP] Fix PR38903: Crash on instantiation of the non-dependent

2018-09-13 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Sep 13 09:54:05 2018 New Revision: 342151 URL: http://llvm.org/viewvc/llvm-project?rev=342151&view=rev Log: [OPENMP] Fix PR38903: Crash on instantiation of the non-dependent declare reduction. If the declare reduction construct with the non-dependent type is defined in t

r337928 - [OPENMP] Fix PR38256: Fix locations of the artificial conditional op.

2018-07-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Jul 25 07:40:26 2018 New Revision: 337928 URL: http://llvm.org/viewvc/llvm-project?rev=337928&view=rev Log: [OPENMP] Fix PR38256: Fix locations of the artificial conditional op. Fixed the source locations of the conditional op so that they don'r crash coverage pass. Add

r337941 - [OPENMP] Exclude service expressions/statements from the list of

2018-07-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Jul 25 10:27:45 2018 New Revision: 337941 URL: http://llvm.org/viewvc/llvm-project?rev=337941&view=rev Log: [OPENMP] Exclude service expressions/statements from the list of the children. Special internal helper expressions/statements for the OpenMP directives should not

r337957 - [OPENMP] ThreadId in serialized parallel regions is 0.

2018-07-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Jul 25 13:03:01 2018 New Revision: 337957 URL: http://llvm.org/viewvc/llvm-project?rev=337957&view=rev Log: [OPENMP] ThreadId in serialized parallel regions is 0. The first argument for the parallel outlined functions, called as serialized parallel regions, should be a p

r338032 - [OPENMP] Force OpenMP 4.5 when compiling for offloading.

2018-07-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jul 26 08:17:38 2018 New Revision: 338032 URL: http://llvm.org/viewvc/llvm-project?rev=338032&view=rev Log: [OPENMP] Force OpenMP 4.5 when compiling for offloading. If the user requested compilation for OpenMP with the offloading support, force the version of the OpenMP

r338049 - [OPENMP] What's new for OpenMP in clang.

2018-07-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jul 26 10:53:45 2018 New Revision: 338049 URL: http://llvm.org/viewvc/llvm-project?rev=338049&view=rev Log: [OPENMP] What's new for OpenMP in clang. Updated ReleaseNotes + Status of the OpenMP support in clang. Modified: cfe/trunk/docs/OpenMPSupport.rst cfe/trun

r338055 - [OPENMP, DOCS] Fixed typo, NFC.

2018-07-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jul 26 11:40:41 2018 New Revision: 338055 URL: http://llvm.org/viewvc/llvm-project?rev=338055&view=rev Log: [OPENMP, DOCS] Fixed typo, NFC. Modified: cfe/trunk/docs/ReleaseNotes.rst Modified: cfe/trunk/docs/ReleaseNotes.rst URL: http://llvm.org/viewvc/llvm-project/

r338139 - [OPENMP] Static variables on device must be externally visible.

2018-07-27 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jul 27 10:37:32 2018 New Revision: 338139 URL: http://llvm.org/viewvc/llvm-project?rev=338139&view=rev Log: [OPENMP] Static variables on device must be externally visible. Do not mark static variable as internal on the device as they must be visible from the host to be m

r338155 - [DEBUGINFO] Disable unsupported debug info options for NVPTX target.

2018-07-27 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jul 27 12:45:14 2018 New Revision: 338155 URL: http://llvm.org/viewvc/llvm-project?rev=338155&view=rev Log: [DEBUGINFO] Disable unsupported debug info options for NVPTX target. Summary: Some targets support only default set of the debug options and do not support additio

r338158 - [DEBUG_INFO] Fix tests, NFC.

2018-07-27 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jul 27 13:16:44 2018 New Revision: 338158 URL: http://llvm.org/viewvc/llvm-project?rev=338158&view=rev Log: [DEBUG_INFO] Fix tests, NFC. Modified: cfe/trunk/test/Driver/cuda-unsupported-debug-options.cu cfe/trunk/test/Driver/openmp-unsupported-debug-options.c Mo

Re: r338049 - [OPENMP] What's new for OpenMP in clang.

2018-07-29 Thread Alexey Bataev via cfe-commits
> >> On 2018-07-26 19:53, Alexey Bataev via cfe-commits wrote: >> Author: abataev >> Date: Thu Jul 26 10:53:45 2018 >> New Revision: 338049 >> URL: http://llvm.org/viewvc/llvm-project?rev=338049&view=rev >> Log: >> [OPENMP] What's new for O

r338252 - [OPENMP] Modify the info about OpenMP support in UsersManual, NFC.

2018-07-30 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jul 30 07:44:29 2018 New Revision: 338252 URL: http://llvm.org/viewvc/llvm-project?rev=338252&view=rev Log: [OPENMP] Modify the info about OpenMP support in UsersManual, NFC. Modified: cfe/trunk/docs/UsersManual.rst Modified: cfe/trunk/docs/UsersManual.rst URL: htt

r338399 - [OPENMP] Prevent problems with linking of the static variables.

2018-07-31 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jul 31 09:40:15 2018 New Revision: 338399 URL: http://llvm.org/viewvc/llvm-project?rev=338399&view=rev Log: [OPENMP] Prevent problems with linking of the static variables. No need to change the linkage, we can avoid the problem using special variable. That points to the

r338413 - [OPENMP] Change linkage of offloading symbols to support dropping

2018-07-31 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jul 31 11:27:42 2018 New Revision: 338413 URL: http://llvm.org/viewvc/llvm-project?rev=338413&view=rev Log: [OPENMP] Change linkage of offloading symbols to support dropping offload targets. Changed the linkage of omp_offloading.img_start. and omp_offloading.img_end. sy

r325145 - [OpenMP] Fix trailing space when printing pragmas, by Joel. E. Denny

2018-02-14 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Feb 14 09:38:47 2018 New Revision: 325145 URL: http://llvm.org/viewvc/llvm-project?rev=325145&view=rev Log: [OpenMP] Fix trailing space when printing pragmas, by Joel. E. Denny Summary: -ast-print prints omp pragmas with a trailing space. While this behavior is likely o

r325302 - [OPENMP] Fix PR38398: compiler crash on standalone pragma ordered with depend sink|source clause.

2018-02-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Feb 15 14:42:57 2018 New Revision: 325302 URL: http://llvm.org/viewvc/llvm-project?rev=325302&view=rev Log: [OPENMP] Fix PR38398: compiler crash on standalone pragma ordered with depend sink|source clause. Patch fixes compiler crash on standalone #pragmas ordered with d

r325304 - [OPENMP] Fix PR36399: Crash on C code with ordered doacross construct.

2018-02-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Feb 15 15:39:43 2018 New Revision: 325304 URL: http://llvm.org/viewvc/llvm-project?rev=325304&view=rev Log: [OPENMP] Fix PR36399: Crash on C code with ordered doacross construct. Codegen for ordered with doacross construct might produce incorrect code because of missing

r325369 - [OPENMP] Fix parsing of the directives with inner directives.

2018-02-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Feb 16 10:36:44 2018 New Revision: 325369 URL: http://llvm.org/viewvc/llvm-project?rev=325369&view=rev Log: [OPENMP] Fix parsing of the directives with inner directives. The parsing may lead to compiler hanging because of the incorrect processing of inner OpenMP pragmas.

r325373 - [OPENMP] Fix PR35873: Fix data-sharing attributes for const variables.

2018-02-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Feb 16 11:16:54 2018 New Revision: 325373 URL: http://llvm.org/viewvc/llvm-project?rev=325373&view=rev Log: [OPENMP] Fix PR35873: Fix data-sharing attributes for const variables. Compiler erroneously returned wrong data-sharing attributes for the constant variables if th

r325391 - [OPENMP] Do not emit messages for templates in declare target

2018-02-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Feb 16 13:23:23 2018 New Revision: 325391 URL: http://llvm.org/viewvc/llvm-project?rev=325391&view=rev Log: [OPENMP] Do not emit messages for templates in declare target constructs. The compiler may emit some extra warnings for functions, that are implicit specialization

r325812 - [OPENMP] Require valid SourceLocation in function call, NFC.

2018-02-22 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Feb 22 10:33:31 2018 New Revision: 325812 URL: http://llvm.org/viewvc/llvm-project?rev=325812&view=rev Log: [OPENMP] Require valid SourceLocation in function call, NFC. Removed default empty SourceLocation argument from `emitCall` function and require valid location. Mo

r303768 - [OPENMP] Allow value of thread local variables in target regions.

2017-05-24 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed May 24 11:00:02 2017 New Revision: 303768 URL: http://llvm.org/viewvc/llvm-project?rev=303768&view=rev Log: [OPENMP] Allow value of thread local variables in target regions. If the variable is marked as TLS variable and target device does not support TLS, the error is em

r304216 - [OPENMP] Allow 'use_device_ptr' clause in 'target data' alone.

2017-05-30 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue May 30 11:00:04 2017 New Revision: 304216 URL: http://llvm.org/viewvc/llvm-project?rev=304216&view=rev Log: [OPENMP] Allow 'use_device_ptr' clause in 'target data' alone. According to OpenMP 5.0 at least one 'map' or 'use_device_ptr' clause must be specified for 'target

r304229 - [OpenMP][Driver] Put target binary for each offload target into a

2017-05-30 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue May 30 13:57:51 2017 New Revision: 304229 URL: http://llvm.org/viewvc/llvm-project?rev=304229&view=rev Log: [OpenMP][Driver] Put target binary for each offload target into a separate section, by Sergey Dmitriev Linker script that is generated by the clang driver for crea

r305075 - [DebugInfo] Add kind of ImplicitParamDecl for emission of FlagObjectPointer.

2017-06-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jun 9 08:40:18 2017 New Revision: 305075 URL: http://llvm.org/viewvc/llvm-project?rev=305075&view=rev Log: [DebugInfo] Add kind of ImplicitParamDecl for emission of FlagObjectPointer. Summary: If the first parameter of the function is the ImplicitParamDecl, codegen auto

r305076 - [DebugInfo] Fix comment, NFC.

2017-06-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jun 9 08:55:08 2017 New Revision: 305076 URL: http://llvm.org/viewvc/llvm-project?rev=305076&view=rev Log: [DebugInfo] Fix comment, NFC. Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp URL: http://llvm.org/viewvc/llv

r320717 - [OPENMP] Add codegen for target data constructs with `nowait` clause.

2017-12-14 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Dec 14 09:00:17 2017 New Revision: 320717 URL: http://llvm.org/viewvc/llvm-project?rev=320717&view=rev Log: [OPENMP] Add codegen for target data constructs with `nowait` clause. Added codegen for the `nowait` clause in target data constructs. Modified: cfe/trunk/lib

r320826 - [OPENMP] Codegen `declare simd` for function declarations.

2017-12-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Dec 15 08:28:31 2017 New Revision: 320826 URL: http://llvm.org/viewvc/llvm-project?rev=320826&view=rev Log: [OPENMP] Codegen `declare simd` for function declarations. Previously the attributes were emitted only for function definitions. Patch adds emission of the attribu

r321386 - [OPENMP] Captured arguments of the capturable clauses by value.

2017-12-22 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Dec 22 13:01:52 2017 New Revision: 321386 URL: http://llvm.org/viewvc/llvm-project?rev=321386&view=rev Log: [OPENMP] Captured arguments of the capturable clauses by value. If the clause is applied to the combined construct and has captured expression, try to capture this

Re: r321386 - [OPENMP] Captured arguments of the capturable clauses by value.

2017-12-24 Thread Alexey Bataev via cfe-commits
Sure, thanks for the report. Best regards, Alexey Bataev 24 дек. 2017 г., в 8:27, Maxim Kuvyrkov написал(а): >> On Dec 23, 2017, at 12:01 AM, Alexey Bataev via cfe-commits >> wrote: >> >> Author: abataev >> Date: Fri Dec 22 13:01:52 2017 >> New Re

r321427 - [OPENMP] Fix the tests for 32bits targets, NFC.

2017-12-24 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Sun Dec 24 06:18:33 2017 New Revision: 321427 URL: http://llvm.org/viewvc/llvm-project?rev=321427&view=rev Log: [OPENMP] Fix the tests for 32bits targets, NFC. Modified: cfe/trunk/test/OpenMP/teams_distribute_parallel_for_num_threads_codegen.cpp cfe/trunk/test/OpenM

r321493 - [OPENMP] Support for `depend` clauses on `target data update`.

2017-12-27 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Dec 27 09:58:32 2017 New Revision: 321493 URL: http://llvm.org/viewvc/llvm-project?rev=321493&view=rev Log: [OPENMP] Support for `depend` clauses on `target data update`. Added codegen for `depend` clauses on `target data update` directives. Added: cfe/trunk/test/Op

r321495 - [OPENMP] Support for `depend` clauses on `target enter|exit data`.

2017-12-27 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Dec 27 10:49:38 2017 New Revision: 321495 URL: http://llvm.org/viewvc/llvm-project?rev=321495&view=rev Log: [OPENMP] Support for `depend` clauses on `target enter|exit data`. Added codegen for `depend` clauses on `target enter|exit data` directives. Added: cfe/trunk

r321558 - [OPENMP] Initial support for `-fopenmp-simd` option.

2017-12-29 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Dec 29 09:36:15 2017 New Revision: 321558 URL: http://llvm.org/viewvc/llvm-project?rev=321558&view=rev Log: [OPENMP] Initial support for `-fopenmp-simd` option. Added basic support for `-fopenmp-simd` options. Modified: cfe/trunk/include/clang/Basic/LangOptions.def

r321561 - [docs] Updated ReleaseNotes for OpenMP part.

2017-12-29 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Dec 29 10:23:12 2017 New Revision: 321561 URL: http://llvm.org/viewvc/llvm-project?rev=321561&view=rev Log: [docs] Updated ReleaseNotes for OpenMP part. Modified: cfe/trunk/docs/ReleaseNotes.rst Modified: cfe/trunk/docs/ReleaseNotes.rst URL: http://llvm.org/viewvc/

r321562 - [docs] Added description of `-f[no]-openmp-simd` option to UsersManual.

2017-12-29 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Dec 29 10:27:00 2017 New Revision: 321562 URL: http://llvm.org/viewvc/llvm-project?rev=321562&view=rev Log: [docs] Added description of `-f[no]-openmp-simd` option to UsersManual. Modified: cfe/trunk/docs/UsersManual.rst Modified: cfe/trunk/docs/UsersManual.rst URL:

r321816 - [OPENMP] Add debug info for generated functions.

2018-01-04 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jan 4 11:45:16 2018 New Revision: 321816 URL: http://llvm.org/viewvc/llvm-project?rev=321816&view=rev Log: [OPENMP] Add debug info for generated functions. Most of the generated functions for the OpenMP were generated with disabled debug info. Patch fixes this for bette

r321818 - [OPENMP] Fix casting in NVPTX support library.

2018-01-04 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jan 4 12:18:55 2018 New Revision: 321818 URL: http://llvm.org/viewvc/llvm-project?rev=321818&view=rev Log: [OPENMP] Fix casting in NVPTX support library. If the reduction required shuffle in the NVPTX codegen, we may need to cast the reduced value to the integer type. T

r321820 - [OPENMP] Fix capturing of expressions in clauses.

2018-01-04 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Jan 4 12:50:08 2018 New Revision: 321820 URL: http://llvm.org/viewvc/llvm-project?rev=321820&view=rev Log: [OPENMP] Fix capturing of expressions in clauses. Patch fixes incorrect capturing of the expressions in clauses with expressions that must be captured for the comb

Re: r321816 - [OPENMP] Add debug info for generated functions.

2018-01-05 Thread Alexey Bataev via cfe-commits
Hi Jonas, I don't think it is necessary. It is better to backport my 2 next patches with bug fixes. Best regards, Alexey 04.01.2018 15:54, Jonas Hahnfeld пишет: > Hi Alexey, > > should this change be backported to 6.0? > > Regards, > Jonas > > Am 2018-01-04 20:45,

Re: r321816 - [OPENMP] Add debug info for generated functions.

2018-01-05 Thread Alexey Bataev via cfe-commits
;>> Hi Alexey, >>> >>> should this change be backported to 6.0? >>> >>> Regards, >>> Jonas >>> >>> Am 2018-01-04 20:45, schrieb Alexey Bataev via cfe-commits: >>> >>>> Author: abataev >>>> Date:

Re: r321816 - [OPENMP] Add debug info for generated functions.

2018-01-08 Thread Alexey Bataev via cfe-commits
to plumb things through - but if there's lots > of places that get locations and only a few of those are tested, maybe > this could use more coverage?) > > On Thu, Jan 4, 2018 at 11:46 AM Alexey Bataev via cfe-commits > mailto:cfe-commits@lists.llvm.org>> wrote: > >

r322018 - [OPENMP] Current status of OpenMP support.

2018-01-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jan 8 11:02:51 2018 New Revision: 322018 URL: http://llvm.org/viewvc/llvm-project?rev=322018&view=rev Log: [OPENMP] Current status of OpenMP support. Summary: Some info about supported features of OpenMP 4.5-5.0. Reviewers: hfinkel, rsmith Subscribers: kkwli0, Hahnfel

r322022 - [OPENMP] Fix debug info for outlined functions in NVPTX + add more tests.

2018-01-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jan 8 12:09:47 2018 New Revision: 322022 URL: http://llvm.org/viewvc/llvm-project?rev=322022&view=rev Log: [OPENMP] Fix debug info for outlined functions in NVPTX + add more tests. Fixed name of emitted outlined functions in NVPTX target + extra tests for the debug inf

r322107 - [OpenMP] Fix handling of clause on wrong directive, by Joel. E. Denny

2018-01-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 9 11:21:04 2018 New Revision: 322107 URL: http://llvm.org/viewvc/llvm-project?rev=322107&view=rev Log: [OpenMP] Fix handling of clause on wrong directive, by Joel. E. Denny Summary: First, this patch fixes an assert failure when, for example, "omp for" has num_teams

r322112 - [OPENMP] Fix directive kind on stand-alone target data directives, NFC.

2018-01-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 9 11:59:25 2018 New Revision: 322112 URL: http://llvm.org/viewvc/llvm-project?rev=322112&view=rev Log: [OPENMP] Fix directive kind on stand-alone target data directives, NFC. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp Modified: cfe/trunk/lib/CodeGen/CG

Re: Re: r322112 - [OPENMP] Fix directive kind on stand-alone target data directives, NFC.

2018-01-10 Thread Alexey Bataev via cfe-commits
These changes are just cosmetic, it does not affect real codegen for target data directives. - Best regards, Alexey Bataev 09.01.2018 15:31, Jonas Hahnfeld via cfe-commits пишет: > Why is this NFC and doesn't change a test? > > Am 2018-01-09 20:59, schrieb Alexey

r326212 - [OPENMP] Allow multiple mappings for member expressions for pointers.

2018-02-27 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Feb 27 09:42:00 2018 New Revision: 326212 URL: http://llvm.org/viewvc/llvm-project?rev=326212&view=rev Log: [OPENMP] Allow multiple mappings for member expressions for pointers. If several member expressions are mapped and they reference the same address as a base, but a

r326590 - [OPENMP] Treat local variables in CUDA mode as thread local.

2018-03-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Mar 2 09:17:12 2018 New Revision: 326590 URL: http://llvm.org/viewvc/llvm-project?rev=326590&view=rev Log: [OPENMP] Treat local variables in CUDA mode as thread local. In CUDA mode all local variables are actually thread local|threadprivate, not private, and, thus, they

r326594 - [OPENMP] Scan all redeclarations looking for `declare simd` attribute.

2018-03-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Mar 2 10:07:00 2018 New Revision: 326594 URL: http://llvm.org/viewvc/llvm-project?rev=326594&view=rev Log: [OPENMP] Scan all redeclarations looking for `declare simd` attribute. Patch fixes the problem with the functions marked as `declare simd`. If the canonical declar

r326827 - [OPENMP] Fix generation of the unique names for task reduction

2018-03-06 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Mar 6 10:59:43 2018 New Revision: 326827 URL: http://llvm.org/viewvc/llvm-project?rev=326827&view=rev Log: [OPENMP] Fix generation of the unique names for task reduction variables. If the task has reduction construct and this construct for some variable requires unique

  1   2   3   4   5   6   7   8   9   10   >