Re: [PATCH] D18286: [OPENMP] private and firstprivate clauses of teams code generation for nvptx

2016-03-22 Thread Carlo Bertolli via cfe-commits
carlo.bertolli added a comment. Hi Alexey Thanks for your comment. The suggested change will not work as I intended in my patch when using the host as a device. This happens when you select the following options: -fomptargets=powerpc64le-ibm-linux-gnu -fopenmp-is-device In this case we generat

Re: [PATCH] D18286: [OPENMP] private and firstprivate clauses of teams code generation for nvptx

2016-03-22 Thread Carlo Bertolli via cfe-commits
carlo.bertolli updated this revision to Diff 51285. carlo.bertolli added a comment. To make clear my comment I an updating the patch following Alexey's comment and modifying it to make it work. You can see that now we have the following check: CGM.getTarget().getTriple().getArch() == llvm::Triple

Re: [PATCH] D18286: [OPENMP] private and firstprivate clauses of teams code generation for nvptx

2016-03-24 Thread Carlo Bertolli via cfe-commits
carlo.bertolli added a comment. Hi Jonas Thanks for your comment. That scheme would not work for #parallel on the gpu in case we do not want to inline the parallel region. There are patches coming in which that is going to happen so I think that we really need to distinguish between different p

Re: [PATCH] D18286: [OPENMP] private and firstprivate clauses of teams code generation for nvptx

2016-03-24 Thread Carlo Bertolli via cfe-commits
carlo.bertolli added a comment. Hi Thinking more carefully, I believe you are right - no, it is not. I guess we would not call at all shouldEmitInlinedTeamsDirective for the case of paralle. Thanks! Repository: rL LLVM http://reviews.llvm.org/D18286 _

[PATCH] D18474: [OPENMP] Enable correct generation of runtime call when target directive is separated from teams directive by multiple curly brackets

2016-03-25 Thread Carlo Bertolli via cfe-commits
carlo.bertolli created this revision. carlo.bertolli added reviewers: ABataev, sfantao, Hahnfeld. carlo.bertolli added subscribers: arpith-jacob, caomhin, cfe-commits. carlo.bertolli set the repository for this revision to rL LLVM. This patch fixes a bug in code generation of the correct OpenMP ru

Re: [PATCH] D18474: [OPENMP] Enable correct generation of runtime call when target directive is separated from teams directive by multiple curly brackets

2016-03-25 Thread Carlo Bertolli via cfe-commits
carlo.bertolli added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:4257 @@ +4256,3 @@ +hasEnclosingTeams(const Stmt *TargetBody) { + if(auto *TeamsDir = dyn_cast(TargetBody)) return TeamsDir; + sfantao wrote: > I think that this can be simplified t

Re: [PATCH] D18474: [OPENMP] Enable correct generation of runtime call when target directive is separated from teams directive by multiple curly brackets

2016-03-25 Thread Carlo Bertolli via cfe-commits
carlo.bertolli updated this revision to Diff 51676. carlo.bertolli added a comment. Simplify the search function and generalize by using a template. Repository: rL LLVM http://reviews.llvm.org/D18474 Files: lib/CodeGen/CGOpenMPRuntime.cpp test/OpenMP/teams_codegen.cpp Index: test/OpenMP

Re: [PATCH] D15220: [OPENMP] dist_schedule clause for distribute directive

2016-01-05 Thread Carlo Bertolli via cfe-commits
carlo.bertolli updated this revision to Diff 44012. carlo.bertolli marked an inline comment as done. carlo.bertolli added a comment. Update to dist_schedule patch, as requested: show whole context and add ast print regression test. Repository: rL LLVM http://reviews.llvm.org/D15220 Files:

Re: [PATCH] D15220: [OPENMP] dist_schedule clause for distribute directive

2016-01-14 Thread Carlo Bertolli via cfe-commits
carlo.bertolli updated this revision to Diff 44912. carlo.bertolli added a comment. Remove duplicated error-messages and replace with error-messages2 and 3 Repository: rL LLVM http://reviews.llvm.org/D15220 Files: include/clang/AST/OpenMPClause.h include/clang/AST/RecursiveASTVisitor.h

r257917 - Add OpenMP dist_schedule clause to distribute directive and related regression tests.

2016-01-15 Thread Carlo Bertolli via cfe-commits
Author: cbertol Date: Fri Jan 15 12:50:31 2016 New Revision: 257917 URL: http://llvm.org/viewvc/llvm-project?rev=257917&view=rev Log: Add OpenMP dist_schedule clause to distribute directive and related regression tests. Added: cfe/trunk/test/OpenMP/distribute_dist_schedule_ast_print.cpp

Re: [PATCH] D15220: [OPENMP] dist_schedule clause for distribute directive

2016-01-15 Thread Carlo Bertolli via cfe-commits
carlo.bertolli added a comment. Committed revision 257917. Repository: rL LLVM http://reviews.llvm.org/D15220 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15220: [OPENMP] dist_schedule clause for distribute directive

2016-01-15 Thread Carlo Bertolli via cfe-commits
carlo.bertolli closed this revision. carlo.bertolli added a comment. Please notify of any issues. Repository: rL LLVM http://reviews.llvm.org/D15220 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

r258140 - Activate OpenMP private clause for target construct and a regression test.

2016-01-19 Thread Carlo Bertolli via cfe-commits
Author: cbertol Date: Tue Jan 19 10:53:55 2016 New Revision: 258140 URL: http://llvm.org/viewvc/llvm-project?rev=258140&view=rev Log: Activate OpenMP private clause for target construct and a regression test. Added: cfe/trunk/test/OpenMP/target_private_messages.cpp Modified: cfe/trunk/inc

[PATCH] D15125: [OPENMP] 'omp distribute' directive basic support.

2015-12-01 Thread Carlo Bertolli via cfe-commits
carlo.bertolli created this revision. carlo.bertolli added reviewers: hfinkel, ABataev, rjmccall. carlo.bertolli added subscribers: sfantao, cfe-commits. carlo.bertolli set the repository for this revision to rL LLVM. This patch includes parsing and semantic analysis for 'omp distribute' directiv

Re: [PATCH] D15125: [OPENMP] 'omp distribute' directive basic support.

2015-12-03 Thread Carlo Bertolli via cfe-commits
carlo.bertolli added inline comments. Comment at: include/clang/AST/OpenMPClause.h:667 @@ -666,3 +666,3 @@ OpenMPScheduleClauseKind Kind; - /// \brief Start location of the schedule ind in source code. + /// \brief Start location of the schedule kind in source code. Source

Re: [PATCH] D15125: [OPENMP] 'omp distribute' directive basic support.

2015-12-03 Thread Carlo Bertolli via cfe-commits
carlo.bertolli updated this revision to Diff 41712. carlo.bertolli marked 15 inline comments as done. carlo.bertolli added a comment. Thanks very much for your kind comments and patience at some trivial errors on my side. This new version of the patch addresses all your concerns and it removes

Re: [PATCH] D15125: [OPENMP] 'omp distribute' directive basic support.

2015-12-04 Thread Carlo Bertolli via cfe-commits
carlo.bertolli updated this revision to Diff 41980. carlo.bertolli marked 7 inline comments as done. carlo.bertolli added a comment. This updated patch includes taskloop simd changes form the trunk and it addresses the second round of comments. Repository: rL LLVM http://reviews.llvm.org/D15

Re: [PATCH] D15125: [OPENMP] 'omp distribute' directive basic support.

2015-12-04 Thread Carlo Bertolli via cfe-commits
carlo.bertolli added inline comments. Comment at: lib/Basic/OpenMPKinds.cpp:460 @@ -449,4 +459,3 @@ DKind == OMPD_single || DKind == OMPD_parallel_for || - DKind == OMPD_parallel_for_simd || - DKind == OMPD_parallel_sections; // TODO add next directives.

Re: [PATCH] D15220: [OPENMP] dist_schedule clause for distribute directive

2015-12-04 Thread Carlo Bertolli via cfe-commits
carlo.bertolli updated this revision to Diff 41983. carlo.bertolli added a comment. Update dist_schedule patch to reflect changes in distribute directive patch. Repository: rL LLVM http://reviews.llvm.org/D15220 Files: include/clang/AST/OpenMPClause.h include/clang/AST/RecursiveASTVisito

Re: [PATCH] D15220: [OPENMP] dist_schedule clause for distribute directive

2015-12-07 Thread Carlo Bertolli via cfe-commits
carlo.bertolli updated this revision to Diff 42070. carlo.bertolli added a comment. Added regression test. Repository: rL LLVM http://reviews.llvm.org/D15220 Files: include/clang/AST/OpenMPClause.h include/clang/AST/RecursiveASTVisitor.h include/clang/Basic/OpenMPKinds.def include/cl

r255001 - Add parse and sema for OpenMP distribute directive and all its clauses excluding dist_schedule.

2015-12-07 Thread Carlo Bertolli via cfe-commits
Author: cbertol Date: Mon Dec 7 22:21:03 2015 New Revision: 255001 URL: http://llvm.org/viewvc/llvm-project?rev=255001&view=rev Log: Add parse and sema for OpenMP distribute directive and all its clauses excluding dist_schedule. Added: cfe/trunk/test/OpenMP/distribute_ast_print.cpp cfe/

Re: [PATCH] D15125: [OPENMP] 'omp distribute' directive basic support.

2015-12-07 Thread Carlo Bertolli via cfe-commits
carlo.bertolli closed this revision. carlo.bertolli added a comment. This was committed in r255001. Many thanks for all your help. Repository: rL LLVM http://reviews.llvm.org/D15125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://

r255498 - Add parse and sema of OpenMP distribute directive with all clauses except dist_schedule

2015-12-14 Thread Carlo Bertolli via cfe-commits
Author: cbertol Date: Mon Dec 14 08:51:25 2015 New Revision: 255498 URL: http://llvm.org/viewvc/llvm-project?rev=255498&view=rev Log: Add parse and sema of OpenMP distribute directive with all clauses except dist_schedule Added: cfe/trunk/test/OpenMP/distribute_ast_print.cpp cfe/trunk/te

Re: [PATCH] D15125: [OPENMP] 'omp distribute' directive basic support.

2015-12-14 Thread Carlo Bertolli via cfe-commits
carlo.bertolli added a comment. Resubmitted at rev255498 Repository: rL LLVM http://reviews.llvm.org/D15125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2