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=rev Log: [OPENMP50]Codegen support for scores in context selectors. If the context selector has associated

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=rev Log: [OPENMP]Fix the test on Windows, NFC. Modified: cfe/trunk/test/OpenMP/declare_variant_implementation_vendor_codegen.cpp Modified:

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=rev Log: [OPENMP50]Codegen support for scores in context selectors. If the context selector has asso

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=rev Log: [OPENMP50]Codegen support for scores in context selectors. If the context selector has asso

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=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

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=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 case.

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=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 found

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=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 constant

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=rev Log: [OPENMP50]Initial codegen for declare variant implementation vendor. Initial implementation of global aliases emission for the declare variant pragma with

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=rev Log: [OPENMP]Fix PR43330: OpenMP target: Mapping of partial arrays fails. Fixed calculation the size of the array sections. Modified:

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=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 the

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=rev Log: [OPENMP50]Mark declare variant attribute as inheritable. Attribute must be inherited by the redeclarations. Modified: cfe/trunk/include/clang/Basic/Attr.td

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=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

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=rev Log: [OPENMP] Fix comment, NFC. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp URL:

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=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 use

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=rev Log: [OPENMP50]Parsing/sema support for 'implementation/vendor' context selector. Added basic parsing/semantic support for 'implementation={vendor()}' context selector.

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=rev Log: [OPENMP]Use standard parsing for 'match' clause, NFC. Reused standard clauses parsing scheme for parsing/matching 'match' clause in 'declare variant' directive.

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=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 and

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=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, the

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=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

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=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,

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=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:

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=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 the

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=rev Log: [OPENMP]Try to rework the test to pacify the buildbots, NFC. Modified: cfe/trunk/test/OpenMP/parallel_for_codegen.cpp Modified:

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=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:

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=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:

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=rev Log: [OPENMP]Fix parsing/sema for function templates with declare simd. Need to return original declaration group with FunctionTemplateDecl, not the inner FunctionDecl, to

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=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. Added:

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=rev Log: [OPENMP]Updated status page, NFC. Modified: cfe/trunk/docs/OpenMPSupport.rst Modified: cfe/trunk/docs/OpenMPSupport.rst URL:

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=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 in

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=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 the

r370214 - [OPENMP][Analysis] Add analysis of the map clauses.

2019-08-28 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Aug 28 07:55:08 2019 New Revision: 370214 URL: http://llvm.org/viewvc/llvm-project?rev=370214=rev Log: [OPENMP][Analysis] Add analysis of the map clauses. Summary: Added basic analysis of map clauses. Only map clauses with to and tofrom map type must be analyzed since

r369946 - [OPENMP][NVPTX]Fix critical region codegen.

2019-08-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Aug 26 12:07:48 2019 New Revision: 369946 URL: http://llvm.org/viewvc/llvm-project?rev=369946=rev Log: [OPENMP][NVPTX]Fix critical region codegen. Summary: Previously critical regions were emitted with the barrier making it a worksharing construct though it is not.

r369801 - [OPENMP5]Use nonmonotonic modifier by default for non-static and

2019-08-23 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 23 12:52:05 2019 New Revision: 369801 URL: http://llvm.org/viewvc/llvm-project?rev=369801=rev Log: [OPENMP5]Use nonmonotonic modifier by default for non-static and non-ordered loops. According to OpenMP 5.0, 2.9.2 Worksharing-Loop Construct, Desription, If the

r369775 - [OPENMP5.0]Add support for device_type clause in declare target

2019-08-23 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 23 09:11:14 2019 New Revision: 369775 URL: http://llvm.org/viewvc/llvm-project?rev=369775=rev Log: [OPENMP5.0]Add support for device_type clause in declare target construct. OpenMP 5.0 introduced new clause for declare target directive, device_type clause, which

r369668 - [OPENMP]Generalization of handling of declare target attribute.

2019-08-22 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Aug 22 09:48:26 2019 New Revision: 369668 URL: http://llvm.org/viewvc/llvm-project?rev=369668=rev Log: [OPENMP]Generalization of handling of declare target attribute. Used OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration instead of direct checking of the

r369432 - [OPENMP]Fix delayed diagnostics for standalone declare target directive.

2019-08-20 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Aug 20 12:50:13 2019 New Revision: 369432 URL: http://llvm.org/viewvc/llvm-project?rev=369432=rev Log: [OPENMP]Fix delayed diagnostics for standalone declare target directive. If the function is marked as declare target in a standalone directive, the delayed diagnostics

r369418 - Fix name of the error message, NFC.

2019-08-20 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Aug 20 10:50:13 2019 New Revision: 369418 URL: http://llvm.org/viewvc/llvm-project?rev=369418=rev Log: Fix name of the error message, NFC. Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td cfe/trunk/lib/Sema/SemaOpenMP.cpp Modified:

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=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 declare

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=rev Log: Mark the test as unsupported on darwin, NFC. The bundler may fail on darwin, mark the test as not compatible. Modified:

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

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=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:

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=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 the

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=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

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=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-rectangular

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

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

2019-08-13 Thread Alexey Bataev via cfe-commits
tioned 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=rev Log: Don't use std::errc Summa

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=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 ==

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=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

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=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:

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=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, where

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=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

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=rev Log: [OPENMP][MSVC]Enable /openmp[:experimental] to compile OpenMP. Mapped /openmp[:experimental] to -fopenmp option and /openmp- option to -fno-openmp Modified:

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=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

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=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

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=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

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=rev Log: [OPENMP][NVPTX]Mark barrier functions calls as convergent. Added convergent attribute to the barrier functions calls for correct optimizations. Modified:

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=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

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=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

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=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

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=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 the

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=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 variable

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=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

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=rev Log: [OPENMP]Remove not used check line from the test, NFC. Modified: cfe/trunk/test/OpenMP/sections_lastprivate_codegen.cpp Modified:

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=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 handling

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=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.

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=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 leads

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=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 variables

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=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

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=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

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=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 explicitly

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=rev Log: [OPENMP]Generate correctly implicit flags for mapped data. Implicit flag must not be emitted for explicitly specified firstprivate variables, but for implicitly

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=rev Log: [OPENMP]Relax the test checks to pacify 32bit buildbots, NFC. Modified: cfe/trunk/test/OpenMP/parallel_codegen.cpp Modified:

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

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=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 with

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=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

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=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 for

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=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

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=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 linked

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=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

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=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 all

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=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 marks

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=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 directive

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=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 globals

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=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 directive

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=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

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=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 instantiation

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=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 is

r359200 - [OPENMP] Improved check for the linear dependency in the non-rectangular

2019-04-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Apr 25 09:21:13 2019 New Revision: 359200 URL: http://llvm.org/viewvc/llvm-project?rev=359200=rev Log: [OPENMP] Improved check for the linear dependency in the non-rectangular loop nests. Added a checks that the initializer/condition expressions depend only only of the

r359193 - [OPENMP][AARCH64]Fix the test for declare simd, NFC.

2019-04-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Apr 25 07:04:37 2019 New Revision: 359193 URL: http://llvm.org/viewvc/llvm-project?rev=359193=rev Log: [OPENMP][AARCH64]Fix the test for declare simd, NFC. Renamed function a01 in the test to fix possible problems with the git hash match during testing. Modified:

Re: r358490 - [AArch64] Implement Vector Funtion ABI name mangling.

2019-04-25 Thread Alexey Bataev via cfe-commits
64a01de5ac24f6c17cddb391ec3e02c)"} ^~~ I reckon this will fail about 1 in 100 times when built from a git repository. Please could you improve the test to avoid this issue? Thanks Russ On Tue, 16 Apr 2019 at 14:54, Alexey Bataev via cfe-commits mailt

r359132 - [OPENMP]Initial support for non-rectangular loop nest.

2019-04-24 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Apr 24 12:58:30 2019 New Revision: 359132 URL: http://llvm.org/viewvc/llvm-project?rev=359132=rev Log: [OPENMP]Initial support for non-rectangular loop nest. Added basic semantic analysis for the non-rectangular loop nests for OpenMP 5.0 support. Modified:

r358766 - [OPENMP][NVPTX] target [teams distribute] simd maybe run without

2019-04-19 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Apr 19 09:48:38 2019 New Revision: 358766 URL: http://llvm.org/viewvc/llvm-project?rev=358766=rev Log: [OPENMP][NVPTX] target [teams distribute] simd maybe run without runtime. target [teams distribute] simd costructs do not require full runtime for the correct

r358595 - [OPENMP][NVPTX]Run combined constructs with if clause in SPMD mode.

2019-04-17 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Apr 17 09:53:08 2019 New Revision: 358595 URL: http://llvm.org/viewvc/llvm-project?rev=358595=rev Log: [OPENMP][NVPTX]Run combined constructs with if clause in SPMD mode. All target-parallel-based constructs can be run in SPMD mode from now on. Even if num_threads

r358503 - [OPENMP][NVPTX]Run combined constructs with if clause in SPMD mode.

2019-04-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Apr 16 08:39:12 2019 New Revision: 358503 URL: http://llvm.org/viewvc/llvm-project?rev=358503=rev Log: [OPENMP][NVPTX]Run combined constructs with if clause in SPMD mode. Combined constructs with parallel and if clauses without modifiers may be executed in SPMD mode

r358493 - [OPENMP]Require aarch arch for the tests, NFC.

2019-04-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Apr 16 07:26:10 2019 New Revision: 358493 URL: http://llvm.org/viewvc/llvm-project?rev=358493=rev Log: [OPENMP]Require aarch arch for the tests, NFC. Modified: cfe/trunk/test/OpenMP/declare_simd_aarch64.c cfe/trunk/test/OpenMP/declare_simd_aarch64.cpp

r358490 - [AArch64] Implement Vector Funtion ABI name mangling.

2019-04-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Apr 16 06:56:21 2019 New Revision: 358490 URL: http://llvm.org/viewvc/llvm-project?rev=358490=rev Log: [AArch64] Implement Vector Funtion ABI name mangling. Summary: The name mangling scheme is defined in section 3.5 of the "Vector function application binary interface

r358445 - [OPENMP][NVPTX]Run parallel regions with num_threads clauses in SPMD

2019-04-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Apr 15 13:38:10 2019 New Revision: 358445 URL: http://llvm.org/viewvc/llvm-project?rev=358445=rev Log: [OPENMP][NVPTX]Run parallel regions with num_threads clauses in SPMD mode. After the previous patch with the more correct handling of the number of threads in parallel

r358126 - [OPENMP]Improve detection of number of teams, threads in target

2019-04-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Apr 10 12:11:33 2019 New Revision: 358126 URL: http://llvm.org/viewvc/llvm-project?rev=358126=rev Log: [OPENMP]Improve detection of number of teams, threads in target regions. Added more complex analysis for number of teams and number of threads in the target regions,

r358016 - [OPENMP]Allow allocate directive on parameters.

2019-04-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Apr 9 09:31:37 2019 New Revision: 358016 URL: http://llvm.org/viewvc/llvm-project?rev=358016=rev Log: [OPENMP]Allow allocate directive on parameters. Patch allows to use allocate directives on the function parameters. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp

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