13#ifndef MLIR_DIALECT_OPENMP_OPENMPDIALECT_H_
14#define MLIR_DIALECT_OPENMP_OPENMPDIALECT_H_
27#include "llvm/Frontend/OpenMP/OMPConstants.h"
28#include "llvm/Frontend/OpenMP/OMPDeviceConstants.h"
30#define GET_TYPEDEF_CLASSES
31#include "mlir/Dialect/OpenMP/OpenMPOpsTypes.h.inc"
33#include "mlir/Dialect/OpenMP/OpenMPOpsDialect.h.inc"
37#include "mlir/Dialect/OpenMP/OpenMPTypeInterfaces.h.inc"
40#include "mlir/Dialect/OpenMP/OpenMPOps.h.inc"
43#define OMP_LOOP_WRAPPER_OPS \
44 mlir::omp::WorkshareLoopWrapperOp, mlir::omp::LoopOp, mlir::omp::WsloopOp, \
45 mlir::omp::SimdOp, mlir::omp::DistributeOp, mlir::omp::TaskloopWrapperOp
48#define OMP_OUTLINEABLE_OPS \
49 mlir::omp::ParallelOp, mlir::omp::TeamsOp, mlir::omp::TaskOp, \
Shared utilities for setting OpenMP offload module interface attributes.
This class represents an instance of an SSA value in the MLIR system, representing a computable value...
std::tuple< NewCliOp, OpOperand *, OpOperand * > decodeCli(mlir::Value cli)
Find the omp.new_cli, generator, and consumer of a canonical loop info.
ClauseProcBindKind convertProcBindKind(llvm::omp::ProcBindKind kind)
Convert a proc_bind kind from the LLVM frontend enum to the corresponding OpenMP dialect enum.