r350634 - [OPENMP]Fix PR40191: Do not allow orphaned cancellation constructs.

2019-01-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 8 07:53:42 2019 New Revision: 350634 URL: http://llvm.org/viewvc/llvm-project?rev=350634&view=rev Log: [OPENMP]Fix PR40191: Do not allow orphaned cancellation constructs. Prohibited use of the orphaned cancellation directives. Modified: cfe/trunk/lib/Sema/SemaO

r350734 - Incorrect implicit data-sharing for nested tasks

2019-01-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Jan 9 07:58:05 2019 New Revision: 350734 URL: http://llvm.org/viewvc/llvm-project?rev=350734&view=rev Log: Incorrect implicit data-sharing for nested tasks Summary: There is a minor issue in how the implicit data-sharings for nested tasks are computed. For the followi

r350757 - [OPENMP][DOCS]Release notes/OpenMP support updates, NFC.

2019-01-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Jan 9 12:32:56 2019 New Revision: 350757 URL: http://llvm.org/viewvc/llvm-project?rev=350757&view=rev Log: [OPENMP][DOCS]Release notes/OpenMP support updates, NFC. Modified: cfe/trunk/docs/OpenMPSupport.rst cfe/trunk/docs/ReleaseNotes.rst Modified: cfe/trunk/do

r371548 - Fix for PR43175: compiler crash when trying to emit noncapturable

2019-09-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 10 12:16:56 2019 New Revision: 371548 URL: http://llvm.org/viewvc/llvm-project?rev=371548&view=rev Log: Fix for PR43175: compiler crash when trying to emit noncapturable constant. If the constexpr variable is partially initialized, the initializer can be emitted as t

r371553 - [OPENMP5.0]Allow teams directive outside of the target directives.

2019-09-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 10 13:19:58 2019 New Revision: 371553 URL: http://llvm.org/viewvc/llvm-project?rev=371553&view=rev Log: [OPENMP5.0]Allow teams directive outside of the target directives. According to OpenMP 5.0, teams directives are allowed not only in the target context, but also i

r371627 - [OPENMP]Updated status page, NFC.

2019-09-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Sep 11 07:44:30 2019 New Revision: 371627 URL: http://llvm.org/viewvc/llvm-project?rev=371627&view=rev Log: [OPENMP]Updated status page, NFC. Modified: cfe/trunk/docs/OpenMPSupport.rst Modified: cfe/trunk/docs/OpenMPSupport.rst URL: http://llvm.org/viewvc/llvm-proj

r371892 - [OPENMP5.0]Add basic support for declare variant directive.

2019-09-13 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Sep 13 13:18:17 2019 New Revision: 371892 URL: http://llvm.org/viewvc/llvm-project?rev=371892&view=rev Log: [OPENMP5.0]Add basic support for declare variant directive. Added basic support for declare variant directive and its match clause with user context selector. Add

r372011 - [OPENMP]Fix parsing/sema for function templates with declare simd.

2019-09-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Sep 16 10:06:31 2019 New Revision: 372011 URL: http://llvm.org/viewvc/llvm-project?rev=372011&view=rev Log: [OPENMP]Fix parsing/sema for function templates with declare simd. Need to return original declaration group with FunctionTemplateDecl, not the inner FunctionDecl,

r372040 - [OPENMP]Fix the test, NFC.

2019-09-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Sep 16 15:17:10 2019 New Revision: 372040 URL: http://llvm.org/viewvc/llvm-project?rev=372040&view=rev Log: [OPENMP]Fix the test, NFC. Modified: cfe/trunk/test/OpenMP/parallel_for_codegen.cpp Modified: cfe/trunk/test/OpenMP/parallel_for_codegen.cpp URL: http://llvm

r372055 - [OPENMP] Fix the test, NFC

2019-09-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Sep 16 17:08:50 2019 New Revision: 372055 URL: http://llvm.org/viewvc/llvm-project?rev=372055&view=rev Log: [OPENMP] Fix the test, NFC Modified: cfe/trunk/test/OpenMP/parallel_for_codegen.cpp Modified: cfe/trunk/test/OpenMP/parallel_for_codegen.cpp URL: http://llvm

r372130 - [OPENMP]Try to rework the test to pacify the buildbots, NFC.

2019-09-17 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 17 08:11:52 2019 New Revision: 372130 URL: http://llvm.org/viewvc/llvm-project?rev=372130&view=rev Log: [OPENMP]Try to rework the test to pacify the buildbots, NFC. Modified: cfe/trunk/test/OpenMP/parallel_for_codegen.cpp Modified: cfe/trunk/test/OpenMP/parallel

r372147 - [OPENMP5.0]Introduce attribute for declare variant directive.

2019-09-17 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 17 10:36:49 2019 New Revision: 372147 URL: http://llvm.org/viewvc/llvm-project?rev=372147&view=rev Log: [OPENMP5.0]Introduce attribute for declare variant directive. Added attribute for declare variant directive. It will allow to handle declare variant directive at t

r372148 - [OPENMP] Rework the test, NFC.

2019-09-17 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 17 10:44:27 2019 New Revision: 372148 URL: http://llvm.org/viewvc/llvm-project?rev=372148&view=rev Log: [OPENMP] Rework the test, NFC. Modified: cfe/trunk/test/OpenMP/parallel_for_codegen.cpp Modified: cfe/trunk/test/OpenMP/parallel_for_codegen.cpp URL: http://

r372235 - [OPENMP5.0]Allow multiple context selectors in the context selector

2019-09-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Sep 18 09:24:31 2019 New Revision: 372235 URL: http://llvm.org/viewvc/llvm-project?rev=372235&view=rev Log: [OPENMP5.0]Allow multiple context selectors in the context selector sets. According to OpenMP 5.0, context selector set might include several context selectors, se

r372252 - [OPENMP]Fix for PR43349: Crash for privatized loop bound.

2019-09-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Sep 18 12:24:07 2019 New Revision: 372252 URL: http://llvm.org/viewvc/llvm-project?rev=372252&view=rev Log: [OPENMP]Fix for PR43349: Crash for privatized loop bound. If the variable, used in the loop boundaries, is not captured in the construct, this variable must be con

r372609 - [OPENMP]Call __kmpc_push_tripcount in task context.

2019-09-23 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Sep 23 07:06:51 2019 New Revision: 372609 URL: http://llvm.org/viewvc/llvm-project?rev=372609&view=rev Log: [OPENMP]Call __kmpc_push_tripcount in task context. Runtime function __kmpc_push_tripcount better to call inside of the task context for target regions. Otherwise,

r372623 - [OPENMP]Fix PR43355: DO not emit target calls if only -fopenmp-targets

2019-09-23 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Sep 23 08:53:51 2019 New Revision: 372623 URL: http://llvm.org/viewvc/llvm-project?rev=372623&view=rev Log: [OPENMP]Fix PR43355: DO not emit target calls if only -fopenmp-targets is not provided. We should not emit any target-dependent code if only -fopenmp flag is used

r372635 - [OPENMP]Use standard parsing for 'match' clause, NFC.

2019-09-23 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Sep 23 11:13:31 2019 New Revision: 372635 URL: http://llvm.org/viewvc/llvm-project?rev=372635&view=rev Log: [OPENMP]Use standard parsing for 'match' clause, NFC. Reused standard clauses parsing scheme for parsing/matching 'match' clause in 'declare variant' directive. M

r372917 - [OPENMP50]Parsing/sema support for 'implementation/vendor' context

2019-09-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Sep 25 12:43:37 2019 New Revision: 372917 URL: http://llvm.org/viewvc/llvm-project?rev=372917&view=rev Log: [OPENMP50]Parsing/sema support for 'implementation/vendor' context selector. Added basic parsing/semantic support for 'implementation={vendor()}' context selector.

r373010 - [OPENMP50]Emit warnings if the functions was defined/used before marked

2019-09-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Sep 26 13:04:15 2019 New Revision: 373010 URL: http://llvm.org/viewvc/llvm-project?rev=373010&view=rev Log: [OPENMP50]Emit warnings if the functions was defined/used before marked declare variant. We can use the original function if it was used/emitted already. So, just

r373210 - [OPENMP] Fix comment, NFC.

2019-09-30 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Sep 30 07:05:26 2019 New Revision: 373210 URL: http://llvm.org/viewvc/llvm-project?rev=373210&view=rev Log: [OPENMP] Fix comment, NFC. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp URL: http://llvm.org/viewvc/llvm-project/c

r373243 - [OPENMP50]Do not emit warning for the function with the currently

2019-09-30 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Sep 30 11:24:35 2019 New Revision: 373243 URL: http://llvm.org/viewvc/llvm-project?rev=373243&view=rev Log: [OPENMP50]Do not emit warning for the function with the currently defined body. If the function is currently defined, we should not emit a warning that it might be

r373257 - [OPENMP50]Mark declare variant attribute as inheritable.

2019-09-30 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Sep 30 13:39:29 2019 New Revision: 373257 URL: http://llvm.org/viewvc/llvm-project?rev=373257&view=rev Log: [OPENMP50]Mark declare variant attribute as inheritable. Attribute must be inherited by the redeclarations. Modified: cfe/trunk/include/clang/Basic/Attr.td

r373348 - [OPENMP]Fix PR43516: Compiler crash with collapse(2) on non-rectangular

2019-10-01 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 1 09:19:10 2019 New Revision: 373348 URL: http://llvm.org/viewvc/llvm-project?rev=373348&view=rev Log: [OPENMP]Fix PR43516: Compiler crash with collapse(2) on non-rectangular loop. Missed check if the condition is also dependent when building final expressions for t

r373374 - [OPENMP]Fix PR43330: OpenMP target: Mapping of partial arrays fails.

2019-10-01 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 1 11:18:03 2019 New Revision: 373374 URL: http://llvm.org/viewvc/llvm-project?rev=373374&view=rev Log: [OPENMP]Fix PR43330: OpenMP target: Mapping of partial arrays fails. Fixed calculation the size of the array sections. Modified: cfe/trunk/lib/CodeGen/CGOpenM

r373387 - [OPENMP50]Initial codegen for declare variant implementation vendor.

2019-10-01 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 1 13:18:32 2019 New Revision: 373387 URL: http://llvm.org/viewvc/llvm-project?rev=373387&view=rev Log: [OPENMP50]Initial codegen for declare variant implementation vendor. Initial implementation of global aliases emission for the declare variant pragma with implemen

r373502 - [OPENMP50]Add parsing/sema analysis for declare variant score.

2019-10-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Oct 2 11:19:02 2019 New Revision: 373502 URL: http://llvm.org/viewvc/llvm-project?rev=373502&view=rev Log: [OPENMP50]Add parsing/sema analysis for declare variant score. Context selectors may include optional score clause in format `score():`, where `` must be a constan

r373620 - [OPENMP]Improve diagnostics for not found declare target entries.

2019-10-03 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 3 09:20:34 2019 New Revision: 373620 URL: http://llvm.org/viewvc/llvm-project?rev=373620&view=rev Log: [OPENMP]Improve diagnostics for not found declare target entries. We can point to the target region + emit parent functions names/real var names if they were not f

r373624 - [OPENMP]Fix emission of the declare target variables in device mode.

2019-10-03 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 3 09:46:49 2019 New Revision: 373624 URL: http://llvm.org/viewvc/llvm-project?rev=373624&view=rev Log: [OPENMP]Fix emission of the declare target variables in device mode. Declare target variables must be emitted in device mode, target triples can be empty in this c

r373661 - [OPENMP50]Codegen support for scores in context selectors.

2019-10-03 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 3 13:49:48 2019 New Revision: 373661 URL: http://llvm.org/viewvc/llvm-project?rev=373661&view=rev Log: [OPENMP50]Codegen support for scores in context selectors. If the context selector has associated score and several contexts selectors matches current context, the

Re: r373661 - [OPENMP50]Codegen support for scores in context selectors.

2019-10-03 Thread Alexey Bataev via cfe-commits
Alexey Bataev via cfe-commits mailto:cfe-commits@lists.llvm.org>> wrote: Author: abataev Date: Thu Oct 3 13:49:48 2019 New Revision: 373661 URL: http://llvm.org/viewvc/llvm-project?rev=373661&view=rev Log: [OPENMP50]Codegen support for scores in context selectors. If the context se

Re: r373661 - [OPENMP50]Codegen support for scores in context selectors.

2019-10-03 Thread Alexey Bataev via cfe-commits
Alexey Bataev via cfe-commits mailto:cfe-commits@lists.llvm.org>> wrote: Author: abataev Date: Thu Oct 3 13:49:48 2019 New Revision: 373661 URL: http://llvm.org/viewvc/llvm-project?rev=373661&view=rev Log: [OPENMP50]Codegen support for scores in context selectors. If the context se

r373672 - [OPENMP]Fix the test on Windows, NFC.

2019-10-03 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 3 15:10:33 2019 New Revision: 373672 URL: http://llvm.org/viewvc/llvm-project?rev=373672&view=rev Log: [OPENMP]Fix the test on Windows, NFC. Modified: cfe/trunk/test/OpenMP/declare_variant_implementation_vendor_codegen.cpp Modified: cfe/trunk/test/OpenMP/decla

Re: r373661 - [OPENMP50]Codegen support for scores in context selectors.

2019-10-03 Thread Alexey Bataev via cfe-commits
Bataev via cfe-commits mailto:cfe-commits@lists.llvm.org>> wrote: Author: abataev Date: Thu Oct 3 13:49:48 2019 New Revision: 373661 URL: http://llvm.org/viewvc/llvm-project?rev=373661&view=rev Log: [OPENMP50]Codegen support for scores in context selectors. If the context selector has

r330042 - [OPENMP] Replace push_back by emplace_back, NFC.

2018-04-13 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Apr 13 10:48:43 2018 New Revision: 330042 URL: http://llvm.org/viewvc/llvm-project?rev=330042&view=rev Log: [OPENMP] Replace push_back by emplace_back, NFC. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp cfe/trunk/l

r330154 - [OPENMP] General code improvements.

2018-04-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Apr 16 13:16:21 2018 New Revision: 330154 URL: http://llvm.org/viewvc/llvm-project?rev=330154&view=rev Log: [OPENMP] General code improvements. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.h cfe/trunk/tes

r330156 - [OPENMP] Allow to use declare target variables in map clauses

2018-04-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Apr 16 13:34:41 2018 New Revision: 330156 URL: http://llvm.org/viewvc/llvm-project?rev=330156&view=rev Log: [OPENMP] Allow to use declare target variables in map clauses Global variables marked as declare target are allowed to be used in map clauses. Patch fixes the cras

r330272 - [NVPTX] Emit debug info in DWARF-2 by default for Cuda devices.

2018-04-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Apr 18 09:31:09 2018 New Revision: 330272 URL: http://llvm.org/viewvc/llvm-project?rev=330272&view=rev Log: [NVPTX] Emit debug info in DWARF-2 by default for Cuda devices. Summary: NVPTX target supports debug info in DWARF-2 format. Patch adds emission of debug info in D

r330620 - [OPENMP] Do not cast captured by value variables with pointer types in

2018-04-23 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Apr 23 10:33:41 2018 New Revision: 330620 URL: http://llvm.org/viewvc/llvm-project?rev=330620&view=rev Log: [OPENMP] Do not cast captured by value variables with pointer types in NVPTX target. When generating the wrapper function for the offloading region, we need to cal

r330634 - [OPENMP] Formatting and code improvement, NFC.

2018-04-23 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Apr 23 12:53:05 2018 New Revision: 330634 URL: http://llvm.org/viewvc/llvm-project?rev=330634&view=rev Log: [OPENMP] Formatting and code improvement, NFC. Modified: cfe/trunk/lib/Parse/ParseOpenMP.cpp Modified: cfe/trunk/lib/Parse/ParseOpenMP.cpp URL: http://llvm.o

r331195 - [OPENMP] Do not crash on incorrect input data.

2018-04-30 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Apr 30 09:26:57 2018 New Revision: 331195 URL: http://llvm.org/viewvc/llvm-project?rev=331195&view=rev Log: [OPENMP] Do not crash on incorrect input data. Emit error messages instead of compiler crashing when the target region does not exist in the device code + fix cras

r331206 - [OPENMP] Do not crash on codegen for CXX member functions.

2018-04-30 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Apr 30 11:09:40 2018 New Revision: 331206 URL: http://llvm.org/viewvc/llvm-project?rev=331206&view=rev Log: [OPENMP] Do not crash on codegen for CXX member functions. Non-static member functions should not be emitted as a standalone functions, this leads to compiler cras

r331211 - [OPENMP] Do not emit warning about non-declared target function params.

2018-04-30 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Apr 30 11:28:08 2018 New Revision: 331211 URL: http://llvm.org/viewvc/llvm-project?rev=331211&view=rev Log: [OPENMP] Do not emit warning about non-declared target function params. We should not emit warning that the parameters are not marked as declare target, these decl

r331261 - [OPENMP] Emit template instatiation|specialization functions for

2018-05-01 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue May 1 07:09:46 2018 New Revision: 331261 URL: http://llvm.org/viewvc/llvm-project?rev=331261&view=rev Log: [OPENMP] Emit template instatiation|specialization functions for devices. If the function is an instantiation|specialization of the template and is used in the dev

r331358 - [OPENMP] Emit names of the globals depending on target.

2018-05-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed May 2 07:20:50 2018 New Revision: 331358 URL: http://llvm.org/viewvc/llvm-project?rev=331358&view=rev Log: [OPENMP] Emit names of the globals depending on target. Some symbols are not allowed to be used as names on some targets. Patch ries to unify the emission of the n

r331365 - [OPENMP] Support C++ member functions in the device constructs.

2018-05-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed May 2 08:45:28 2018 New Revision: 331365 URL: http://llvm.org/viewvc/llvm-project?rev=331365&view=rev Log: [OPENMP] Support C++ member functions in the device constructs. Added correct emission of the C++ member functions for the device function when they are used in th

r331372 - [OPENMP] Enable c++ exceptions outside of the target constructs iff they are

2018-05-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed May 2 09:52:07 2018 New Revision: 331372 URL: http://llvm.org/viewvc/llvm-project?rev=331372&view=rev Log: [OPENMP] Enable c++ exceptions outside of the target constructs iff they are enabled for the host. If the compilation for the host enables C++ exceptions, but they

r331377 - [OPENMP] Do not emit warning for implicitly declared target functions.

2018-05-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed May 2 10:39:00 2018 New Revision: 331377 URL: http://llvm.org/viewvc/llvm-project?rev=331377&view=rev Log: [OPENMP] Do not emit warning for implicitly declared target functions. Since upcoming OpenMP 5.0 functions can be mapped implicitly as declare target and we should

r331385 - [OPENMP] Analyze the type of the mapped entity instead of its base.

2018-05-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed May 2 11:44:10 2018 New Revision: 331385 URL: http://llvm.org/viewvc/llvm-project?rev=331385&view=rev Log: [OPENMP] Analyze the type of the mapped entity instead of its base. If the mapped entity is a data member, we erroneously checked the type of its base rather than

r331393 - [OPENMP] Add support for reductions on simd directives in target

2018-05-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed May 2 13:03:27 2018 New Revision: 331393 URL: http://llvm.org/viewvc/llvm-project?rev=331393&view=rev Log: [OPENMP] Add support for reductions on simd directives in target regions. Added codegen for `simd reduction()` constructs in target directives. Modified: cfe/

r331642 - [OPENMP, NVPTX] Added support for L2 parallelism.

2018-05-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon May 7 07:50:05 2018 New Revision: 331642 URL: http://llvm.org/viewvc/llvm-project?rev=331642&view=rev Log: [OPENMP, NVPTX] Added support for L2 parallelism. Added initial codegen for level 2, 3 etc. parallelism. Currently, all the second, the third etc. parallel regions

r331652 - [OPENMP, NVPTX] Codegen for critical construct.

2018-05-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon May 7 10:23:05 2018 New Revision: 331652 URL: http://llvm.org/viewvc/llvm-project?rev=331652&view=rev Log: [OPENMP, NVPTX] Codegen for critical construct. Added correct codegen for the critical construct on NVPTX devices. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRun

r331654 - [OPENMP, NVPTX] Small test fix, NFC.

2018-05-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon May 7 10:38:13 2018 New Revision: 331654 URL: http://llvm.org/viewvc/llvm-project?rev=331654&view=rev Log: [OPENMP, NVPTX] Small test fix, NFC. Modified: cfe/trunk/test/OpenMP/nvptx_parallel_codegen.cpp Modified: cfe/trunk/test/OpenMP/nvptx_parallel_codegen.cpp URL

r331768 - [OPENMP, NVPTX] Fix linkage of the global entries.

2018-05-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue May 8 07:16:57 2018 New Revision: 331768 URL: http://llvm.org/viewvc/llvm-project?rev=331768&view=rev Log: [OPENMP, NVPTX] Fix linkage of the global entries. The linkage of the global entries must be weak to enable support of redefinition of the same target regions in m

r335483 - [OPENMP] Do not consider address constant vars as possibly

2018-06-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jun 25 08:32:05 2018 New Revision: 335483 URL: http://llvm.org/viewvc/llvm-project?rev=335483&view=rev Log: [OPENMP] Do not consider address constant vars as possibly threadprivate. Do not delay emission of the address constant variables in OpenMP mode as they cannot be

r335632 - [OPENMP, NVPTX] Reduce the number of the globalized variables.

2018-06-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jun 26 10:24:03 2018 New Revision: 335632 URL: http://llvm.org/viewvc/llvm-project?rev=335632&view=rev Log: [OPENMP, NVPTX] Reduce the number of the globalized variables. Patch tries to make better analysis of the variables that should be globalized. From now, instead of

r336460 - [OPENMP] Make clauses closing loc point to right bracket.

2018-07-06 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jul 6 12:35:42 2018 New Revision: 336460 URL: http://llvm.org/viewvc/llvm-project?rev=336460&view=rev Log: [OPENMP] Make clauses closing loc point to right bracket. For some of the clauses the closing location erroneously points to the beginning of the next clause rathe

r336467 - [OPENMP] Fix PR38026: Link -latomic when -fopenmp is used.

2018-07-06 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jul 6 14:13:41 2018 New Revision: 336467 URL: http://llvm.org/viewvc/llvm-project?rev=336467&view=rev Log: [OPENMP] Fix PR38026: Link -latomic when -fopenmp is used. On Linux atomic constructs in OpenMP require libatomic library. Patch links libatomic when -fopenmp is u

r336567 - [OPENMP, NVPTX] Do not globalize local variables in parallel regions.

2018-07-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jul 9 10:43:58 2018 New Revision: 336567 URL: http://llvm.org/viewvc/llvm-project?rev=336567&view=rev Log: [OPENMP, NVPTX] Do not globalize local variables in parallel regions. In generic data-sharing mode we are allowed to not globalize local variables that escape thei

r336592 - [OPENMP] Do not mark local variables as declare target.

2018-07-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jul 9 12:58:08 2018 New Revision: 336592 URL: http://llvm.org/viewvc/llvm-project?rev=336592&view=rev Log: [OPENMP] Do not mark local variables as declare target. When the parsing of the functions happens inside of the declare target region, we may erroneously mark loca

r337191 - [OPENMP, NVPTX] Globalize only captured variables.

2018-07-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jul 16 09:49:20 2018 New Revision: 337191 URL: http://llvm.org/viewvc/llvm-project?rev=337191&view=rev Log: [OPENMP, NVPTX] Globalize only captured variables. Sometimes we can try to globalize non-variable declarations, which may lead to compiler crash. Modified: cf

r337196 - [OPENMP] Fix syntactic errors in error messages.

2018-07-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jul 16 11:12:18 2018 New Revision: 337196 URL: http://llvm.org/viewvc/llvm-project?rev=337196&view=rev Log: [OPENMP] Fix syntactic errors in error messages. Fixed spelling of the offloading error messages. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp cfe/

r337207 - [OPENMP] Fix checks for declare target link entries.

2018-07-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jul 16 13:05:25 2018 New Revision: 337207 URL: http://llvm.org/viewvc/llvm-project?rev=337207&view=rev Log: [OPENMP] Fix checks for declare target link entries. If the declare target link entries are created but not used, the compiler will produce an error message. Patch

r373756 - [OPENMP50]Suppport for multiple vendors in the same vendor context

2019-10-04 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Oct 4 08:58:45 2019 New Revision: 373756 URL: http://llvm.org/viewvc/llvm-project?rev=373756&view=rev Log: [OPENMP50]Suppport for multiple vendors in the same vendor context selector. According to OpenMP 5.0, multiple vendors could be specified in the vendor context sel

r373939 - [OPENMP50]Treat range-based for as canonical loop.

2019-10-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 7 11:54:57 2019 New Revision: 373939 URL: http://llvm.org/viewvc/llvm-project?rev=373939&view=rev Log: [OPENMP50]Treat range-based for as canonical loop. According to OpenMP 5.0, range-based for is also considered as a canonical form of loops. Modified: cfe/tru

r373952 - [OPENMP]Fix caonical->canonical, NFC.

2019-10-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 7 12:57:40 2019 New Revision: 373952 URL: http://llvm.org/viewvc/llvm-project?rev=373952&view=rev Log: [OPENMP]Fix caonical->canonical, NFC. Fixed typo. Modified: cfe/trunk/include/clang/AST/StmtOpenMP.h cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp Modified: cfe

r374057 - [OPENMP50]Allow functions in declare variant directive to have different

2019-10-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 8 07:56:20 2019 New Revision: 374057 URL: http://llvm.org/viewvc/llvm-project?rev=374057&view=rev Log: [OPENMP50]Allow functions in declare variant directive to have different C linkage. After some discussion with OpenMP developers, it was decided that the functions

r374072 - [OPENMP50]Prohibit multiple context selector sets in context selectors.

2019-10-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 8 08:56:43 2019 New Revision: 374072 URL: http://llvm.org/viewvc/llvm-project?rev=374072&view=rev Log: [OPENMP50]Prohibit multiple context selector sets in context selectors. According to OpenMP 5.0, 2.3.2 Context Selectors, Restrictions, each trait-set-selector-nam

r374093 - [OPENMP50]Do not allow multiple same context traits in the same context

2019-10-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 8 10:47:52 2019 New Revision: 374093 URL: http://llvm.org/viewvc/llvm-project?rev=374093&view=rev Log: [OPENMP50]Do not allow multiple same context traits in the same context selector. According to OpenMP 5.0, 2.3.2 Context Selectors, Restrictions, each trait-select

r374107 - [OPENMP50]Multiple vendors in vendor context must be treated as logical

2019-10-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 8 12:44:16 2019 New Revision: 374107 URL: http://llvm.org/viewvc/llvm-project?rev=374107&view=rev Log: [OPENMP50]Multiple vendors in vendor context must be treated as logical and of vendors, not or. If several vendors are provided in the same vendor context trait, t

r374224 - [OPENMP50]Fix scoring of contexts with and without user provided scores.

2019-10-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Oct 9 13:54:06 2019 New Revision: 374224 URL: http://llvm.org/viewvc/llvm-project?rev=374224&view=rev Log: [OPENMP50]Fix scoring of contexts with and without user provided scores. The context selector with user provided score must have higher score than the context sele

r374363 - [OPENMP50]Register vendor name only once in vendor context selector.

2019-10-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 10 08:15:26 2019 New Revision: 374363 URL: http://llvm.org/viewvc/llvm-project?rev=374363&view=rev Log: [OPENMP50]Register vendor name only once in vendor context selector. No need to store multiple copies of the same vendor names in the context selector, keep only s

r374387 - [OPENMP50]Support for declare variant directive for NVPTX target.

2019-10-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 10 10:28:10 2019 New Revision: 374387 URL: http://llvm.org/viewvc/llvm-project?rev=374387&view=rev Log: [OPENMP50]Support for declare variant directive for NVPTX target. NVPTX does not support global aliases. Instead, we have to copy the full body of the variant func

r374438 - [OPENMP]Update doc for supported constructs, NFC.

2019-10-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 10 13:15:54 2019 New Revision: 374438 URL: http://llvm.org/viewvc/llvm-project?rev=374438&view=rev Log: [OPENMP]Update doc for supported constructs, NFC. Modified: cfe/trunk/docs/OpenMPSupport.rst Modified: cfe/trunk/docs/OpenMPSupport.rst URL: http://llvm.org/

r374787 - [OPENMP]Fix codegen for private variably length vars in combined

2019-10-14 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 14 09:44:01 2019 New Revision: 374787 URL: http://llvm.org/viewvc/llvm-project?rev=374787&view=rev Log: [OPENMP]Fix codegen for private variably length vars in combined constructs. If OpenMP construct includes several capturing regions and the variable is declared as

r374810 - [OPNEMP]Allow grainsize clause in combined task-based directives.

2019-10-14 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 14 12:29:52 2019 New Revision: 374810 URL: http://llvm.org/viewvc/llvm-project?rev=374810&view=rev Log: [OPNEMP]Allow grainsize clause in combined task-based directives. The expression of the grainsize clause must be captured in the combined task-based directives, li

r374819 - [OPNEMP]Allow num_tasks clause in combined task-based directives.

2019-10-14 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 14 13:44:34 2019 New Revision: 374819 URL: http://llvm.org/viewvc/llvm-project?rev=374819&view=rev Log: [OPNEMP]Allow num_tasks clause in combined task-based directives. The expression of the num_tasks clause must be captured in the combined task-based directives, li

r374942 - [OPENMP]Allow final clause in combined task-based directives.

2019-10-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 15 12:37:05 2019 New Revision: 374942 URL: http://llvm.org/viewvc/llvm-project?rev=374942&view=rev Log: [OPENMP]Allow final clause in combined task-based directives. The condition of the final clause must be captured in the combined task-based directives, like 'parall

r374943 - [OPENMP]Fix comments/params, NFC.

2019-10-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 15 12:51:30 2019 New Revision: 374943 URL: http://llvm.org/viewvc/llvm-project?rev=374943&view=rev Log: [OPENMP]Fix comments/params, NFC. Modified: cfe/trunk/include/clang/AST/OpenMPClause.h Modified: cfe/trunk/include/clang/AST/OpenMPClause.h URL: http://llvm.

r375017 - [OPENMP]Use different addresses for zeroed thread_id/bound_id.

2019-10-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Oct 16 09:59:01 2019 New Revision: 375017 URL: http://llvm.org/viewvc/llvm-project?rev=375017&view=rev Log: [OPENMP]Use different addresses for zeroed thread_id/bound_id. When the parallel region is called directly in the sequential region, the zeroed tid/bound id are us

r375026 - [OPENMP]Allow priority clause in combined task-based directives.

2019-10-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Oct 16 11:09:37 2019 New Revision: 375026 URL: http://llvm.org/viewvc/llvm-project?rev=375026&view=rev Log: [OPENMP]Allow priority clause in combined task-based directives. The expression of the priority clause must be captured in the combined task-based directives, like

r375119 - [OPENMP]Fix thread id passed to outlined region in sequential parallel

2019-10-17 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 17 07:36:43 2019 New Revision: 375119 URL: http://llvm.org/viewvc/llvm-project?rev=375119&view=rev Log: [OPENMP]Fix thread id passed to outlined region in sequential parallel regions. The real global thread id must be passed to the outlined region instead of the zero

r375134 - [OPENMP]Improve use of the global tid parameter.

2019-10-17 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 17 10:12:03 2019 New Revision: 375134 URL: http://llvm.org/viewvc/llvm-project?rev=375134&view=rev Log: [OPENMP]Improve use of the global tid parameter. If we can determined, that the global tid parameter can be used in the function, better to use it rather than call

r375167 - [OPENMP]Dow not emit warnings for uninitialized loop counters.

2019-10-17 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 17 13:35:08 2019 New Revision: 375167 URL: http://llvm.org/viewvc/llvm-project?rev=375167&view=rev Log: [OPENMP]Dow not emit warnings for uninitialized loop counters. In OpenMP constructs all counters are initialized and we should not emit warnings about uninitialize

r375257 - [DOCS]Update list of implemented constructs, NFC.

2019-10-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Oct 18 09:53:54 2019 New Revision: 375257 URL: http://llvm.org/viewvc/llvm-project?rev=375257&view=rev Log: [DOCS]Update list of implemented constructs, NFC. Modified: cfe/trunk/docs/OpenMPSupport.rst Modified: cfe/trunk/docs/OpenMPSupport.rst URL: http://llvm.org/

[clang] 7c86069 - [OPENMP]Fix PR43771: Do not capture contexprs variables.

2019-10-28 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2019-10-28T13:29:02-04:00 New Revision: 7c860698208aee32df1883601b94924fa4a3d531 URL: https://github.com/llvm/llvm-project/commit/7c860698208aee32df1883601b94924fa4a3d531 DIFF: https://github.com/llvm/llvm-project/commit/7c860698208aee32df1883601b94924fa4a3d531.diff

[clang] c09c065 - [OPENMP]Fix PR43772: No warning in non-combined target regions.

2019-10-29 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2019-10-29T10:31:24-04:00 New Revision: c09c0651a43b75044dc99e7c69acbcfaffd08aa2 URL: https://github.com/llvm/llvm-project/commit/c09c0651a43b75044dc99e7c69acbcfaffd08aa2 DIFF: https://github.com/llvm/llvm-project/commit/c09c0651a43b75044dc99e7c69acbcfaffd08aa2.diff

[clang] c8a869c - [OPENMP][DOCS]Update status of implemented features, NFC.

2020-05-20 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2020-05-20T10:54:53-04:00 New Revision: c8a869c5e025dcee3bd7393b14a0d55c1ee326e5 URL: https://github.com/llvm/llvm-project/commit/c8a869c5e025dcee3bd7393b14a0d55c1ee326e5 DIFF: https://github.com/llvm/llvm-project/commit/c8a869c5e025dcee3bd7393b14a0d55c1ee326e5.diff

[clang] 414afdf - [OPENMP]Fix PR45911: Data sharing and lambda capture.

2020-05-20 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2020-05-20T15:01:02-04:00 New Revision: 414afdf940e8473db4156d0c1bc500ec527f1a1f URL: https://github.com/llvm/llvm-project/commit/414afdf940e8473db4156d0c1bc500ec527f1a1f DIFF: https://github.com/llvm/llvm-project/commit/414afdf940e8473db4156d0c1bc500ec527f1a1f.diff

[clang] a888fc6 - [OPENMP50]Initial support for use_device_addr clause.

2020-05-27 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2020-05-27T11:35:31-04:00 New Revision: a888fc6b3412574f5869a8680acf4ed2bed1d2a2 URL: https://github.com/llvm/llvm-project/commit/a888fc6b3412574f5869a8680acf4ed2bed1d2a2 DIFF: https://github.com/llvm/llvm-project/commit/a888fc6b3412574f5869a8680acf4ed2bed1d2a2.diff

[clang] 89d9dba - [OPENMP50]Initial codegen for 'affinity' clauses.

2020-06-02 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2020-06-02T10:50:08-04:00 New Revision: 89d9dba2c6885949887edf4b80e1aabf8d8f3f88 URL: https://github.com/llvm/llvm-project/commit/89d9dba2c6885949887edf4b80e1aabf8d8f3f88 DIFF: https://github.com/llvm/llvm-project/commit/89d9dba2c6885949887edf4b80e1aabf8d8f3f88.diff

[clang] 2f7269b - Fix compiler crash when an expression parsed in the tentative parsing and must be claimed in the another evaluation context.

2020-06-02 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2020-06-02T14:27:33-04:00 New Revision: 2f7269b6773de2750f9cd1417ef5f21cd6cf7a91 URL: https://github.com/llvm/llvm-project/commit/2f7269b6773de2750f9cd1417ef5f21cd6cf7a91 DIFF: https://github.com/llvm/llvm-project/commit/2f7269b6773de2750f9cd1417ef5f21cd6cf7a91.diff

[clang] 59e0987 - [OPENMP]Fix PR46170: partial mapping for array sections of data members.

2020-06-03 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2020-06-03T09:10:20-04:00 New Revision: 59e0987a068ca3842dd2b4ddf2edf001fb1de1b5 URL: https://github.com/llvm/llvm-project/commit/59e0987a068ca3842dd2b4ddf2edf001fb1de1b5 DIFF: https://github.com/llvm/llvm-project/commit/59e0987a068ca3842dd2b4ddf2edf001fb1de1b5.diff

[clang] 2875df0 - [OPENMP50]Perform data mapping analysis only for explicitly mapped data.

2020-07-20 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2020-07-20T13:01:15-04:00 New Revision: 2875df0d56572168b478f80f59106284ef15d87d URL: https://github.com/llvm/llvm-project/commit/2875df0d56572168b478f80f59106284ef15d87d DIFF: https://github.com/llvm/llvm-project/commit/2875df0d56572168b478f80f59106284ef15d87d.diff

[Differential] D83398: [OPENMP50]Perform data mapping analysis only for explicitly mapped data.

2020-07-20 Thread Alexey Bataev via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG2875df0d5657: [OPENMP50]Perform data mapping analysis only for explicitly mapped data. (authored by ABataev). Repository: rG LLVM Github Monorepo

[clang] 13bfe4b - [OPENMP]Fix PR46012: declare target pointer cannot be accessed in target region.

2020-07-21 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2020-07-21T15:48:32-04:00 New Revision: 13bfe4b226d2f158c46b9e351f4f0c224b899b96 URL: https://github.com/llvm/llvm-project/commit/13bfe4b226d2f158c46b9e351f4f0c224b899b96 DIFF: https://github.com/llvm/llvm-project/commit/13bfe4b226d2f158c46b9e351f4f0c224b899b96.diff

[clang] 9840208 - [OPENMP] Fix PR46730: Fix compiler crash on taskloop over constructible loop counters.

2020-07-24 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2020-07-24T10:48:20-04:00 New Revision: 9840208db6980f690d09b209e6ad6d57133ec5e5 URL: https://github.com/llvm/llvm-project/commit/9840208db6980f690d09b209e6ad6d57133ec5e5 DIFF: https://github.com/llvm/llvm-project/commit/9840208db6980f690d09b209e6ad6d57133ec5e5.diff

[clang] 142d0d3 - [OPENMP]Fix PR46824: Global declare target pointer cannot be accessed in target region.

2020-07-30 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2020-07-30T09:40:05-04:00 New Revision: 142d0d3ed8e07aca2476bc4ecc1a12d15577a84a URL: https://github.com/llvm/llvm-project/commit/142d0d3ed8e07aca2476bc4ecc1a12d15577a84a DIFF: https://github.com/llvm/llvm-project/commit/142d0d3ed8e07aca2476bc4ecc1a12d15577a84a.diff

[clang] b69357c - Revert "[OPENMP]Fix PR46824: Global declare target pointer cannot be accessed in target region."

2020-07-30 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2020-07-30T10:57:56-04:00 New Revision: b69357c2f4f2aa0c4999d6827a40fe748641fdb1 URL: https://github.com/llvm/llvm-project/commit/b69357c2f4f2aa0c4999d6827a40fe748641fdb1 DIFF: https://github.com/llvm/llvm-project/commit/b69357c2f4f2aa0c4999d6827a40fe748641fdb1.diff

[clang] 622e461 - [OPENMP]Fix PR46824: Global declare target pointer cannot be accessed in target region.

2020-07-30 Thread Alexey Bataev via cfe-commits
Author: Alexey Bataev Date: 2020-07-30T11:18:33-04:00 New Revision: 622e46156d9a91206c877a604d069bb3e2dbf294 URL: https://github.com/llvm/llvm-project/commit/622e46156d9a91206c877a604d069bb3e2dbf294 DIFF: https://github.com/llvm/llvm-project/commit/622e46156d9a91206c877a604d069bb3e2dbf294.diff

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