aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Lower/OpenMP/Atomic.h
blob: 96db4d7e90c8d5c06230395aac8a4fc66c24dee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//===-- Atomic.h -- Lowering of atomic constructs -------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef FORTRAN_LOWER_OPENMP_ATOMIC_H
#define FORTRAN_LOWER_OPENMP_ATOMIC_H

namespace Fortran {
namespace lower {
class AbstractConverter;
class SymMap;

namespace pft {
struct Evaluation;
}
} // namespace lower

namespace parser {
struct OpenMPAtomicConstruct;
}

namespace semantics {
class SemanticsContext;
}
} // namespace Fortran

namespace Fortran::lower::omp {
void lowerAtomic(AbstractConverter &converter, SymMap &symTable,
                 semantics::SemanticsContext &semaCtx, pft::Evaluation &eval,
                 const parser::OpenMPAtomicConstruct &construct);
}

#endif // FORTRAN_LOWER_OPENMP_ATOMIC_H