[all-commits] [llvm/llvm-project] 05e6fc: [flang][OpenMP] Lowering support for default clause
NimishMishra via All-commits
all-commits at lists.llvm.org
Tue Jul 26 01:40:53 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 05e6fce84fd39d150195b8928561f2c90c71e538
https://github.com/llvm/llvm-project/commit/05e6fce84fd39d150195b8928561f2c90c71e538
Author: Nimish Mishra <neelam.nimish at gmail.com>
Date: 2022-07-26 (Tue, 26 Jul 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/Semantics/resolve-directives.cpp
A flang/test/Lower/OpenMP/default-clause.f90
M flang/test/Lower/OpenMP/omp-parallel-lastprivate-clause-scalar.f90
A flang/test/Semantics/OpenMP/omp-default-clause.f90
Log Message:
-----------
[flang][OpenMP] Lowering support for default clause
This patch adds lowering support for default clause.
1. During symbol resolution in semantics, should the enclosing context have
a default data sharing clause defined and a `parser::Name` is not attached
to an explicit data sharing clause, the
`semantics::Symbol::Flag::OmpPrivate` flag (in case of `default(private)`)
and `semantics::Symbol::Flag::OmpFirstprivate` flag (in case of
`default(firstprivate)`) is added to the symbol.
2. During lowering, all symbols having either
`semantics::Symbol::Flag::OmpPrivate` or
`semantics::Symbol::Flag::OmpFirstprivate` flag are collected and
privatised appropriately.
Co-authored-by: Peixin Qiao <qiaopeixin at huawei.com>
Reviewed By: kiranchandramohan
Differential Revision: https://reviews.llvm.org/D123930
More information about the All-commits
mailing list