diff options
author | Tom Eccles <tom.eccles@arm.com> | 2025-04-14 10:39:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-14 10:39:03 +0100 |
commit | 77341388a77b1442b3a54d745fc269dabb175f0c (patch) | |
tree | ab383969fc3a6493cb970d9dc09b038c83f46785 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | cbda72a5474112e6bc62d5c5978ada7581e80dad (diff) | |
download | llvm-77341388a77b1442b3a54d745fc269dabb175f0c.zip llvm-77341388a77b1442b3a54d745fc269dabb175f0c.tar.gz llvm-77341388a77b1442b3a54d745fc269dabb175f0c.tar.bz2 |
[mlir][OpenMP] allow cancellation to not be directly nested (#134084)
omp.cancel and omp.cancellationpoint contain an attribute describing the
type of parent construct which should be cancelled. e.g.
```
!$omp cancel do
```
Must be inside of a wsloop. Previously the verifer required the
immediate parent to be this operation. This is not quite right because
something like the following is valid:
```
!$omp parallel do
do i = 1, N
if (cond) then
!$omp cancel do
endif
enddo
```
This patch relaxes the verifier to only require that some parent
operation matches (not necessarily the immediate parent).
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions