[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
Please register or sign in to comment