llvm-project/openmp/libomptarget/plugins
Shilei Tian ca999f7191 [OpenMP][Offloading] Use bitset to indicate execution mode instead of value
The execution mode of a kernel is stored in a global variable, whose value means:
- 0 - SPMD mode
- 1 - indicates generic mode
- 2 - SPMD mode execution with generic mode semantics

We are going to add support for SIMD execution mode. It will be come with another
execution mode, such as SIMD-generic mode. As a result, this value-based indicator
is not flexible.

This patch changes to bitset based solution to encode execution mode. Each
position is:
[0] - generic mode
[1] - SPMD mode
[2] - SIMD mode (will be added later)

In this way, `0x1` is generic mode, `0x2` is SPMD mode, and `0x3` is SPMD mode
execution with generic mode semantics. In the future after we add the support for
SIMD mode, `0b1xx` will be in SIMD mode.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D110029
2021-09-22 11:40:52 -04:00
..
aarch64 Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
amdgpu [libomptarget][amdgpu] Precisely manage hsa lifetime 2021-09-09 17:28:11 +01:00
common [NFC][libomptarget] Remove redundant libelf dependency for elf_common. 2021-06-21 07:19:55 -07:00
cuda [OpenMP][Offloading] Use bitset to indicate execution mode instead of value 2021-09-22 11:40:52 -04:00
generic-elf-64bit/src [OpenMP][libomptarget] Minor fix in x86_64 plugin 2021-09-15 15:57:06 -05:00
ppc64 Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
ppc64le Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
remote [Libomptarget] Experimental Remote Plugin Fixes 2021-07-02 12:38:34 -04:00
ve [OpenMP] Add function for setting LIBOMPTARGET_INFO at runtime 2021-04-22 12:48:11 -04:00
x86_64 Update more file headers across all of the LLVM projects in the monorepo 2019-01-19 10:56:40 +00:00
CMakeLists.txt [libomptarget] Build amdgpu plugin by default 2021-03-15 20:12:01 +00:00
exports [OpenMP][Offloading] Add support for event related interfaces 2021-08-28 16:24:14 -04:00