MLIR 23.0.0git
OpenACCCG.cpp File Reference

Go to the source code of this file.

Functions

template<typename ComputeConstructT>
static bool extractAsyncClause (ComputeConstructT computeConstruct, DeviceType clauseDeviceType, MLIRContext *context, std::optional< Value > &asyncOperand, UnitAttr &asyncOnly)
 Extract async for clauseDeviceType. Returns true if a clause was found.
template<typename ComputeConstructT>
static bool extractWaitClause (ComputeConstructT computeConstruct, DeviceType clauseDeviceType, MLIRContext *context, std::optional< Value > &waitDevnum, SmallVectorImpl< Value > &waitOperands, UnitAttr &waitOnly)
 Extract wait for clauseDeviceType. Returns true if a clause was found.
template<typename ComputeConstructT>
static void populateKernelEnvironmentAsyncWait (ComputeConstructT computeConstruct, DeviceType deviceType, std::optional< Value > &asyncOperand, UnitAttr &asyncOnly, std::optional< Value > &waitDevnum, SmallVectorImpl< Value > &waitOperands, UnitAttr &waitOnly)
static ParWidthOp getParWidthOpForLaunchArg (ComputeRegionOp op, GPUParallelDimAttr parDim)

Function Documentation

◆ extractAsyncClause()

template<typename ComputeConstructT>
bool extractAsyncClause ( ComputeConstructT computeConstruct,
DeviceType clauseDeviceType,
MLIRContext * context,
std::optional< Value > & asyncOperand,
UnitAttr & asyncOnly )
static

Extract async for clauseDeviceType. Returns true if a clause was found.

Definition at line 278 of file OpenACCCG.cpp.

Referenced by populateKernelEnvironmentAsyncWait().

◆ extractWaitClause()

template<typename ComputeConstructT>
bool extractWaitClause ( ComputeConstructT computeConstruct,
DeviceType clauseDeviceType,
MLIRContext * context,
std::optional< Value > & waitDevnum,
SmallVectorImpl< Value > & waitOperands,
UnitAttr & waitOnly )
static

Extract wait for clauseDeviceType. Returns true if a clause was found.

Definition at line 294 of file OpenACCCG.cpp.

Referenced by populateKernelEnvironmentAsyncWait().

◆ getParWidthOpForLaunchArg()

ParWidthOp getParWidthOpForLaunchArg ( ComputeRegionOp op,
GPUParallelDimAttr parDim )
static

Definition at line 490 of file OpenACCCG.cpp.

◆ populateKernelEnvironmentAsyncWait()

template<typename ComputeConstructT>
void populateKernelEnvironmentAsyncWait ( ComputeConstructT computeConstruct,
DeviceType deviceType,
std::optional< Value > & asyncOperand,
UnitAttr & asyncOnly,
std::optional< Value > & waitDevnum,
SmallVectorImpl< Value > & waitOperands,
UnitAttr & waitOnly )
static

Definition at line 314 of file OpenACCCG.cpp.

References extractAsyncClause(), and extractWaitClause().