llvm-project
77341388 - [mlir][OpenMP] allow cancellation to not be directly nested (#134084)

Commit
238 days ago
[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).
Author
Parents
Loading