r322502 - [OPENMP] Update docs for OpenMP status, NFC.

2018-01-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jan 15 11:08:36 2018 New Revision: 322502 URL: http://llvm.org/viewvc/llvm-project?rev=322502&view=rev Log: [OPENMP] Update docs for OpenMP status, NFC. Modified: cfe/trunk/docs/OpenMPSupport.rst Modified: cfe/trunk/docs/OpenMPSupport.rst URL: http://llvm.org/viewv

r322516 - [OPENMP] Update status of OpenMP support, NFC.

2018-01-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jan 15 13:01:29 2018 New Revision: 322516 URL: http://llvm.org/viewvc/llvm-project?rev=322516&view=rev Log: [OPENMP] Update status of OpenMP support, NFC. Modified: cfe/trunk/docs/OpenMPSupport.rst Modified: cfe/trunk/docs/OpenMPSupport.rst URL: http://llvm.org/vie

r322559 - [OPENMP] Add support for `depend` clauses on `target simd`.

2018-01-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 16 07:05:16 2018 New Revision: 322559 URL: http://llvm.org/viewvc/llvm-project?rev=322559&view=rev Log: [OPENMP] Add support for `depend` clauses on `target simd`. Added codegen for `depend` clauses on `#pragma omp target simd` directives. Added: cfe/trunk/test/

r322569 - [OPENMP] Add support for `depend` clauses on `target teams`.

2018-01-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 16 07:57:07 2018 New Revision: 322569 URL: http://llvm.org/viewvc/llvm-project?rev=322569&view=rev Log: [OPENMP] Add support for `depend` clauses on `target teams`. Added codegen for `depend` clause on `#pragma omp target teams` directives. Added: cfe/trunk/test

r322570 - [OPENMP] Add support for `depend` clauses on `target parallel` directive.

2018-01-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 16 08:27:49 2018 New Revision: 322570 URL: http://llvm.org/viewvc/llvm-project?rev=322570&view=rev Log: [OPENMP] Add support for `depend` clauses on `target parallel` directive. Added codegen for `depend` clauses on `#pragma omp target parallel` directives. Added:

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

2018-01-16 Thread Alexey Bataev via cfe-commits
rged (unless you already have). > > Thanks, > Hans > > On Mon, Jan 8, 2018 at 5:27 PM, Alexey Bataev via cfe-commits > wrote: >> Will add some more tests later today >> - >> Best regards, >> Alexey Bataev >> >> 08.01.2018 11:13, David B

r322571 - [OPENMP] Add support for `depend` clause on `target teams distribute`.

2018-01-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 16 08:46:46 2018 New Revision: 322571 URL: http://llvm.org/viewvc/llvm-project?rev=322571&view=rev Log: [OPENMP] Add support for `depend` clause on `target teams distribute`. Added codegen for `depend` clauses on `#pragma omp target teams distribute` directives. Add

r322575 - [OPENMP] Add support for `depend` clauses on `target teams distribute

2018-01-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 16 09:22:50 2018 New Revision: 322575 URL: http://llvm.org/viewvc/llvm-project?rev=322575&view=rev Log: [OPENMP] Add support for `depend` clauses on `target teams distribute simd` directives. Added codegen for `depend` clauses on `#pragma omp target teams distribute

r322577 - [OPENMP] Add support for `depend` clauses on `target parallel for`

2018-01-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 16 09:41:04 2018 New Revision: 322577 URL: http://llvm.org/viewvc/llvm-project?rev=322577&view=rev Log: [OPENMP] Add support for `depend` clauses on `target parallel for` directives. Added codegen for `depend` clause on `#pragma omp target parallel for` directives.

r322578 - [OPENMP] Add support for `depend` clauses on `target parallel for simd`

2018-01-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 16 09:55:15 2018 New Revision: 322578 URL: http://llvm.org/viewvc/llvm-project?rev=322578&view=rev Log: [OPENMP] Add support for `depend` clauses on `target parallel for simd` directives. Added codegen for `depend` clauses on `#pragma omp target parallel for simd` di

r322585 - [OPENMP] Add support for `depend` on `target teams distribute parallel

2018-01-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 16 11:02:33 2018 New Revision: 322585 URL: http://llvm.org/viewvc/llvm-project?rev=322585&view=rev Log: [OPENMP] Add support for `depend` on `target teams distribute parallel for` directives. Added codegen for `depend` clauses on `#pragma omp target teams distribute

r322587 - [OPENMP] Add support for `depend` clauses on `target teams distribute

2018-01-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 16 11:18:24 2018 New Revision: 322587 URL: http://llvm.org/viewvc/llvm-project?rev=322587&view=rev Log: [OPENMP] Add support for `depend` clauses on `target teams distribute parallel for simd` directives. Added codegen for `depend` clauses on `#pragma omp target team

r322589 - [DOCS] Updated current status of OpenMP support, NFC.

2018-01-16 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 16 11:22:49 2018 New Revision: 322589 URL: http://llvm.org/viewvc/llvm-project?rev=322589&view=rev Log: [DOCS] Updated current status of OpenMP support, NFC. Modified: cfe/trunk/docs/OpenMPSupport.rst Modified: cfe/trunk/docs/OpenMPSupport.rst URL: http://llvm.

r323232 - [OPENMP] Remove more empty SourceLocations() from the code.

2018-01-23 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 23 10:12:38 2018 New Revision: 323232 URL: http://llvm.org/viewvc/llvm-project?rev=323232&view=rev Log: [OPENMP] Remove more empty SourceLocations() from the code. Removed more empty SourceLocations() from the OpenMP code and replaced with the correct locations for b

r323236 - [OPENMP] Replace call of EmitLoadOfLValue() by EmitLoadOfScalar(), NFC.

2018-01-23 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 23 10:44:14 2018 New Revision: 323236 URL: http://llvm.org/viewvc/llvm-project?rev=323236&view=rev Log: [OPENMP] Replace call of EmitLoadOfLValue() by EmitLoadOfScalar(), NFC. Replace calls of EmitLoadOfLValue() by EmitLoadOfScalar() functions if it is known that the

Re: [PATCH] D29758: [OpenMP] Parallel reduction on the NVPTX device.

2017-02-10 Thread Alexey Bataev via cfe-commits
Arpith, see the comment in CGOpenMPRuntime.cpp // if SimpleReduction is true, only the next code is generated: // ... // [i] = RedOp(*[i], *[i]); // ... and is used for omp simd directive only. - Best regards, Alexey Bataev 10.02.2017 18:49, Arpith Jacob via Phabricat

Re: r295473 - [OpenMP] Remove barriers at cancel and cancellation point

2017-02-22 Thread Alexey Bataev via cfe-commits
Yes, approved Best regards, Alexey Bataev > 23 февр. 2017 г., в 1:00, Hans Wennborg написал(а): > > Alexey: ping? > >> On Tue, Feb 21, 2017 at 11:07 AM, Hans Wennborg wrote: >> I'm Ok with it if Alexey approves. >> >> On Fri, Feb 17, 2017 at 10:52 AM, Hahnfeld, Jonas >> wrote: >>> Hi Hans,

r286944 - [OPENMP] Fixed codegen for 'omp cancel' construct.

2016-11-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Nov 15 03:11:50 2016 New Revision: 286944 URL: http://llvm.org/viewvc/llvm-project?rev=286944&view=rev Log: [OPENMP] Fixed codegen for 'omp cancel' construct. If 'omp cancel' construct is used in a worksharing construct it may cause hanging of the software in case if red

r286953 - [OPENMP] Fix for PR30632: Name mangling issue.

2016-11-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Nov 15 07:15:20 2016 New Revision: 286953 URL: http://llvm.org/viewvc/llvm-project?rev=286953&view=rev Log: [OPENMP] Fix for PR30632: Name mangling issue. Reworked fix after comments from Richard Smith. We must skip all CapturedDecl-based contexts when trying to get corr

r287025 - [OPENMP] Fix stack use after delete, NFC.

2016-11-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Nov 15 14:57:18 2016 New Revision: 287025 URL: http://llvm.org/viewvc/llvm-project?rev=287025&view=rev Log: [OPENMP] Fix stack use after delete, NFC. Fixed possible use of stack variable after deletion. Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp Modified: cfe

r287227 - [OPENMP] Fixed codegen for 'omp cancel' construct.

2016-11-17 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Nov 17 09:12:05 2016 New Revision: 287227 URL: http://llvm.org/viewvc/llvm-project?rev=287227&view=rev Log: [OPENMP] Fixed codegen for 'omp cancel' construct. If 'omp cancel' construct is used in a worksharing construct it may cause hanging of the software in case if red

[PATCH] D22955: [MSVC] Improved late parsing of template functions.

2016-11-18 Thread Alexey Bataev via cfe-commits
ABataev added a comment. In https://reviews.llvm.org/D22955#598081, @rnk wrote: > If I understand correctly, this patch takes template function patterns, > copies them into instantiated context, parses them in that context, and then > instantiates them in that context. The key difference is tha

[PATCH] D26827: Make tests more robust with Release builds

2016-11-23 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. I'm ok with these changes but please check that tests are still working on Windows https://reviews.llvm.org/D26827 ___ cfe-commits mailing lis

r288039 - [OPENMP] Fix for PR31137: Wrong DSA for members in struct.

2016-11-28 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Nov 28 09:55:15 2016 New Revision: 288039 URL: http://llvm.org/viewvc/llvm-project?rev=288039&view=rev Log: [OPENMP] Fix for PR31137: Wrong DSA for members in struct. If member expression is used in the task region and the base expression is a DeclRefExp and the variable

r301410 - [OPENMP] Move handling of threadprivate vars from the stack, NFC.

2017-04-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Apr 26 09:24:21 2017 New Revision: 301410 URL: http://llvm.org/viewvc/llvm-project?rev=301410&view=rev Log: [OPENMP] Move handling of threadprivate vars from the stack, NFC. Threadprivate variables do no need to be handled in the Stack of all directives, moving it out fo

r301416 - [OPENMP] Fix handling of OpenMP code during template instantiation.

2017-04-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Apr 26 10:06:24 2017 New Revision: 301416 URL: http://llvm.org/viewvc/llvm-project?rev=301416&view=rev Log: [OPENMP] Fix handling of OpenMP code during template instantiation. If some function template is instantiated during handling of OpenMP code, currently it may caus

r301417 - [OPENMP] Fix failing test.

2017-04-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Apr 26 10:30:36 2017 New Revision: 301417 URL: http://llvm.org/viewvc/llvm-project?rev=301417&view=rev Log: [OPENMP] Fix failing test. Modified: cfe/trunk/test/OpenMP/capturing_in_templates.cpp Modified: cfe/trunk/test/OpenMP/capturing_in_templates.cpp URL: http://

Re: r301410 - [OPENMP] Move handling of threadprivate vars from the stack, NFC.

2017-04-27 Thread Alexey Bataev via cfe-commits
ous namespace)::DSAStackTy::hasDSA(clang::ValueDecl*, llvm::function_ref const&, llvm::function_ref const&, bool) http://green.lab.llvm.org/green/job/clang-stage2-cmake-RgSan_check/3344/testReport/junit/Clang/OpenMP/atomic_codegen_cpp/ Can you have a look? Thanks! -Ahmed On Wed, Apr

r301547 - [OPENMP] Improve performance of the hasDSA() function, NFC.

2017-04-27 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Apr 27 09:46:26 2017 New Revision: 301547 URL: http://llvm.org/viewvc/llvm-project?rev=301547&view=rev Log: [OPENMP] Improve performance of the hasDSA() function, NFC. Remove some unneccesary code from the function after the fix for ASAN buildbots. Modified: cfe/tru

r301549 - [OPENMP] Add a check for iterator not reached the end of stack, NFC.

2017-04-27 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Apr 27 10:10:33 2017 New Revision: 301549 URL: http://llvm.org/viewvc/llvm-project?rev=301549&view=rev Log: [OPENMP] Add a check for iterator not reached the end of stack, NFC. Add an extra check for the iterator during checks of the data-sharing attributes. Modified:

r303077 - [OPENMP] Check DSA for variables captured by value.

2017-05-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon May 15 11:26:15 2017 New Revision: 303077 URL: http://llvm.org/viewvc/llvm-project?rev=303077&view=rev Log: [OPENMP] Check DSA for variables captured by value. Currently clang checks for default data sharing attributes only for variables captured in OpenMP regions by ref

[PATCH] D25661: [Driver] Support obtaining active toolchain from gcc-config on Gentoo

2016-10-17 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/Driver/ToolChains.cpp:1446-1463 + // CURRENT=triple-version + if (Line.startswith("CURRENT=")) { +const std::pair ActiveVersion = + Line.substr(8).rsplit('-'); +// Note: Strictly

[PATCH] D25661: [Driver] Support obtaining active toolchain from gcc-config on Gentoo

2016-10-17 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/Driver/ToolChains.cpp:1446-1463 + // CURRENT=triple-version + if (Line.startswith("CURRENT=")) { +const std::pair ActiveVersion = + Line.substr(8).rsplit('-'); +// Note: Strictly

[PATCH] D25661: [Driver] Support obtaining active toolchain from gcc-config on Gentoo

2016-10-17 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/Driver/ToolChains.cpp:1446-1463 + // CURRENT=triple-version + if (Line.startswith("CURRENT=")) { +const std::pair ActiveVersion = + Line.substr(8).rsplit('-'); +// Note: Strictly

[PATCH] D22045: [X86] Support of no_caller_saved_registers attribute (Clang part)

2016-10-17 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: include/clang/AST/Type.h:2934 ExtInfo(bool noReturn, bool hasRegParm, unsigned regParm, CallingConv cc, -bool producesResult) { +bool producesResult, bool noCallerSavedRegs) { assert((!hasRegParm || re

[PATCH] D25669: [Driver] Simplify ToolChain::GetCXXStdlibType (NFC)

2016-10-26 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/Driver/ToolChain.cpp:553-559 + // "platform" is only used in tests to override CLANG_DEFAULT_CXX_STDLIB + if (LibName == "libc++") +return ToolChain::CST_Libcxx; + else if (LibName == "libstdc++") +return ToolChain::CST_Li

[PATCH] D26105: Allow CaseStmt to be initialized with a SubStmt

2016-10-31 Thread Alexey Bataev via cfe-commits
ABataev added a comment. Add a test Comment at: include/clang/AST/Stmt.h:697 + SourceLocation ellipsisLoc, SourceLocation colonLoc, + Stmt *SubStmt=nullptr) : SwitchCase(CaseStmtClass, caseLoc, colonLoc) { I don't think you need this ne

[PATCH] D26057: [coroutines] Add CoawaitDependentExpr AST node and use it to properly build await_transform.

2016-10-31 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: include/clang/AST/ExprCXX.h:4265 + CoawaitDependentExpr(SourceLocation KeywordLoc, QualType Ty, Expr *Op, + UnresolvedSet<16> OperatorCandidates) + : Expr(CoawaitDependentExprClass, Ty, VK_RValue, OK_Ordinary,

[PATCH] D26057: [coroutines] Add CoawaitDependentExpr AST node and use it to properly build await_transform.

2016-10-31 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/Sema/SemaCoroutine.cpp:237-244 +static UnresolvedSet<16> lookupOperatorCoawaitCall(Sema &SemaRef, Scope *S, + SourceLocation Loc, + E

[PATCH] D22955: [MSVC] Improved late parsing of template functions.

2016-11-02 Thread Alexey Bataev via cfe-commits
ABataev added a comment. Ping! https://reviews.llvm.org/D22955 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r286098 - [OPENMP] Fixed capturing of VLA variables.

2016-11-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Nov 7 02:07:25 2016 New Revision: 286098 URL: http://llvm.org/viewvc/llvm-project?rev=286098&view=rev Log: [OPENMP] Fixed capturing of VLA variables. After some changes in codegen capturing of VLA variables in OpenMP regions was broken, causing compiler crash. Patch fix

Re: r286098 - [OPENMP] Fixed capturing of VLA variables.

2016-11-07 Thread Alexey Bataev via cfe-commits
ds/304 http://lab.llvm.org:8011/builders/clang-hexagon-elf/builds/657 http://lab.llvm.org:8011/builders/clang-x86-windows-msvc2015/builds/347 Thanks, Diana On 7 November 2016 at 10:07, Alexey Bataev via cfe-commits mailto:cfe-commits@lists.llvm.org>> wrote: Author: abataev Date: Mon Nov 7 0

r286103 - [OPENMP] Fixed capturing of VLA variables.

2016-11-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Nov 7 05:16:04 2016 New Revision: 286103 URL: http://llvm.org/viewvc/llvm-project?rev=286103&view=rev Log: [OPENMP] Fixed capturing of VLA variables. After some changes in codegen capturing of VLA variables in OpenMP regions was broken, causing compiler crash. Patch fi

r286106 - [OPENMP] Fixed test on MIPS-based buildbots.

2016-11-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Nov 7 07:37:34 2016 New Revision: 286106 URL: http://llvm.org/viewvc/llvm-project?rev=286106&view=rev Log: [OPENMP] Fixed test on MIPS-based buildbots. Modified: cfe/trunk/test/OpenMP/parallel_codegen.cpp Modified: cfe/trunk/test/OpenMP/parallel_codegen.cpp URL: h

r286129 - [OPENMP] Fixed codegen for __real/__imag expressions in atomic

2016-11-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Nov 7 12:15:02 2016 New Revision: 286129 URL: http://llvm.org/viewvc/llvm-project?rev=286129&view=rev Log: [OPENMP] Fixed codegen for __real/__imag expressions in atomic constructs. For __real/__imag unary expressions clang emits lvalue with the associated type from the

Re: r286129 - [OPENMP] Fixed codegen for __real/__imag expressions in atomic

2016-11-07 Thread Alexey Bataev via cfe-commits
Hi Dimitry, I think so Best regards, Alexey Bataev > 7 нояб. 2016 г., в 22:36, Dimitry Andric написал(а): > > Hi Alexey, > > Does this look like a good candidate for 3.9.1? > > -Dimitry > >> On 07 Nov 2016, at 19:15, Alexey Bataev via cfe-commits >> w

[PATCH] D22955: [MSVC] Improved late parsing of template functions.

2016-11-09 Thread Alexey Bataev via cfe-commits
ABataev added a comment. Ping https://reviews.llvm.org/D22955 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r286584 - Fix for PR28523: unexpected compilation error.

2016-11-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Nov 11 06:36:20 2016 New Revision: 286584 URL: http://llvm.org/viewvc/llvm-project?rev=286584&view=rev Log: Fix for PR28523: unexpected compilation error. Clang emits error message for the following code: ``` template void parallel_loop(F &&f) { f(0); } int main() {

Re: [Diffusion] rL247251: [OPENMP] Outlined function for parallel and other regions with list of…

2015-09-10 Thread Alexey Bataev via cfe-commits
ABataev added a subscriber: ABataev. ABataev added a comment. Yes, I know. Fixing it right now. Will be fixed in few minutes, thanks. Best regards, Alexey Bataev = Software Engineer Intel Compiler Team 10.09.2015 11:46, NAKAMURA Takumi пишет: > chapuni added subscribers: cfe-commi

r247255 - [OPENMP] Fix test incompatibility with 32-bit platforms

2015-09-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Sep 10 04:06:59 2015 New Revision: 247255 URL: http://llvm.org/viewvc/llvm-project?rev=247255&view=rev Log: [OPENMP] Fix test incompatibility with 32-bit platforms Modified: cfe/trunk/test/OpenMP/parallel_codegen.cpp Modified: cfe/trunk/test/OpenMP/parallel_codegen.

r247260 - [OPENMP] Propagate alignment from original variables to the private copies.

2015-09-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Sep 10 04:48:30 2015 New Revision: 247260 URL: http://llvm.org/viewvc/llvm-project?rev=247260&view=rev Log: [OPENMP] Propagate alignment from original variables to the private copies. Currently private copies of captured variables have default alignment. Patch makes priv

r247268 - [OPENMP] Fix test incompatibility with Windows codegen.

2015-09-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Sep 10 06:09:46 2015 New Revision: 247268 URL: http://llvm.org/viewvc/llvm-project?rev=247268&view=rev Log: [OPENMP] Fix test incompatibility with Windows codegen. Modified: cfe/trunk/test/OpenMP/parallel_codegen.cpp Modified: cfe/trunk/test/OpenMP/parallel_codegen.

r247270 - [OPENMP] Fix test incompatibility with Windows.

2015-09-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Sep 10 06:31:04 2015 New Revision: 247270 URL: http://llvm.org/viewvc/llvm-project?rev=247270&view=rev Log: [OPENMP] Fix test incompatibility with Windows. Modified: cfe/trunk/test/OpenMP/parallel_codegen.cpp Modified: cfe/trunk/test/OpenMP/parallel_codegen.cpp URL:

r247273 - [OPENMP] Generate threadprivates as TLS variables by default.

2015-09-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Sep 10 07:06:58 2015 New Revision: 247273 URL: http://llvm.org/viewvc/llvm-project?rev=247273&view=rev Log: [OPENMP] Generate threadprivates as TLS variables by default. If target supports TLS all threadprivates are generated as TLS. If target does not support TLS, use r

r247389 - [OPENMP] Fix printing of array section with single index.

2015-09-10 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Sep 10 23:54:28 2015 New Revision: 247389 URL: http://llvm.org/viewvc/llvm-project?rev=247389&view=rev Log: [OPENMP] Fix printing of array section with single index. Modified: cfe/trunk/lib/AST/StmtPrinter.cpp cfe/trunk/test/OpenMP/task_ast_print.cpp Modified: c

Re: [PATCH] D10599: [OPENMP 4.0] Initial support for '#pragma omp declare simd' directive.

2015-09-11 Thread Alexey Bataev via cfe-commits
ABataev added a comment. Richard, any comments about latest version? http://reviews.llvm.org/D10599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D11182: [OPENMP 4.0] Initial support for 'omp declare reduction' construct.

2015-09-11 Thread Alexey Bataev via cfe-commits
ABataev added a comment. Richard? http://reviews.llvm.org/D11182 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r247401 - [OPENMP] Preserve alignment of the original variables for the captured references.

2015-09-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Sep 11 05:29:41 2015 New Revision: 247401 URL: http://llvm.org/viewvc/llvm-project?rev=247401&view=rev Log: [OPENMP] Preserve alignment of the original variables for the captured references. Patch makes codegen to preserve alignment of the shared variables captured and

r247681 - [OPENMP] Emit __kmpc_cancel_barrier() and code for 'cancellation point' only if 'cancel' is found.

2015-09-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 15 07:52:43 2015 New Revision: 247681 URL: http://llvm.org/viewvc/llvm-project?rev=247681&view=rev Log: [OPENMP] Emit __kmpc_cancel_barrier() and code for 'cancellation point' only if 'cancel' is found. Patch improves codegen for OpenMP constructs. If the OpenMP regi

r247706 - [OPENMP] Emit an additional note during analysis of 'if' clause.

2015-09-15 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 15 12:23:56 2015 New Revision: 247706 URL: http://llvm.org/viewvc/llvm-project?rev=247706&view=rev Log: [OPENMP] Emit an additional note during analysis of 'if' clause. Patch adds emission of additional note for 'if' clauses with name modifiers in case if 'if' clause

Re: [PATCH] D12871: [OpenMP] Target directive host codegen - rebased

2015-09-16 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:3044-3054 @@ +3043,13 @@ + + if (auto *VAT = dyn_cast(ElementType.getTypePtr())) { +auto VATInfo = CGF.getVLASize(VAT); +Size = llvm::ConstantInt::get( +CGM.SizeTy, +

Re: [PATCH] D12871: [OpenMP] Target directive host codegen - rebased

2015-09-17 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:3044-3054 @@ +3043,13 @@ + + if (auto *VAT = dyn_cast(ElementType.getTypePtr())) { +auto VATInfo = CGF.getVLASize(VAT); +Size = llvm::ConstantInt::get( +CGM.SizeTy, +

r247976 - [OPENMP 4.0] Add 'if' clause for 'cancel' directive.

2015-09-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Sep 18 03:07:34 2015 New Revision: 247976 URL: http://llvm.org/viewvc/llvm-project?rev=247976&view=rev Log: [OPENMP 4.0] Add 'if' clause for 'cancel' directive. Add parsing, sema analysis and codegen for 'if' clause in 'cancel' directive. Added: cfe/trunk/test/OpenMP

Re: [PATCH] D11182: [OPENMP 4.0] Initial support for 'omp declare reduction' construct.

2015-09-20 Thread Alexey Bataev via cfe-commits
ABataev added a comment. Ping http://reviews.llvm.org/D11182 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D10599: [OPENMP 4.0] Initial support for '#pragma omp declare simd' directive.

2015-09-20 Thread Alexey Bataev via cfe-commits
ABataev added a comment. Ping http://reviews.llvm.org/D10599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D12871: [OpenMP] Target directive host codegen - rebased

2015-09-23 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:3044-3054 @@ +3043,13 @@ +Sizes.push_back(Size); +MapTypes.push_back(MapType); + } + + // Keep track on whether the host function has to be executed. + auto OffloadErrorQType = + CGF.getCont

[PATCH] D13128: Fix backend crash on multiple close of stdout.

2015-09-24 Thread Alexey Bataev via cfe-commits
ABataev created this revision. ABataev added a reviewer: chandlerc. ABataev added a subscriber: cfe-commits. If stdout is used as an output file for several outputs (like dep file, output file, etc.) , it causes a crash in llvm::raw_fd_ostream::~raw_fd_ostream(), when destructor tries to close f

Re: [PATCH] D13128: Fix backend crash on multiple close of stdout.

2015-09-24 Thread Alexey Bataev via cfe-commits
ABataev added a comment. In http://reviews.llvm.org/D13128#252630, @yaron.keren wrote: > When stdout goes elsewhere the console, the shell creates the the output file > (pipe) and will close it when clang terminates so so why clang should close > it at all ? it did not open it. > > Practicall

Re: [PATCH] D13128: Fix backend crash on multiple close of stdout.

2015-09-24 Thread Alexey Bataev via cfe-commits
ABataev updated the summary for this revision. ABataev updated this revision to Diff 35698. ABataev added a comment. Reworked patch after some discussion http://reviews.llvm.org/D13128 Files: lib/Support/raw_ostream.cpp test/Other/empty.ll Index: lib/Support/raw_ostream.cpp ===

r248569 - [OPENMP 4.1] Add 'threads' clause for '#pragma omp ordered'.

2015-09-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Sep 25 05:37:12 2015 New Revision: 248569 URL: http://llvm.org/viewvc/llvm-project?rev=248569&view=rev Log: [OPENMP 4.1] Add 'threads' clause for '#pragma omp ordered'. OpenMP 4.1 extends format of '#pragma omp ordered'. It adds 3 additional clauses: 'threads', 'simd' an

r248696 - [OPENMP 4.1] Add 'simd' clause for 'ordered' directive.

2015-09-27 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Sep 28 01:39:35 2015 New Revision: 248696 URL: http://llvm.org/viewvc/llvm-project?rev=248696&view=rev Log: [OPENMP 4.1] Add 'simd' clause for 'ordered' directive. Parsing and sema analysis for 'simd' clause in 'ordered' directive. Description If the simd clause is specif

Re: [PATCH] D13128: Fix backend crash on multiple close of stdout.

2015-09-28 Thread Alexey Bataev via cfe-commits
ABataev added a comment. The bad thing is that the same problem can be reproduced not only in frontend, but also in opt tool. The test I wrote (test/Other/empty.ll) also failed with the same message. And Yaron is right, I need to mix several outputs in stdout. What should I do in this case? h

r248880 - [OPENMP 4.1] Sema analysis for array sections in 'reduction' clause.

2015-09-30 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Sep 30 04:22:36 2015 New Revision: 248880 URL: http://llvm.org/viewvc/llvm-project?rev=248880&view=rev Log: [OPENMP 4.1] Sema analysis for array sections in 'reduction' clause. OpenMP 4.1 allows to use array sections|subscript expressions in 'reduction' clauses. Added se

cfe-commits@lists.llvm.org

2015-09-30 Thread Alexey Bataev via cfe-commits
ABataev created this revision. ABataev added a reviewer: rjmccall. ABataev added a subscriber: cfe-commits. Currently codegen crashes trying to emit casting to `bool &`. It happens because `bool` type is converted to `i1` and later then lvalue for reference is converted to `i1*`. But when codege

[PATCH] D13336: [MSVC] 'property' with an empty array in array subscript expression.

2015-10-01 Thread Alexey Bataev via cfe-commits
ABataev created this revision. ABataev added a reviewer: rnk. ABataev added a subscriber: cfe-commits. MSVC supports 'property' attribute and allows to apply it to the declaration of an empty array in a class or structure definition. For example: ``` __declspec(property(get=GetX, put=PutX)) int x

[PATCH] D13375: [MSVC] Fix for http://llvm.org/PR24132: __declspec(property): double invocations of foo() when compiling foo()->propertyName

2015-10-01 Thread Alexey Bataev via cfe-commits
ABataev created this revision. ABataev added a reviewer: rnk. ABataev added a subscriber: cfe-commits. Removes extra codegen for base expression of MS property call http://reviews.llvm.org/D13375 Files: lib/Sema/SemaPseudoObject.cpp test/CodeGenCXX/ms-property.cpp Index: lib/Sema/SemaPseudo

cfe-commits@lists.llvm.org

2015-10-07 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Oct 7 05:22:08 2015 New Revision: 249534 URL: http://llvm.org/viewvc/llvm-project?rev=249534&view=rev Log: Fix crash in codegen on casting to `bool &`. Currently codegen crashes trying to emit casting to bool &. It happens because bool type is converted to i1 and later

cfe-commits@lists.llvm.org

2015-10-07 Thread Alexey Bataev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL249534: Fix crash in codegen on casting to `bool &`. (authored by ABataev). Changed prior to commit: http://reviews.llvm.org/D13325?vs=36179&id=36725#toc Repository: rL LLVM http://reviews.llvm.org/

[PATCH] D11932: [OPENMP] Link libomp.lib on Windows

2015-08-11 Thread Alexey Bataev via cfe-commits
ABataev created this revision. ABataev added reviewers: chandlerc, rsmith. ABataev added a subscriber: cfe-commits. Adds libomp.lib for -fopenmp=libomp and libiomp5md.lib for -fopenmp=libiomp5 on Windows http://reviews.llvm.org/D11932 Files: lib/Driver/Tools.cpp test/OpenMP/linking.c Index

Re: [PATCH] D11932: [OPENMP] Link libomp.lib on Windows

2015-08-11 Thread Alexey Bataev via cfe-commits
ABataev updated this revision to Diff 31792. ABataev added a comment. Test fix http://reviews.llvm.org/D11932 Files: lib/Driver/Tools.cpp test/OpenMP/linking.c Index: lib/Driver/Tools.cpp === --- lib/Driver/Tools.cpp +++ lib/D

r244719 - [OPENMP] Fix for http://llvm.org/PR24430: clang hangs on invalid input with openmp directive

2015-08-12 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed Aug 12 02:10:54 2015 New Revision: 244719 URL: http://llvm.org/viewvc/llvm-project?rev=244719&view=rev Log: [OPENMP] Fix for http://llvm.org/PR24430: clang hangs on invalid input with openmp directive Add parsing of openmp directives inside structs/unions in C mode. Mo

r245041 - [OPENMP] Fix for http://llvm.org/PR24371: Assert failure compiling blender 2.75.

2015-08-14 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 14 07:25:37 2015 New Revision: 245041 URL: http://llvm.org/viewvc/llvm-project?rev=245041&view=rev Log: [OPENMP] Fix for http://llvm.org/PR24371: Assert failure compiling blender 2.75. blender uses statements expression in condition of the loop under control of the '

Re: [PATCH] D10732: [OPENMP 4.0] Initial support for array sections.

2015-08-16 Thread Alexey Bataev via cfe-commits
ABataev added a comment. Richard, any comments? http://reviews.llvm.org/D10732 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D10599: [OPENMP 4.0] Initial support for '#pragma omp declare simd' directive.

2015-08-16 Thread Alexey Bataev via cfe-commits
ABataev added a comment. Richard? http://reviews.llvm.org/D10599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D11361: [OpenMP] Target directive host codegen

2015-08-16 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:1969 @@ -1945,3 +1968,3 @@ else - return EmitCapturedFieldLValue(*this, CapturedStmtInfo->lookup(VD), - CapturedStmtInfo->getContextValue()); + retu

Re: [PATCH] D11932: [OPENMP] Link libomp.lib on Windows

2015-08-17 Thread Alexey Bataev via cfe-commits
ABataev updated this revision to Diff 32275. ABataev added a comment. Add path to libomp.lib. http://reviews.llvm.org/D11932 Files: lib/Driver/Tools.cpp test/OpenMP/linking.c Index: lib/Driver/Tools.cpp === --- lib/Driver/Tool

r245268 - [OPENMP 4.1] Allow variables with reference types in private clauses.

2015-08-17 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Aug 18 01:47:21 2015 New Revision: 245268 URL: http://llvm.org/viewvc/llvm-project?rev=245268&view=rev Log: [OPENMP 4.1] Allow variables with reference types in private clauses. OpenMP 4.1 allows to use variables with reference types in all private clauses (private, fir

[PATCH] D12134: Improve debug info for implicitly captured vars in lambdas

2015-08-18 Thread Alexey Bataev via cfe-commits
ABataev created this revision. ABataev added reviewers: echristo, rjmccall, rsmith. ABataev added a subscriber: cfe-commits. When variables are implicitly captured in lambdas, debug info generated for captured variables points to location where they are used first. This patch makes debug info t

r245414 - [OPENMP] Link libomp.lib on Windows

2015-08-18 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Aug 18 23:49:01 2015 New Revision: 245414 URL: http://llvm.org/viewvc/llvm-project?rev=245414&view=rev Log: [OPENMP] Link libomp.lib on Windows Adds libomp.lib for -fopenmp=libomp and libiomp5md.lib for -fopenmp=libiomp5 on Windows Differential Revision: http://reviews.

Re: [PATCH] D11932: [OPENMP] Link libomp.lib on Windows

2015-08-18 Thread Alexey Bataev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL245414: [OPENMP] Link libomp.lib on Windows (authored by ABataev). Changed prior to commit: http://reviews.llvm.org/D11932?vs=32275&id=32502#toc Repository: rL LLVM http://reviews.llvm.org/D11932 F

Re: [PATCH] D11361: [OpenMP] Target directive host codegen

2015-08-19 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:1969-1970 @@ -1945,4 +1968,4 @@ else - return EmitCapturedFieldLValue(*this, CapturedStmtInfo->lookup(VD), - CapturedStmtInfo->getContextValue()); +

[PATCH] D12152: [OPENMP] Info about OpenMP Support in Users Manual

2015-08-19 Thread Alexey Bataev via cfe-commits
ABataev created this revision. ABataev added reviewers: hans, fraggamuffin, ejstotzer, hfinkel. ABataev added a subscriber: cfe-commits. http://reviews.llvm.org/D12152 Files: docs/UsersManual.rst Index: docs/UsersManual.rst === --

Re: [PATCH] D12152: [OPENMP] Info about OpenMP Support in Users Manual

2015-08-19 Thread Alexey Bataev via cfe-commits
ABataev updated this revision to Diff 32653. ABataev added a comment. Update after review http://reviews.llvm.org/D12152 Files: docs/UsersManual.rst Index: docs/UsersManual.rst === --- docs/UsersManual.rst +++ docs/UsersManual.r

r245550 - [OPENMP 4.1] Initial support for modifiers in 'linear' clause.

2015-08-20 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Aug 20 05:54:39 2015 New Revision: 245550 URL: http://llvm.org/viewvc/llvm-project?rev=245550&view=rev Log: [OPENMP 4.1] Initial support for modifiers in 'linear' clause. OpenMP 4.1 adds 3 optional modifiers to 'linear' clause. Format of 'linear' clause has changed to: `

r245556 - [OPENMP 4.1] Allow to use 'uval' and 'ref' modifiers for reference types only.

2015-08-20 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Aug 20 07:15:57 2015 New Revision: 245556 URL: http://llvm.org/viewvc/llvm-project?rev=245556&view=rev Log: [OPENMP 4.1] Allow to use 'uval' and 'ref' modifiers for reference types only. Standard allows to use 'uval' and 'ref' modifiers in 'linear' clause for variables w

Re: [PATCH] D12152: [OPENMP] Info about OpenMP Support in Users Manual

2015-08-20 Thread Alexey Bataev via cfe-commits
ABataev updated this revision to Diff 32790. ABataev added a comment. Update after review from Kelvin http://reviews.llvm.org/D12152 Files: docs/UsersManual.rst Index: docs/UsersManual.rst === --- docs/UsersManual.rst +++ docs/U

Re: [PATCH] D11182: [OPENMP 4.0] Initial support for 'omp declare reduction' construct.

2015-08-20 Thread Alexey Bataev via cfe-commits
ABataev added a subscriber: ABataev. ABataev added a comment. I'll update patch, Michael Best regards, Alexey Bataev = Software Engineer Intel Compiler Team 20.08.2015 18:40, Michael Wong пишет: > fraggamuffin added a comment. > > > Comment at: lib/Parse/Pars

Re: [PATCH] D11182: [OPENMP 4.0] Initial support for 'omp declare reduction' construct.

2015-08-20 Thread Alexey Bataev via cfe-commits
ABataev updated this revision to Diff 32792. ABataev added a comment. Updated to latest version. http://reviews.llvm.org/D11182 Files: include/clang/AST/DataRecursiveASTVisitor.h include/clang/AST/DeclBase.h include/clang/AST/DeclOpenMP.h include/clang/AST/RecursiveASTVisitor.h includ

r245674 - [OPENMP 4.1] Improved codegen for 'uval' qualifier of 'linear' clause.

2015-08-20 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 21 01:41:23 2015 New Revision: 245674 URL: http://llvm.org/viewvc/llvm-project?rev=245674&view=rev Log: [OPENMP 4.1] Improved codegen for 'uval' qualifier of 'linear' clause. According to standard the 'uval' modifier declares the address of the original list item to

Re: [PATCH] D11361: [OpenMP] Target directive host codegen

2015-08-21 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:2887 @@ +2886,3 @@ +llvm::Value * +CGOpenMPRuntime::emitTargetOutlinedFunction(CodeGenFunction &CGF, +const OMPExecutableDirective &D, I don't th

<    6   7   8   9   10   11   12   13   14   15   >