Skip to content
Commit 07e16a2a authored by Kiran Chandramohan's avatar Kiran Chandramohan
Browse files

[Flang][OpenMP] Add implementation of privatisation

Privatisation creates local copies of variables in the OpenMP region.
Two functions `createHostAssociateVarClone` and `copyHostAssociateVar`
are added to create a clone of the variable for basic privatisation and to
copy the contents for first-privatisation.

Note: Tests for more data-types will be added when the fir.do_loop is
upstreamed.

This is part of the upstreaming effort from the fir-dev branch in [1].
[1] https://github.com/flang-compiler/f18-llvm-project

Reviewed By: peixin, NimishMishra

Differential Revision: https://reviews.llvm.org/D122595



Co-authored-by: default avatarJean Perier <jperier@nvidia.com>
Co-authored-by: default avatarEric Schweitz <eschweitz@nvidia.com>
Co-authored-by: default avatarPeter Klausler <pklausler@nvidia.com>
Co-authored-by: default avatarValentin Clement <clementval@gmail.com>
Co-authored-by: default avatarSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Co-authored-by: default avatarNimish Mishra <neelam.nimish@gmail.com>
Co-authored-by: default avatarPeixin-Qiao <qiaopeixin@huawei.com>
parent 702d5de4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment