[flang][OpenMP] Handle lastprivate on sections construct
authorNimish Mishra <neelam.nimish@gmail.com>
Mon, 27 Feb 2023 11:54:02 +0000 (17:24 +0530)
committerNimish Mishra <neelam.nimish@gmail.com>
Mon, 27 Feb 2023 11:59:39 +0000 (17:29 +0530)
commitf49b6afc231242dfee027d5da69734836097cd43
tree959fb1ed9625d74362bc78e28b13d5573b53df24
parent614cd721e1c379ab6926687fd81167bd8f9b0179
[flang][OpenMP] Handle lastprivate on sections construct

This patch adds support for lastprivate on sections construct.
One omp.sections operation can have several omp.section operation. As such, the privatization happens in the lexically last omp.section operation.

Reviewed By: kiranchandramohan, peixin

Differential Revision: https://reviews.llvm.org/D133686
flang/lib/Lower/OpenMP.cpp
flang/test/Lower/OpenMP/sections.f90