#ifndef MLIR_DIALECT_OPENACC_OPENACC_H_
#define MLIR_DIALECT_OPENACC_OPENACC_H_
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/Dialect.h"
#include "mlir/IR/OpDefinition.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/IR/SymbolTable.h"
#include "mlir/Bytecode/BytecodeOpInterface.h"
#include "mlir/Dialect/OpenACC/OpenACCOpsDialect.h.inc"
#include "mlir/Dialect/OpenACC/OpenACCOpsEnums.h.inc"
#include "mlir/Dialect/OpenACC/OpenACCOpsInterfaces.h.inc"
#include "mlir/Dialect/OpenACC/OpenACCTypeInterfaces.h.inc"
#include "mlir/Dialect/OpenACCMPCommon/Interfaces/AtomicInterfaces.h"
#include "mlir/Interfaces/ControlFlowInterfaces.h"
#include "mlir/Interfaces/LoopLikeInterface.h"
#include "mlir/Interfaces/SideEffectInterfaces.h"
#define GET_TYPEDEF_CLASSES
#include "mlir/Dialect/OpenACC/OpenACCOpsTypes.h.inc"
#define GET_ATTRDEF_CLASSES
#include "mlir/Dialect/OpenACC/OpenACCOpsAttributes.h.inc"
#include "mlir/Dialect/OpenACCMPCommon/Interfaces/OpenACCMPOpsInterfaces.h"
#define GET_OP_CLASSES
#include "mlir/Dialect/OpenACC/OpenACCOps.h.inc"
#define ACC_DATA_ENTRY_OPS …
#define ACC_DATA_EXIT_OPS …
#define ACC_DATA_CLAUSE_OPS …
#define ACC_COMPUTE_CONSTRUCT_OPS …
#define ACC_COMPUTE_CONSTRUCT_AND_LOOP_OPS …
#define OPENACC_DATA_CONSTRUCT_STRUCTURED_OPS …
#define ACC_DATA_CONSTRUCT_UNSTRUCTURED_OPS …
#define ACC_DATA_CONSTRUCT_OPS …
#define ACC_COMPUTE_AND_DATA_CONSTRUCT_OPS …
#define ACC_COMPUTE_LOOP_AND_DATA_CONSTRUCT_OPS …
namespace mlir {
namespace acc {
enum OpenACCExecMapping { … };
mlir::Value getVarPtr(mlir::Operation *accDataClauseOp);
mlir::Value getAccPtr(mlir::Operation *accDataClauseOp);
mlir::Value getVarPtrPtr(mlir::Operation *accDataClauseOp);
mlir::SmallVector<mlir::Value> getBounds(mlir::Operation *accDataClauseOp);
mlir::SmallVector<mlir::Value>
getAsyncOperands(mlir::Operation *accDataClauseOp);
mlir::ArrayAttr getAsyncOperandsDeviceType(mlir::Operation *accDataClauseOp);
mlir::ArrayAttr getAsyncOnly(mlir::Operation *accDataClauseOp);
std::optional<llvm::StringRef> getVarName(mlir::Operation *accOp);
std::optional<mlir::acc::DataClause>
getDataClause(mlir::Operation *accDataEntryOp);
bool getImplicitFlag(mlir::Operation *accDataEntryOp);
mlir::ValueRange getDataOperands(mlir::Operation *accOp);
mlir::MutableOperandRange getMutableDataOperands(mlir::Operation *accOp);
static constexpr StringLiteral getDeclareAttrName() { … }
static constexpr StringLiteral getDeclareActionAttrName() { … }
static constexpr StringLiteral getRoutineInfoAttrName() { … }
static constexpr StringLiteral getCombinedConstructsAttrName() { … }
struct RuntimeCounters
: public mlir::SideEffects::Resource::Base<RuntimeCounters> { … };
struct ConstructResource
: public mlir::SideEffects::Resource::Base<ConstructResource> { … };
struct CurrentDeviceIdResource
: public mlir::SideEffects::Resource::Base<CurrentDeviceIdResource> { … };
}
}
#endif