FLANG
PrivateReductionUtils.h
1//===-- Lower/OpenMP/PrivateReductionUtils.h --------------------*- C++ -*-===//
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//
9// Coding style: https://mlir.llvm.org/getting_started/DeveloperGuide/
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef FORTRAN_LOWER_OPENMP_PRIVATEREDUCTIONUTILS_H
14#define FORTRAN_LOWER_OPENMP_PRIVATEREDUCTIONUTILS_H
15
16#include "mlir/IR/Location.h"
17#include "mlir/IR/Value.h"
18
19namespace mlir {
20class Region;
21} // namespace mlir
22
23namespace fir {
24class FirOpBuilder;
25class ShapeShiftOp;
26} // namespace fir
27
28namespace Fortran {
29namespace lower {
30namespace omp {
31
35void populateByRefInitAndCleanupRegions(fir::FirOpBuilder &builder,
36 mlir::Location loc, mlir::Type argType,
37 mlir::Value scalarInitValue,
38 mlir::Block *initBlock,
39 mlir::Value allocatedPrivVarArg,
40 mlir::Value moldArg,
41 mlir::Region &cleanupRegion);
42
44fir::ShapeShiftOp getShapeShift(fir::FirOpBuilder &builder, mlir::Location loc,
45 mlir::Value box);
46
47} // namespace omp
48} // namespace lower
49} // namespace Fortran
50
51#endif // FORTRAN_LOWER_OPENMP_PRIVATEREDUCTIONUTILS_H
Definition: FIRBuilder.h:55
Definition: bit-population-count.h:20
Definition: AbstractConverter.h:31
Definition: AbstractConverter.h:27