aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorShilei Tian <i@tianshilei.me>2023-09-29 13:11:09 -0400
committerGitHub <noreply@github.com>2023-09-29 13:11:09 -0400
commite997dca3333823ffe2ea3aea288299f551532dcd (patch)
tree3d36fb79d09be521cbca6daad46e7647dbeb8742 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parent2fc90afdac451b49d67c72bd41a99886811dd36c (diff)
downloadllvm-e997dca3333823ffe2ea3aea288299f551532dcd.zip
llvm-e997dca3333823ffe2ea3aea288299f551532dcd.tar.gz
llvm-e997dca3333823ffe2ea3aea288299f551532dcd.tar.bz2
[OpenMP] 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. For more details, you can refer to https://tianshilei.me/wp-content/uploads/llvm-hpc-2023.pdf.
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
0 files changed, 0 insertions, 0 deletions