diff options
author | Kareem Ergawy <kareem.ergawy@amd.com> | 2025-01-28 12:57:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-28 12:57:40 +0100 |
commit | 83433d936195c612a51b54397f82ab0d97369d86 (patch) | |
tree | 5d7043f6262950b799e8ba698699639304aad364 /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | 1b551e76a2fec3a1ab7d36476ab99f2504e6f6c9 (diff) | |
download | llvm-83433d936195c612a51b54397f82ab0d97369d86.zip llvm-83433d936195c612a51b54397f82ab0d97369d86.tar.gz llvm-83433d936195c612a51b54397f82ab0d97369d86.tar.bz2 |
[OpenMP][IRBuilder] Handle `target ... nowait` when codegen targets host (#124720)
Fixes https://github.com/llvm/llvm-project/issues/124578
Handles the `nowait` clause for `omp.target` ops when the actual target
is the host (i.e. there is no target device). Rather than only checking
for the `HasNoWait` boolean, we also check for the presence/absence of a
`DeviceID` value. We only emit the target task if both are present.
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions