Revert "[flang][OpenMP] Lowering support for default clause"This reverts commit 05e6fce84fd39d150195b8928561f2c90c71e538.
[flang][OpenMP] Lowering support for default clauseThis patch adds lowering support for default clause.1. During symbol resolution in semantics, should the enclosing context havea default data s
[flang][OpenMP] Lowering support for default clauseThis patch adds lowering support for default clause.1. During symbol resolution in semantics, should the enclosing context havea default data sharing clause defined and a `parser::Name` is not attachedto 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 <[email protected]>Reviewed By: kiranchandramohanDifferential Revision: https://reviews.llvm.org/D123930
show more ...
[flang] Correct IsHostAssociated() to be true for BLOCK constructsThe predicate IsHostAssocited() was implemented in a way that wouldreturn true only for cases of host association into a module or
[flang] Correct IsHostAssociated() to be true for BLOCK constructsThe predicate IsHostAssocited() was implemented in a way that wouldreturn true only for cases of host association into a module or innersubprogram. Technically, the use of a name in a BLOCK constructthat is not declared therein is considered in the Fortran standardto also be a form of host association, and this matters when doingerror checking on DATA statements.Differential Revision: https://reviews.llvm.org/D130388
[flang][OpenMP] Added semantic checks for hint clauseThis patch improves semantic checks for hint clause.It checks "hint-expression is a constant expressionthat evaluates to a scalar value with k
[flang][OpenMP] Added semantic checks for hint clauseThis patch improves semantic checks for hint clause.It checks "hint-expression is a constant expressionthat evaluates to a scalar value with kind`omp_sync_hint_kind` and a value that is a validsynchronization hint."Reviewed By: peixinDifferential Revision: https://reviews.llvm.org/D127615
[flang][OpenMP] Allow default(none) to access variables with PARAMETER attributeThis patch fixes https://github.com/flang-compiler/f18-llvm-project/issues/1351.Concretely, data-sharing attributes
[flang][OpenMP] Allow default(none) to access variables with PARAMETER attributeThis patch fixes https://github.com/flang-compiler/f18-llvm-project/issues/1351.Concretely, data-sharing attributes on PARAMETER data used in a blockwith DEFAULT(NONE) should be ignored.Reviewed By: kiranchandramohanDifferential Revision: https://reviews.llvm.org/D129444
[flang][OpenMP] Add one semantic check for data-sharing clausesAs OpenMP 5.0, for firstprivate, lastprivate, copyin, and copyprivateclauses, if the list item is a polymorphic variable with the all
[flang][OpenMP] Add one semantic check for data-sharing clausesAs OpenMP 5.0, for firstprivate, lastprivate, copyin, and copyprivateclauses, if the list item is a polymorphic variable with the allocatableattribute, the behavior is unspecified.Reviewed By: kiranchandramohanDifferential Revision: https://reviews.llvm.org/D127601
[NFC] Move flang OpenMP semantic tests under one single directoryTo be consistent with OpenACC and will find the tests in one singledirectory for OpenMP.Reviewed By: kiranchandramohanDifferent
[NFC] Move flang OpenMP semantic tests under one single directoryTo be consistent with OpenACC and will find the tests in one singledirectory for OpenMP.Reviewed By: kiranchandramohanDifferential Revision: https://reviews.llvm.org/D127529