Commit 83433d9
authored
[OpenMP][IRBuilder] Handle
Fixes #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.target ... nowait when codegen targets host (#124720)1 parent 1b551e7 commit 83433d9
File tree
2 files changed
+38
-5
lines changed- llvm/lib/Frontend/OpenMP
- mlir/test/Target/LLVMIR
2 files changed
+38
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7258 | 7258 | | |
7259 | 7259 | | |
7260 | 7260 | | |
| 7261 | + | |
7261 | 7262 | | |
7262 | | - | |
7263 | | - | |
7264 | | - | |
| 7263 | + | |
| 7264 | + | |
| 7265 | + | |
| 7266 | + | |
7265 | 7267 | | |
7266 | 7268 | | |
7267 | 7269 | | |
| |||
7310 | 7312 | | |
7311 | 7313 | | |
7312 | 7314 | | |
7313 | | - | |
| 7315 | + | |
| 7316 | + | |
7314 | 7317 | | |
| 7318 | + | |
7315 | 7319 | | |
7316 | 7320 | | |
7317 | 7321 | | |
| |||
7333 | 7337 | | |
7334 | 7338 | | |
7335 | 7339 | | |
7336 | | - | |
| 7340 | + | |
7337 | 7341 | | |
7338 | 7342 | | |
7339 | 7343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments