r295335 - [OpenMP] Teams reduction on the NVPTX device.

2017-02-16 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Thu Feb 16 10:48:49 2017 New Revision: 295335 URL: http://llvm.org/viewvc/llvm-project?rev=295335=rev Log: [OpenMP] Teams reduction on the NVPTX device. This patch implements codegen for the reduction clause on any teams construct for elementary data types. It builds on

r295333 - [OpenMP] Parallel reduction on the NVPTX device.

2017-02-16 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Thu Feb 16 10:20:16 2017 New Revision: 295333 URL: http://llvm.org/viewvc/llvm-project?rev=295333=rev Log: [OpenMP] Parallel reduction on the NVPTX device. This patch implements codegen for the reduction clause on any parallel construct for elementary data types. An

r295323 - Revert r295319 while investigating buildbot failure.

2017-02-16 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Thu Feb 16 08:25:35 2017 New Revision: 295323 URL: http://llvm.org/viewvc/llvm-project?rev=295323=rev Log: Revert r295319 while investigating buildbot failure. Removed: cfe/trunk/test/OpenMP/nvptx_target_parallel_reduction_codegen.cpp Modified:

r295319 - [OpenMP] Parallel reduction on the NVPTX device.

2017-02-16 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Thu Feb 16 08:03:36 2017 New Revision: 295319 URL: http://llvm.org/viewvc/llvm-project?rev=295319=rev Log: [OpenMP] Parallel reduction on the NVPTX device. This patch implements codegen for the reduction clause on any parallel construct for elementary data types. An

r293444 - [OpenMP][NVPTX][CUDA] Adding support for printf for an NVPTX OpenMP device.

2017-01-29 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Sun Jan 29 14:49:31 2017 New Revision: 293444 URL: http://llvm.org/viewvc/llvm-project?rev=293444=rev Log: [OpenMP][NVPTX][CUDA] Adding support for printf for an NVPTX OpenMP device. Support for CUDA printf is exploited to support printf for an NVPTX OpenMP device. To

r293183 - [OpenMP] Codegen support for 'target teams' on the NVPTX device.

2017-01-26 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Thu Jan 26 09:43:27 2017 New Revision: 293183 URL: http://llvm.org/viewvc/llvm-project?rev=293183=rev Log: [OpenMP] Codegen support for 'target teams' on the NVPTX device. This is a simple patch to teach OpenMP codegen to emit the construct in Generic mode. Reviewers:

r293069 - [OpenMP] Support for the proc_bind-clause on 'target parallel' on the NVPTX device.

2017-01-25 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Wed Jan 25 10:55:10 2017 New Revision: 293069 URL: http://llvm.org/viewvc/llvm-project?rev=293069=rev Log: [OpenMP] Support for the proc_bind-clause on 'target parallel' on the NVPTX device. This patch adds support for the proc_bind clause on the Spmd construct 'target

r293049 - [OpenMP] Support for thread_limit-clause on the 'target teams' directive.

2017-01-25 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Wed Jan 25 05:44:35 2017 New Revision: 293049 URL: http://llvm.org/viewvc/llvm-project?rev=293049=rev Log: [OpenMP] Support for thread_limit-clause on the 'target teams' directive. The thread_limit-clause on the combined directive applies to the 'teams' region of this

r293048 - [OpenMP] Support for num_teams-clause on the 'target teams' directive.

2017-01-25 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Wed Jan 25 05:28:18 2017 New Revision: 293048 URL: http://llvm.org/viewvc/llvm-project?rev=293048=rev Log: [OpenMP] Support for num_teams-clause on the 'target teams' directive. The num_teams-clause on the combined directive applies to the 'teams' region of this construct.

r293005 - [OpenMP] Codegen support for 'target teams' on the host.

2017-01-24 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Tue Jan 24 20:18:43 2017 New Revision: 293005 URL: http://llvm.org/viewvc/llvm-project?rev=293005=rev Log: [OpenMP] Codegen support for 'target teams' on the host. This patch adds support for codegen of 'target teams' on the host. This combined directive has two captured

r293003 - Reverting commit because an NVPTX patch sneaked in. Break up into two

2017-01-24 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Tue Jan 24 19:45:59 2017 New Revision: 293003 URL: http://llvm.org/viewvc/llvm-project?rev=293003=rev Log: Reverting commit because an NVPTX patch sneaked in. Break up into two patches. Removed: cfe/trunk/test/OpenMP/target_teams_codegen.cpp

r293001 - [OpenMP] Codegen support for 'target teams' on the host.

2017-01-24 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Tue Jan 24 19:38:33 2017 New Revision: 293001 URL: http://llvm.org/viewvc/llvm-project?rev=293001=rev Log: [OpenMP] Codegen support for 'target teams' on the host. This patch adds support for codegen of 'target teams' on the host. This combined directive has two captured

r292999 - [OpenMP] Support for the num_threads-clause on 'target parallel' on the NVPTX device.

2017-01-24 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Tue Jan 24 19:18:34 2017 New Revision: 292999 URL: http://llvm.org/viewvc/llvm-project?rev=292999=rev Log: [OpenMP] Support for the num_threads-clause on 'target parallel' on the NVPTX device. This patch adds support for the Spmd construct 'target parallel' on the NVPTX

r292997 - [OpenMP] Support for the num_threads-clause on 'target parallel'.

2017-01-24 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Tue Jan 24 18:57:16 2017 New Revision: 292997 URL: http://llvm.org/viewvc/llvm-project?rev=292997=rev Log: [OpenMP] Support for the num_threads-clause on 'target parallel'. The num_threads-clause on the combined directive applies to the 'parallel' region of this construct.

r292794 - [OpenMP] DSAChecker bug fix for combined directives.

2017-01-23 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Mon Jan 23 09:38:49 2017 New Revision: 292794 URL: http://llvm.org/viewvc/llvm-project?rev=292794=rev Log: [OpenMP] DSAChecker bug fix for combined directives. The DSAChecker code in SemaOpenMP looks at the captured statement associated with an OpenMP directive. A combined

r292437 - [OpenMP] Support for the if-clause on the combined directive 'target parallel'.

2017-01-18 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Wed Jan 18 14:40:48 2017 New Revision: 292437 URL: http://llvm.org/viewvc/llvm-project?rev=292437=rev Log: [OpenMP] Support for the if-clause on the combined directive 'target parallel'. The if-clause on the combined directive potentially applies to both the 'target' and the

r292428 - [OpenMP] Codegen for the 'target parallel' directive on the NVPTX device.

2017-01-18 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Wed Jan 18 13:35:00 2017 New Revision: 292428 URL: http://llvm.org/viewvc/llvm-project?rev=292428=rev Log: [OpenMP] Codegen for the 'target parallel' directive on the NVPTX device. This patch adds codegen for the 'target parallel' directive on the NVPTX device. We term

r292419 - [OpenMP] Codegen support for 'target parallel' on the host.

2017-01-18 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Wed Jan 18 12:18:53 2017 New Revision: 292419 URL: http://llvm.org/viewvc/llvm-project?rev=292419=rev Log: [OpenMP] Codegen support for 'target parallel' on the host. This patch adds support for codegen of 'target parallel' on the host. It is also the first combined

r292400 - Revert r292374 to debug Windows buildbot failure.

2017-01-18 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Wed Jan 18 09:36:05 2017 New Revision: 292400 URL: http://llvm.org/viewvc/llvm-project?rev=292400=rev Log: Revert r292374 to debug Windows buildbot failure. Removed: cfe/trunk/test/OpenMP/target_parallel_codegen.cpp

r292374 - [OpenMP] Codegen support for 'target parallel' on the host.

2017-01-18 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Wed Jan 18 09:14:52 2017 New Revision: 292374 URL: http://llvm.org/viewvc/llvm-project?rev=292374=rev Log: [OpenMP] Codegen support for 'target parallel' on the host. This patch adds support for codegen of 'target parallel' on the host. It is also the first combined

r291565 - [OpenMP] Basic support for a parallel directive in a target region on an NVPTX device

2017-01-10 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Tue Jan 10 09:42:51 2017 New Revision: 291565 URL: http://llvm.org/viewvc/llvm-project?rev=291565=rev Log: [OpenMP] Basic support for a parallel directive in a target region on an NVPTX device Summary: This patch introduces support for the execution of parallel constructs

r291121 - [OpenMP] Update target codegen for NVPTX device.

2017-01-05 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Thu Jan 5 09:24:05 2017 New Revision: 291121 URL: http://llvm.org/viewvc/llvm-project?rev=291121=rev Log: [OpenMP] Update target codegen for NVPTX device. This patch includes updates for codegen of the target region for the NVPTX device. It moves initializers from the

r290989 - Reverting commit r290983 while debugging test failure on windows.

2017-01-04 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Wed Jan 4 13:14:43 2017 New Revision: 290989 URL: http://llvm.org/viewvc/llvm-project?rev=290989=rev Log: Reverting commit r290983 while debugging test failure on windows. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp

r290983 - [OpenMP] Update target codegen for NVPTX device.

2017-01-04 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Wed Jan 4 12:44:50 2017 New Revision: 290983 URL: http://llvm.org/viewvc/llvm-project?rev=290983=rev Log: [OpenMP] Update target codegen for NVPTX device. This patch includes updates for codegen of the target region for the NVPTX device. It moves initializers from the

r290904 - [OpenMP] Code cleanup for NVPTX OpenMP codegen

2017-01-03 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Tue Jan 3 14:19:56 2017 New Revision: 290904 URL: http://llvm.org/viewvc/llvm-project?rev=290904=rev Log: [OpenMP] Code cleanup for NVPTX OpenMP codegen This patch cleans up private methods for NVPTX OpenMP codegen. It converts private members to static functions to follow

r264018 - [OpenMP] Base support for target directive codegen on NVPTX device.

2016-03-21 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Mon Mar 21 20:48:56 2016 New Revision: 264018 URL: http://llvm.org/viewvc/llvm-project?rev=264018=rev Log: [OpenMP] Base support for target directive codegen on NVPTX device. Summary: This patch adds base support for codegen of the target directive on the NVPTX device.

r263784 - Revert r263783 as buildbot failure is being investigated.

2016-03-19 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Fri Mar 18 07:39:40 2016 New Revision: 263784 URL: http://llvm.org/viewvc/llvm-project?rev=263784=rev Log: Revert r263783 as buildbot failure is being investigated. Removed: cfe/trunk/test/OpenMP/nvptx_target_codegen.cpp Modified:

r263783 - [OpenMP] Base support for target directive codegen on NVPTX device.

2016-03-19 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Fri Mar 18 06:47:43 2016 New Revision: 263783 URL: http://llvm.org/viewvc/llvm-project?rev=263783=rev Log: [OpenMP] Base support for target directive codegen on NVPTX device. Summary: Reworked test case after buildbot failure on windows. This patch adds base support for

r263589 - Revert commit http://reviews.llvm.org/D17877 to fix tests on x86.

2016-03-15 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Tue Mar 15 16:26:34 2016 New Revision: 263589 URL: http://llvm.org/viewvc/llvm-project?rev=263589=rev Log: Revert commit http://reviews.llvm.org/D17877 to fix tests on x86. Removed: cfe/trunk/test/OpenMP/nvptx_target_codegen.cpp Modified:

r263587 - [OpenMP] Base support for target directive codegen on NVPTX device.

2016-03-15 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Tue Mar 15 16:04:57 2016 New Revision: 263587 URL: http://llvm.org/viewvc/llvm-project?rev=263587=rev Log: [OpenMP] Base support for target directive codegen on NVPTX device. Summary: This patch adds base support for codegen of the target directive on the NVPTX device.

r263555 - Reverted http://reviews.llvm.org/D17877 to fix tests.

2016-03-15 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Tue Mar 15 11:19:13 2016 New Revision: 263555 URL: http://llvm.org/viewvc/llvm-project?rev=263555=rev Log: Reverted http://reviews.llvm.org/D17877 to fix tests. Removed: cfe/trunk/test/OpenMP/nvptx_target_codegen.cpp Modified:

r263552 - [OpenMP] Base support for target directive codegen on NVPTX device.

2016-03-15 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Tue Mar 15 10:24:52 2016 New Revision: 263552 URL: http://llvm.org/viewvc/llvm-project?rev=263552=rev Log: [OpenMP] Base support for target directive codegen on NVPTX device. Summary: This patch adds base support for codegen of the target directive on the NVPTX device.

r259418 - Undoing commit r259366 to debug buildbot failure.

2016-02-01 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Mon Feb 1 16:02:05 2016 New Revision: 259418 URL: http://llvm.org/viewvc/llvm-project?rev=259418=rev Log: Undoing commit r259366 to debug buildbot failure. > http://reviews.llvm.org/D16758 Modified: cfe/trunk/include/clang/Basic/OpenMPKinds.h

r259464 - [OpenMP] Prevent nesting of target constructs within target code execution regions.

2016-02-01 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Mon Feb 1 22:00:47 2016 New Revision: 259464 URL: http://llvm.org/viewvc/llvm-project?rev=259464=rev Log: [OpenMP] Prevent nesting of target constructs within target code execution regions. Summary: This patch enhances Sema to check for the following restriction: OpenMP

r259366 - [OpenMP] Prevent nesting of target constructs within target code execution regions.

2016-02-01 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Mon Feb 1 10:32:47 2016 New Revision: 259366 URL: http://llvm.org/viewvc/llvm-project?rev=259366=rev Log: [OpenMP] Prevent nesting of target constructs within target code execution regions. Summary: This patch enhances Sema to check for the following restriction: OpenMP

r258502 - [OpenMP] Sema for depend clause on target exit data directive.

2016-01-22 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Fri Jan 22 08:58:21 2016 New Revision: 258502 URL: http://llvm.org/viewvc/llvm-project?rev=258502=rev Log: [OpenMP] Sema for depend clause on target exit data directive. Summary: Accept depend clause on target exit data directive in sema and add test cases. Reviewers:

r258425 - [OpenMP] Check for at least one map clause on target data directive.

2016-01-21 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Thu Jan 21 13:57:55 2016 New Revision: 258425 URL: http://llvm.org/viewvc/llvm-project?rev=258425=rev Log: [OpenMP] Check for at least one map clause on target data directive. Summary: Adds the following restriction in the OpenMP specifications. OpenMP [2.10.1,

r258441 - [OpenMP] Parsing + Sema for nowait clause on target directive

2016-01-21 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Thu Jan 21 16:18:28 2016 New Revision: 258441 URL: http://llvm.org/viewvc/llvm-project?rev=258441=rev Log: [OpenMP] Parsing + Sema for nowait clause on target directive Summary: Allow nowait clause on target directive in sema and add test cases. Reviewers: ABataev

r258457 - [OpenMP] Parsing + Sema for nowait clause on target enter data directive.

2016-01-21 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Thu Jan 21 18:03:50 2016 New Revision: 258457 URL: http://llvm.org/viewvc/llvm-project?rev=258457=rev Log: [OpenMP] Parsing + Sema for nowait clause on target enter data directive. Summary: Accept nowait clause on target enter data directive in sema and add test cases.

r258460 - [OpenMP] Sema for depend clause on target directive.

2016-01-21 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Thu Jan 21 18:49:21 2016 New Revision: 258460 URL: http://llvm.org/viewvc/llvm-project?rev=258460=rev Log: [OpenMP] Sema for depend clause on target directive. Summary: Accept depend clause on target directive in sema and add test cases. Reviewers: ABataev Differential

r258459 - [OpenMP] Parsing + Sema for nowait clause on target exit data directive.

2016-01-21 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Thu Jan 21 18:22:05 2016 New Revision: 258459 URL: http://llvm.org/viewvc/llvm-project?rev=258459=rev Log: [OpenMP] Parsing + Sema for nowait clause on target exit data directive. Summary: Accept nowait clause on target exit data directive in sema and add test cases.

r258466 - [OpenMP] Sema for depend clause on target enter data directive.

2016-01-21 Thread Arpith Chacko Jacob via cfe-commits
Author: arpith Date: Thu Jan 21 19:09:37 2016 New Revision: 258466 URL: http://llvm.org/viewvc/llvm-project?rev=258466=rev Log: [OpenMP] Sema for depend clause on target enter data directive. Summary: Accept depend clause on target enter data directive in sema and add test cases. Reviewers: