[Flang][OpenMP] NFC: Refactor privatization code in Lowering 1/n
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Fri, 3 Mar 2023 13:57:41 +0000 (13:57 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Fri, 3 Mar 2023 15:45:51 +0000 (15:45 +0000)
commitb512580cffc645538834a6b6f2fc3d703df2e78c
tree56e9c5706c51bcd2776b4e43c92bea72b5af32f6
parenta180344589cacac31276a0b26a1988ea0017728b
[Flang][OpenMP] NFC: Refactor privatization code in Lowering 1/n

The code for handing privatization code has grown in complexity.
This patch begins an effort to refactor and simplify the code.
The refactoring will hopefully will make it modular and
enable privatization to be invoked in different places. This
patch moves the privatization related code into a class called
dataSharingProcessor.

Reviewed By: DavidTruby

Differential Revision: https://reviews.llvm.org/D144766
flang/lib/Lower/OpenMP.cpp