diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2016-04-28 09:15:06 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2016-04-28 09:15:06 +0000 |
commit | 2b19a6fe539d221472c92715dc90c56cb17854bd (patch) | |
tree | 62a806881bcde221529ade2de82fd31d70c8a962 /lldb/packages/Python/lldbsuite/test | |
parent | 35e9ea38127b99a261f946a415d3641538b8baa3 (diff) | |
download | bcm5719-llvm-2b19a6fe539d221472c92715dc90c56cb17854bd.tar.gz bcm5719-llvm-2b19a6fe539d221472c92715dc90c56cb17854bd.zip |
[OPENMP 4.5] Codegen for 'grainsize/num_tasks' clauses of 'taskloop'
directive.
OpenMP 4.5 defines 'taskloop' directive and 2 additional clauses
'grainsize' and 'num_tasks' for this directive. Patch adds codegen for
these clauses.
These clauses are generated as arguments of the '__kmpc_taskloop'
libcall and are encoded the following way:
void __kmpc_taskloop(ident_t *loc, int gtid, kmp_task_t *task, int if_val, kmp_uint64 *lb, kmp_uint64 *ub, kmp_int64 st, int nogroup, int sched, kmp_uint64 grainsize, void *task_dup);
If 'grainsize' is specified, 'sched' argument must be set to '1' and
'grainsize' argument must be set to the value of the 'grainsize' clause.
If 'num_tasks' is specified, 'sched' argument must be set to '2' and
'grainsize' argument must be set to the value of the 'num_tasks' clause.
It is possible because these 2 clauses are mutually exclusive and can't
be used at the same time on the same directive.
If none of these clauses is specified, 'sched' argument must be set to
'0'.
llvm-svn: 267862
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions