13#ifndef FORTRAN_LOWER_OPENMP_PRIVATEREDUCTIONUTILS_H
14#define FORTRAN_LOWER_OPENMP_PRIVATEREDUCTIONUTILS_H
16#include "mlir/IR/Location.h"
17#include "mlir/IR/Value.h"
38enum class DeclOperationKind {
40 FirstPrivateOrLocalInit,
43inline bool isPrivatization(DeclOperationKind kind) {
44 return (kind == DeclOperationKind::FirstPrivateOrLocalInit) ||
45 (kind == DeclOperationKind::PrivateOrLocal);
47inline bool isReduction(DeclOperationKind kind) {
48 return kind == DeclOperationKind::Reduction;
57 mlir::Value scalarInitValue, mlir::Block *initBlock,
58 mlir::Value allocatedPrivVarArg, mlir::Value moldArg,
59 mlir::Region &cleanupRegion, DeclOperationKind kind,
60 const Fortran::semantics::Symbol *sym =
nullptr,
61 bool cannotHaveNonDefaultLowerBounds =
false,
bool isDoConcurrent =
false);
69fir::ShapeShiftOp
getShapeShift(fir::FirOpBuilder &builder, mlir::Location loc,
71 bool cannotHaveNonDefaultLowerBounds =
false,
72 bool useDefaultLowerBounds =
false);
Definition AbstractConverter.h:85
Definition FIRBuilder.h:55
Definition ParserActions.h:24
void populateByRefInitAndCleanupRegions(AbstractConverter &converter, mlir::Location loc, mlir::Type argType, mlir::Value scalarInitValue, mlir::Block *initBlock, mlir::Value allocatedPrivVarArg, mlir::Value moldArg, mlir::Region &cleanupRegion, DeclOperationKind kind, const Fortran::semantics::Symbol *sym=nullptr, bool cannotHaveNonDefaultLowerBounds=false, bool isDoConcurrent=false)
Definition PrivateReductionUtils.cpp:675
fir::ShapeShiftOp getShapeShift(fir::FirOpBuilder &builder, mlir::Location loc, mlir::Value box, bool cannotHaveNonDefaultLowerBounds=false, bool useDefaultLowerBounds=false)
Definition PrivateReductionUtils.cpp:137
Definition bit-population-count.h:20
Definition AbstractConverter.h:34
Definition AbstractConverter.h:29