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"
39enum class DeclOperationKind {
41 FirstPrivateOrLocalInit,
44inline bool isPrivatization(DeclOperationKind kind) {
45 return (kind == DeclOperationKind::FirstPrivateOrLocalInit) ||
46 (kind == DeclOperationKind::PrivateOrLocal);
48inline bool isReduction(DeclOperationKind kind) {
49 return kind == DeclOperationKind::Reduction;
58 mlir::Value scalarInitValue, mlir::Block *initBlock,
59 mlir::Value allocatedPrivVarArg, mlir::Value moldArg,
60 mlir::Region &cleanupRegion, DeclOperationKind kind,
61 const Fortran::semantics::Symbol *sym =
nullptr,
62 bool cannotHaveNonDefaultLowerBounds =
false,
bool isDoConcurrent =
false,
63 bool forceHeapAllocation =
false);
71fir::ShapeShiftOp
getShapeShift(fir::FirOpBuilder &builder, mlir::Location loc,
73 bool cannotHaveNonDefaultLowerBounds =
false,
74 bool useDefaultLowerBounds =
false);
84 mlir::Location loc, mlir::Type type, mlir::Value destRef,
85 const Fortran::semantics::DerivedTypeSpec *derivedTypeSpec =
nullptr,
86 const Fortran::semantics::Symbol *sym =
nullptr);
Definition AbstractConverter.h:87
Definition FIRBuilder.h:59
Definition ParserActions.h:24
void genInlineTypeDefaultInit(AbstractConverter &converter, fir::FirOpBuilder &builder, mlir::Location loc, mlir::Type type, mlir::Value destRef, const Fortran::semantics::DerivedTypeSpec *derivedTypeSpec=nullptr, const Fortran::semantics::Symbol *sym=nullptr)
Definition PrivateReductionUtils.cpp:813
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, bool forceHeapAllocation=false)
Definition PrivateReductionUtils.cpp:787
fir::ShapeShiftOp getShapeShift(fir::FirOpBuilder &builder, mlir::Location loc, mlir::Value box, bool cannotHaveNonDefaultLowerBounds=false, bool useDefaultLowerBounds=false)
Definition PrivateReductionUtils.cpp:176
Definition bit-population-count.h:20
Definition AbstractConverter.h:37
Definition AbstractConverter.h:32