aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorShilei Tian <i@tianshilei.me>2023-10-05 17:34:40 -0400
committerShilei Tian <i@tianshilei.me>2023-10-05 17:38:06 -0400
commitd6254e1b2e6d1792d3a7085bd05d86adce15757e (patch)
treefeee97a37ebbb27e1ef78f331c0b1882ec66c30d /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent7a46baa465c49db84b7b5f8fa9ab847ec1da3ce4 (diff)
downloadllvm-d6254e1b2e6d1792d3a7085bd05d86adce15757e.zip
llvm-d6254e1b2e6d1792d3a7085bd05d86adce15757e.tar.gz
llvm-d6254e1b2e6d1792d3a7085bd05d86adce15757e.tar.bz2
Introduce the initial support for OpenMP kernel language (#66844)
This patch starts the support for OpenMP kernel language, basically to write OpenMP target region in SIMT style, similar to kernel languages such as CUDA. What included in this first patch is the `ompx_bare` clause for `target teams` directive. When `ompx_bare` exists, globalization is disabled such that local variables will not be globalized. The runtime init/deinit function calls will not be emitted. That being said, almost all OpenMP executable directives are not supported in the region, such as parallel, task. This patch doesn't include the Sema checks for that, so the use of them is UB. Simple directives, such as atomic, can be used. We provide a set of APIs (for C, they are prefix with `ompx_`; for C++, they are in `ompx` namespace) to get thread id, block id, etc. Please refer to https://tianshilei.me/wp-content/uploads/llvm-hpc-2023.pdf for more details.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
0 files changed, 0 insertions, 0 deletions