MLIR 24.0.0git
ACCDataDirectivePatterns.cpp File Reference

Go to the source code of this file.

Functions

static LogicalResult emitDataRuntimeCall (Location loc, RuntimeFunction fn, ValueRange mappingOperands, ValueRange convertedOperands, ACCDataCallKind callKind, ConversionPatternRewriter &rewriter, OpenACCSupport &accSupport, Region &globalSymbolRegion, SymbolTable &symbolTable, const ACCRuntimeCallConfig &config, ArrayRef< Value > trailingArguments)
 Emits the call to the mapping entry point fn for mappingOperands, the data-clause operands of a data construct, paired with their type converted values in convertedOperands.
static DeclareActionAttr getEnclosingDeclareAction (Operation *op)
 Returns the action that the declare-action recipe holding op carries out, which the recipe states by naming itself in the matching slot of its acc.declare_action attribute.
static Value getDeclareAsyncQueue (Location loc, ConversionPatternRewriter &rewriter, const ACCRuntimeCallConfig &config)

Function Documentation

◆ emitDataRuntimeCall()

LogicalResult emitDataRuntimeCall ( Location loc,
RuntimeFunction fn,
ValueRange mappingOperands,
ValueRange convertedOperands,
ACCDataCallKind callKind,
ConversionPatternRewriter & rewriter,
OpenACCSupport & accSupport,
Region & globalSymbolRegion,
SymbolTable & symbolTable,
const ACCRuntimeCallConfig & config,
ArrayRef< Value > trailingArguments )
static

Emits the call to the mapping entry point fn for mappingOperands, the data-clause operands of a data construct, paired with their type converted values in convertedOperands.

Definition at line 36 of file ACCDataDirectivePatterns.cpp.

References mlir::emitACCDataRuntimeCall(), and options.

◆ getDeclareAsyncQueue()

Value getDeclareAsyncQueue ( Location loc,
ConversionPatternRewriter & rewriter,
const ACCRuntimeCallConfig & config )
static

◆ getEnclosingDeclareAction()

DeclareActionAttr getEnclosingDeclareAction ( Operation * op)
static

Returns the action that the declare-action recipe holding op carries out, which the recipe states by naming itself in the matching slot of its acc.declare_action attribute.

Returns a null attribute when op is not in such a recipe.

Definition at line 53 of file ACCDataDirectivePatterns.cpp.

References mlir::acc::getDeclareActionAttrName(), and mlir::Operation::getParentOfType().