[all-commits] [llvm/llvm-project] 07e16a: [Flang][OpenMP] Add implementation of privatisation
kiranchandramohan via All-commits
all-commits at lists.llvm.org
Mon Apr 11 02:20:52 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 07e16a2aae68a02629cbcb34a0c0b12cb84754f8
https://github.com/llvm/llvm-project/commit/07e16a2aae68a02629cbcb34a0c0b12cb84754f8
Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
Date: 2022-04-11 (Mon, 11 Apr 2022)
Changed paths:
M flang/include/flang/Lower/AbstractConverter.h
M flang/lib/Lower/Bridge.cpp
M flang/lib/Lower/OpenMP.cpp
M flang/lib/Optimizer/Builder/FIRBuilder.cpp
A flang/test/Lower/OpenMP/omp-parallel-firstprivate-clause-scalar.f90
A flang/test/Lower/OpenMP/omp-parallel-private-clause.f90
Log Message:
-----------
[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: Jean Perier <jperier at nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>
Co-authored-by: Peter Klausler <pklausler at nvidia.com>
Co-authored-by: Valentin Clement <clementval at gmail.com>
Co-authored-by: Sourabh Singh Tomar <SourabhSingh.Tomar at amd.com>
Co-authored-by: Nimish Mishra <neelam.nimish at gmail.com>
Co-authored-by: Peixin-Qiao <qiaopeixin at huawei.com>
More information about the All-commits
mailing list