Alexey Bataev
7292c29bb5
[OPENMP 4.5] Codegen for 'taskloop' directive.
...
The taskloop construct specifies that the iterations of one or more associated loops will be executed in parallel using OpenMP tasks. The iterations are distributed across tasks created by the construct and scheduled to be executed.
The next code will be generated for the taskloop directive:
#pragma omp taskloop num_tasks(N) lastprivate(j)
for( i=0; i<N*GRAIN*STRIDE-1; i+=STRIDE ) {
int th = omp_get_thread_num();
#pragma omp atomic
counter++;
#pragma omp atomic
th_counter[th]++;
j = i;
}
Generated code:
task = __kmpc_omp_task_alloc(NULL,gtid,1,sizeof(struct
task),sizeof(struct shar),&task_entry);
psh = task->shareds;
psh->pth_counter = &th_counter;
psh->pcounter = &counter;
psh->pj = &j;
task->lb = 0;
task->ub = N*GRAIN*STRIDE-2;
task->st = STRIDE;
__kmpc_taskloop(
NULL, // location
gtid, // gtid
task, // task structure
1, // if clause value
&task->lb, // lower bound
&task->ub, // upper bound
STRIDE, // loop increment
0, // 1 if nogroup specified
2, // schedule type: 0-none, 1-grainsize, 2-num_tasks
N, // schedule value (ignored for type 0)
(void*)&__task_dup_entry // tasks duplication routine
);
llvm-svn: 267395
2016-04-25 12:22:29 +00:00
..
2015-05-20 04:24:19 +00:00
2015-11-18 00:15:28 +00:00
2015-12-14 09:26:19 +00:00
2015-05-20 04:24:19 +00:00
2015-09-04 12:55:50 +00:00
2015-11-18 00:15:28 +00:00
2015-11-18 00:15:28 +00:00
2015-11-19 05:55:59 +00:00
2016-01-13 11:18:54 +00:00
2015-07-08 01:00:30 +00:00
2016-01-13 11:18:54 +00:00
2015-09-18 08:07:34 +00:00
2016-01-22 08:56:50 +00:00
2015-09-18 08:07:34 +00:00
2016-01-13 11:18:54 +00:00
2015-07-01 06:57:41 +00:00
2016-01-22 08:56:50 +00:00
2016-01-13 11:18:54 +00:00
2015-12-15 08:19:24 +00:00
2016-03-29 05:34:15 +00:00
2015-12-15 08:19:24 +00:00
2016-03-03 05:21:39 +00:00
2016-03-03 05:21:39 +00:00
2016-03-17 10:19:46 +00:00
2016-03-17 10:19:46 +00:00
2016-03-03 05:21:39 +00:00
2016-03-17 10:19:46 +00:00
2016-04-12 11:02:11 +00:00
2016-04-12 11:02:11 +00:00
2016-04-12 11:02:11 +00:00
2016-04-06 11:38:59 +00:00
2016-04-06 11:38:59 +00:00
2016-01-20 09:07:54 +00:00
2016-03-29 08:58:54 +00:00
2015-12-14 14:51:25 +00:00
2016-01-15 18:50:31 +00:00
2016-01-15 18:50:31 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2015-09-10 12:06:58 +00:00
2016-04-07 12:45:37 +00:00
2015-05-20 04:24:19 +00:00
2015-10-08 04:24:12 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-03-29 08:58:54 +00:00
2016-04-11 19:30:25 +00:00
2016-02-15 08:07:17 +00:00
2016-04-01 08:43:42 +00:00
2016-04-22 03:56:56 +00:00
2016-04-01 08:43:42 +00:00
2016-03-09 09:49:09 +00:00
2016-04-01 08:43:42 +00:00
2016-03-29 08:58:54 +00:00
2016-04-01 08:43:42 +00:00
2016-04-11 19:30:25 +00:00
2015-09-15 18:56:58 +00:00
2016-04-01 08:43:42 +00:00
2016-03-17 10:19:46 +00:00
2016-02-04 11:27:03 +00:00
2016-04-01 08:43:42 +00:00
2015-12-28 07:25:51 +00:00
2016-04-01 08:43:42 +00:00
2016-01-20 09:07:54 +00:00
2016-04-22 03:56:56 +00:00
2016-04-11 19:30:25 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-03-29 08:58:54 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-04-11 19:30:25 +00:00
2015-12-28 07:25:51 +00:00
2016-04-11 19:30:25 +00:00
2015-10-28 02:32:19 +00:00
2015-08-19 04:49:01 +00:00
2016-04-22 03:56:56 +00:00
2015-05-20 04:24:19 +00:00
2015-10-08 04:24:12 +00:00
2015-05-20 04:24:19 +00:00
2016-02-03 15:46:42 +00:00
2014-06-19 09:13:45 +00:00
2014-06-19 09:13:45 +00:00
2016-03-22 01:48:56 +00:00
2016-03-18 21:43:32 +00:00
2016-04-04 15:55:02 +00:00
2015-10-19 06:40:17 +00:00
2015-08-12 07:10:54 +00:00
2013-03-22 06:34:35 +00:00
2015-12-23 10:27:45 +00:00
2015-12-31 06:52:34 +00:00
2015-12-23 10:27:45 +00:00
2016-04-19 06:19:52 +00:00
2015-12-18 10:24:53 +00:00
2016-03-29 05:34:15 +00:00
2016-04-01 08:43:42 +00:00
2015-05-20 04:24:19 +00:00
2016-04-22 09:05:03 +00:00
2016-04-01 08:43:42 +00:00
2016-01-20 09:07:54 +00:00
2015-12-18 10:24:53 +00:00
2016-04-11 19:30:25 +00:00
2016-04-01 08:43:42 +00:00
2015-05-20 04:24:19 +00:00
2016-04-01 08:43:42 +00:00
2015-09-15 17:23:56 +00:00
2016-04-01 08:43:42 +00:00
2015-12-18 10:24:53 +00:00
2016-04-01 08:43:42 +00:00
2016-03-29 08:58:54 +00:00
2015-05-20 04:24:19 +00:00
2016-04-01 08:43:42 +00:00
2015-12-01 10:17:31 +00:00
2016-04-11 19:30:25 +00:00
2016-04-01 08:43:42 +00:00
2015-05-20 04:24:19 +00:00
2016-04-01 08:43:42 +00:00
2015-12-28 07:25:51 +00:00
2016-04-01 08:43:42 +00:00
2016-01-20 09:07:54 +00:00
2015-12-31 06:52:34 +00:00
2016-04-11 19:30:25 +00:00
2016-04-01 08:43:42 +00:00
2015-05-20 04:24:19 +00:00
2016-04-01 08:43:42 +00:00
2015-09-15 17:23:56 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-03-29 08:58:54 +00:00
2015-12-30 12:06:23 +00:00
2016-04-01 08:43:42 +00:00
2015-12-01 10:17:31 +00:00
2016-04-01 08:43:42 +00:00
2015-05-20 04:24:19 +00:00
2016-04-01 08:43:42 +00:00
2016-04-11 19:30:25 +00:00
2015-12-28 07:25:51 +00:00
2016-04-11 19:30:25 +00:00
2015-09-10 08:12:02 +00:00
2015-09-15 17:23:56 +00:00
2016-02-10 10:50:12 +00:00
2016-02-25 05:25:57 +00:00
2015-12-01 10:17:31 +00:00
2016-02-17 15:36:39 +00:00
2016-04-01 08:43:42 +00:00
2015-06-29 17:29:50 +00:00
2015-05-20 04:24:19 +00:00
2016-03-02 04:57:40 +00:00
2016-04-01 08:43:42 +00:00
2016-04-19 06:19:52 +00:00
2016-01-22 08:56:50 +00:00
2016-04-01 08:43:42 +00:00
2015-05-20 04:24:19 +00:00
2016-04-01 08:43:42 +00:00
2015-09-15 17:23:56 +00:00
2016-04-01 08:43:42 +00:00
2015-05-20 04:24:19 +00:00
2016-04-01 08:43:42 +00:00
2015-12-01 10:17:31 +00:00
2016-04-01 08:43:42 +00:00
2015-05-20 04:24:19 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2015-05-20 04:24:19 +00:00
2015-12-31 06:52:34 +00:00
2015-05-20 04:24:19 +00:00
2016-01-22 08:56:50 +00:00
2016-02-15 08:07:17 +00:00
2016-04-01 08:43:42 +00:00
2016-01-22 08:56:50 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-01-22 08:56:50 +00:00
2016-04-01 08:43:42 +00:00
2016-01-22 08:56:50 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-03-29 10:59:56 +00:00
2016-04-22 03:56:56 +00:00
2016-04-11 19:30:25 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2015-12-25 13:38:08 +00:00
2015-08-27 22:24:56 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-04-11 19:30:25 +00:00
2016-04-11 19:30:25 +00:00
2016-03-17 10:50:17 +00:00
2016-03-29 05:34:15 +00:00
2016-04-01 08:43:42 +00:00
2016-02-15 08:07:17 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2015-09-15 18:56:58 +00:00
2016-04-01 08:43:42 +00:00
2016-01-26 16:37:23 +00:00
2016-03-14 15:57:41 +00:00
2016-03-14 15:57:41 +00:00
2016-03-14 15:57:41 +00:00
2016-03-14 15:57:41 +00:00
2016-01-21 19:57:55 +00:00
2016-02-02 04:00:47 +00:00
2016-01-21 19:57:55 +00:00
2016-01-21 19:57:55 +00:00
2016-01-26 16:37:23 +00:00
2016-01-22 00:49:21 +00:00
2016-02-02 04:00:47 +00:00
2016-01-22 01:09:37 +00:00
2016-01-22 01:09:37 +00:00
2016-01-19 19:15:56 +00:00
2016-01-19 19:15:56 +00:00
2016-02-27 00:01:58 +00:00
2016-01-22 00:03:50 +00:00
2016-02-27 00:01:58 +00:00
2016-01-22 14:58:21 +00:00
2016-01-19 20:04:50 +00:00
2016-01-19 20:04:50 +00:00
2016-02-27 00:01:58 +00:00
2016-01-22 00:22:05 +00:00
2016-03-18 21:43:32 +00:00
2016-04-01 08:43:42 +00:00
2016-02-02 04:00:47 +00:00
2016-03-14 15:57:41 +00:00
2016-04-01 08:43:42 +00:00
2016-03-14 15:57:41 +00:00
2016-01-21 22:18:28 +00:00
2016-04-19 06:19:52 +00:00
2016-02-02 04:00:47 +00:00
2016-01-26 18:48:41 +00:00
2016-01-26 18:48:41 +00:00
2016-02-02 04:00:47 +00:00
2016-04-01 08:43:42 +00:00
2016-02-03 15:46:42 +00:00
2016-02-03 15:46:42 +00:00
2016-02-03 15:46:42 +00:00
2016-02-03 15:46:42 +00:00
2016-02-03 15:46:42 +00:00
2016-02-03 15:46:42 +00:00
2016-04-01 08:43:42 +00:00
2016-02-03 15:46:42 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-03-29 08:58:54 +00:00
2016-04-01 08:43:42 +00:00
2016-02-03 15:46:42 +00:00
2016-04-01 08:43:42 +00:00
2016-02-03 15:46:42 +00:00
2016-02-03 15:46:42 +00:00
2016-02-03 15:46:42 +00:00
2016-04-01 08:43:42 +00:00
2016-02-03 15:46:42 +00:00
2016-04-01 08:43:42 +00:00
2016-02-03 15:46:42 +00:00
2016-02-02 04:00:47 +00:00
2016-04-01 08:43:42 +00:00
2016-03-14 15:57:41 +00:00
2016-01-26 18:48:41 +00:00
2016-02-02 04:00:47 +00:00
2016-04-01 08:43:42 +00:00
2016-02-02 04:00:47 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-03-16 19:04:22 +00:00
2016-04-01 08:43:42 +00:00
2016-04-19 06:19:52 +00:00
2016-04-20 04:01:36 +00:00
2015-05-20 04:24:19 +00:00
2015-12-18 05:05:56 +00:00
2015-05-20 04:24:19 +00:00
2016-04-20 04:01:36 +00:00
2016-04-01 08:43:42 +00:00
2016-04-20 01:02:18 +00:00
2015-09-15 17:23:56 +00:00
2016-03-17 10:19:46 +00:00
2015-12-01 10:17:31 +00:00
2016-04-20 04:01:36 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2015-06-18 12:14:09 +00:00
2016-03-29 05:34:15 +00:00
2015-06-18 12:14:09 +00:00
2015-12-08 12:06:20 +00:00
2016-04-25 12:22:29 +00:00
2016-04-11 19:30:25 +00:00
2015-12-03 09:40:15 +00:00
2016-04-13 13:36:48 +00:00
2015-12-08 12:06:20 +00:00
2016-04-01 08:43:42 +00:00
2016-03-29 08:58:54 +00:00
2016-04-01 08:43:42 +00:00
2015-12-08 12:06:20 +00:00
2015-12-01 10:17:31 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2015-12-08 12:06:20 +00:00
2016-04-11 19:30:25 +00:00
2015-12-03 09:40:15 +00:00
2016-04-13 13:36:48 +00:00
2015-12-08 12:06:20 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-03-29 08:58:54 +00:00
2016-04-01 08:43:42 +00:00
2015-12-08 12:06:20 +00:00
2015-12-03 09:40:15 +00:00
2016-04-01 08:43:42 +00:00
2016-04-11 19:30:25 +00:00
2016-04-11 19:30:25 +00:00
2015-05-20 04:24:19 +00:00
2015-07-08 01:00:30 +00:00
2016-01-13 11:18:54 +00:00
2015-05-20 04:24:19 +00:00
2015-07-08 01:00:30 +00:00
2016-01-13 11:18:54 +00:00
2016-04-19 06:19:52 +00:00
2016-03-14 15:57:41 +00:00
2015-05-20 04:24:19 +00:00
2016-03-14 15:57:41 +00:00
2016-04-01 08:43:42 +00:00
2015-05-20 04:24:19 +00:00
2015-12-01 10:17:31 +00:00
2016-03-14 15:57:41 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2016-04-01 08:43:42 +00:00
2015-12-01 10:17:31 +00:00
2016-04-19 06:19:52 +00:00
2016-04-24 22:22:29 +00:00
2016-02-09 09:41:09 +00:00