Commit 9650973e authored by Tom Eccles's avatar Tom Eccles
Browse files

[MLIR][OpenMP] Add cleanup region to omp.declare_reduction

Currently, by-ref reductions will allocate the per-thread reduction
variable in the initialization region. Adding a cleanup region allows
that allocation to be undone. This will allow flang to support reduction
of arrays stored on the heap.
parent 9f68c844
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment