13#ifndef FORTRAN_OPTIMIZER_OPENACC_SUPPORT_FIROPENACCUTILS_H
14#define FORTRAN_OPTIMIZER_OPENACC_SUPPORT_FIROPENACCUTILS_H
16#include "mlir/Dialect/OpenACC/OpenACC.h"
17#include "mlir/IR/Builders.h"
18#include "mlir/IR/Operation.h"
19#include "mlir/IR/Value.h"
31std::string getVariableName(mlir::Value v,
bool preferDemangledName =
true);
45std::string getRecipeName(mlir::acc::RecipeKind kind, mlir::Type type,
46 mlir::Value var =
nullptr,
47 llvm::ArrayRef<mlir::Value> bounds = {},
48 mlir::acc::ReductionOperator reductionOp =
49 mlir::acc::ReductionOperator::AccNone);
54bool areAllBoundsConstant(llvm::ArrayRef<mlir::Value> bounds);
63createOrGetPrivateRecipe(mlir::OpBuilder &builder, mlir::Location loc,
65 llvm::SmallVector<mlir::Value> &dataBoundOps);
74createOrGetFirstprivateRecipe(mlir::OpBuilder &builder, mlir::Location loc,
76 llvm::SmallVector<mlir::Value> &dataBoundOps);
87createOrGetReductionRecipe(mlir::OpBuilder &builder, mlir::Location loc,
88 mlir::Value var, mlir::acc::ReductionOperator op,
89 llvm::SmallVector<mlir::Value> &dataBoundOps,
90 mlir::Attribute fastMathAttr = {});
98mlir::Value getOriginalDef(mlir::Value value,
bool stripDeclare =
true);
Definition AbstractConverter.h:37