[all-commits] [llvm/llvm-project] 27afb3: [flang][OpenMP] Initial support the lowering of co...
PeixinQiao via All-commits
all-commits at lists.llvm.org
Fri Jun 24 00:35:14 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 27afb362b1e85dac21744b95ed9b48f7e9fd016c
https://github.com/llvm/llvm-project/commit/27afb362b1e85dac21744b95ed9b48f7e9fd016c
Author: Peixin-Qiao <qiaopeixin at huawei.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M flang/include/flang/Lower/AbstractConverter.h
M flang/include/flang/Lower/SymbolMap.h
M flang/lib/Lower/Bridge.cpp
M flang/lib/Lower/OpenMP.cpp
M flang/lib/Lower/SymbolMap.cpp
M flang/lib/Semantics/resolve-directives.cpp
A flang/test/Lower/OpenMP/copyin.f90
Log Message:
-----------
[flang][OpenMP] Initial support the lowering of copyin clause
This supports the lowering of copyin clause initially. The pointer,
allocatable, common block, polymorphic varaibles will be supported
later.
This also includes the following changes:
1. Resolve the COPYIN clause and make the entity as host associated.
2. Fix collectSymbolSet by adding one option to control collecting the
symbol itself or ultimate symbol of it so that it can be used
explicitly differentiate the host and associated variables in
host-association.
3. Add one helper function `lookupOneLevelUpSymbol` to differentiate the
usage of host and associated variables explicitly. The previous
lowering of firstprivate depends on the order of
`createHostAssociateVarClone` and `lookupSymbol` of host symbol. With
this fix, this dependence is removed.
4. Reuse `copyHostAssociateVar` for copying operation of COPYIN clause.
Reviewed By: kiranchandramohan, NimishMishra
Differential Revision: https://reviews.llvm.org/D127468
More information about the All-commits
mailing list