llvm-project
e4020090 - [mlir][OpenMP] cancel(lation point) taskgroup LLVMIR (#137841)

Commit
348 days ago
[mlir][OpenMP] cancel(lation point) taskgroup LLVMIR (#137841) A cancel or cancellation point for taskgroup is always nested inside of a task inside of the taskgroup. For the task which is cancelled, it is that task which needs to be cleaned up: not the owning taskgroup. Therefore the cancellation branch handler is done in the conversion of the task not in conversion of taskgroup. I added a firstprivate clause to the test for cancel taskgroup to demonstrate that the block being branched to is the same block where mandatory cleanup code is added. Cancellation point follows exactly the same code path.
Author
Parents
Loading