| 1 | //===-- Atomic.h -- Lowering of atomic constructs -------------------------===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | #ifndef FORTRAN_LOWER_OPENMP_ATOMIC_H |
| 9 | #define FORTRAN_LOWER_OPENMP_ATOMIC_H |
| 10 | |
| 11 | namespace Fortran { |
| 12 | namespace lower { |
| 13 | class AbstractConverter; |
| 14 | class SymMap; |
| 15 | |
| 16 | namespace pft { |
| 17 | struct Evaluation; |
| 18 | } |
| 19 | } // namespace lower |
| 20 | |
| 21 | namespace parser { |
| 22 | struct OpenMPAtomicConstruct; |
| 23 | } |
| 24 | |
| 25 | namespace semantics { |
| 26 | class SemanticsContext; |
| 27 | } |
| 28 | } // namespace Fortran |
| 29 | |
| 30 | namespace Fortran::lower::omp { |
| 31 | void lowerAtomic(AbstractConverter &converter, SymMap &symTable, |
| 32 | semantics::SemanticsContext &semaCtx, pft::Evaluation &eval, |
| 33 | const parser::OpenMPAtomicConstruct &construct); |
| 34 | } |
| 35 | |
| 36 | #endif // FORTRAN_LOWER_OPENMP_ATOMIC_H |
| 37 | |