Chaitanya
4a3bf27c69
[OpenMP] Introduce omp.target_allocmem and omp.target_freemem omp dialect ops. ( #145464 )
...
This PR introduces two new ops in omp dialect, omp.target_allocmem and
omp.target_freemem.
omp.target_allocmem: Allocates heap memory on device. Will be lowered to
omp_target_alloc call in llvm.
omp.target_freemem: Deallocates heap memory on device. Will be lowered
to omp+target_free call in llvm.
Example:
%1 = omp.target_allocmem %device : i32, i64
omp.target_freemem %device, %1 : i32, i64
The work in this PR is C-P/inspired from @ivanradanov commit from
coexecute implementation:
[Add fir omp target alloc and free
ops](be860ac8ba
)
[Lower omp_target_{alloc,free} to
llvm](6e2d584dc9
)
2025-08-18 18:15:11 +05:30
..
2025-07-16 14:12:27 -07:00
2025-08-14 13:39:55 +08:00
2025-07-10 15:23:57 -07:00
2025-02-28 09:50:05 +01:00
2025-01-16 12:34:38 -08:00
2025-02-28 09:50:05 +01:00
2025-02-28 09:50:05 +01:00
2025-05-09 10:55:21 +08:00
2025-07-17 23:52:48 -04:00
2025-07-17 23:52:48 -04:00
2025-05-29 13:42:57 -07:00
2025-01-16 12:34:38 -08:00
2025-01-16 12:34:38 -08:00
2025-02-28 09:50:05 +01:00
2025-05-29 13:42:57 -07:00
2025-07-17 23:52:48 -04:00
2025-07-14 09:41:42 -07:00
2025-06-06 10:48:07 -05:00
2025-06-06 10:48:07 -05:00
2025-03-14 08:25:05 -07:00
2025-05-29 13:42:57 -07:00
2025-05-29 13:42:57 -07:00
2025-03-03 10:01:54 +01:00
2025-01-31 09:35:26 +00:00
2025-06-11 21:49:01 -04:00
2025-06-17 16:14:13 -07:00
2025-04-17 14:26:36 -04:00
2025-05-29 13:42:57 -07:00
2025-05-20 16:11:27 +02:00
2025-01-07 08:35:43 -08:00
2025-07-04 14:50:29 +01:00
2025-06-10 13:09:32 -05:00
2025-04-25 06:57:56 -07:00
2025-08-12 16:43:44 -07:00
2025-05-29 13:42:57 -07:00
2025-05-19 13:59:09 +02:00
2025-04-30 08:46:33 -07:00
2025-05-19 15:02:53 -07:00
2025-05-19 15:02:53 -07:00
2025-02-28 09:50:05 +01:00
2025-07-11 06:39:30 +02:00
2025-05-19 13:59:09 +02:00
2025-05-19 13:59:09 +02:00
2025-05-29 13:42:57 -07:00
2025-05-29 13:42:57 -07:00
2025-07-14 09:40:42 -07:00
2025-05-29 13:42:57 -07:00
2025-04-07 06:51:02 -07:00
2025-07-14 07:34:29 +02:00
2025-03-14 08:25:05 -07:00
2025-06-12 05:58:55 +02:00
2025-08-18 18:15:11 +05:30
2025-03-13 16:03:19 +01:00
2025-02-28 09:50:05 +01:00
2025-05-29 13:42:57 -07:00
2025-01-16 12:34:38 -08:00
2025-02-12 10:14:00 +01:00
2025-05-29 13:42:57 -07:00
2025-08-12 16:43:44 -07:00
2025-07-04 14:50:29 +01:00
2025-02-05 18:24:47 +00:00
2025-02-21 10:50:52 -08:00
2025-03-03 14:43:43 -05:00
2025-03-03 14:43:43 -05:00
2025-03-03 14:43:43 -05:00
2025-03-12 09:55:05 +01:00
2025-05-30 17:35:41 +01:00
2025-03-12 09:55:05 +01:00
2025-03-12 09:55:05 +01:00
2025-03-12 09:55:05 +01:00
2025-03-12 09:55:05 +01:00
2025-03-12 09:55:05 +01:00
2025-03-12 09:55:05 +01:00
2025-03-12 09:55:05 +01:00
2025-03-12 09:55:05 +01:00
2025-05-30 17:35:41 +01:00
2025-04-17 14:26:36 -04:00
2025-04-15 05:43:32 -07:00
2025-03-12 09:55:05 +01:00
2025-03-12 09:55:05 +01:00
2025-04-25 06:57:56 -07:00
2025-04-15 05:43:32 -07:00
2025-05-30 17:35:41 +01:00
2025-06-10 16:46:13 +02:00
2025-04-16 17:15:15 -07:00
2025-05-29 13:42:57 -07:00
2025-02-12 10:14:00 +01:00
2025-05-14 07:07:57 -07:00
2025-05-02 09:03:20 -07:00
2025-05-02 09:03:20 -07:00