MLIR 24.0.0git
mlir::acc::ACCRuntimeCallConfig Class Reference

Optional overrides for OpenACC to LLVM runtime lowering. More...

#include "mlir/Dialect/OpenACC/OpenACCRuntimeUtils.h"

Public Types

using FunctionDisplayNameFn = std::function<std::string(StringRef)>

Public Member Functions

void setName (RuntimeFunction fn, StringRef name)
StringRef getName (RuntimeFunction fn) const
void setFunctionDisplayNameFn (FunctionDisplayNameFn fn)
std::string getFunctionDisplayName (StringRef mangledOrSymbol) const
void setDeviceTypeRuntimeValue (DeviceType type, int64_t runtimeValue)
 Map an OpenACC dialect DeviceType to the integer encoding expected by the target runtime.
int64_t getDeviceTypeRuntimeValue (DeviceType type) const
void setAsyncSyncRuntimeValue (int64_t runtimeValue)
 Runtime encoding of acc_async_sync, used when an operation carries no async clause.
int64_t getAsyncSyncRuntimeValue () const
void setAsyncNoValueRuntimeValue (int64_t runtimeValue)
 Runtime encoding of acc_async_noval, used for an async clause without an argument.
int64_t getAsyncNoValueRuntimeValue () const

Detailed Description

Optional overrides for OpenACC to LLVM runtime lowering.

Definition at line 46 of file OpenACCRuntimeUtils.h.

Member Typedef Documentation

◆ FunctionDisplayNameFn

using mlir::acc::ACCRuntimeCallConfig::FunctionDisplayNameFn = std::function<std::string(StringRef)>

Definition at line 48 of file OpenACCRuntimeUtils.h.

Member Function Documentation

◆ getAsyncNoValueRuntimeValue()

int64_t ACCRuntimeCallConfig::getAsyncNoValueRuntimeValue ( ) const

Definition at line 93 of file OpenACCRuntimeUtils.cpp.

◆ getAsyncSyncRuntimeValue()

int64_t ACCRuntimeCallConfig::getAsyncSyncRuntimeValue ( ) const

Definition at line 85 of file OpenACCRuntimeUtils.cpp.

◆ getDeviceTypeRuntimeValue()

int64_t ACCRuntimeCallConfig::getDeviceTypeRuntimeValue ( DeviceType type) const

Definition at line 72 of file OpenACCRuntimeUtils.cpp.

◆ getFunctionDisplayName()

std::string ACCRuntimeCallConfig::getFunctionDisplayName ( StringRef mangledOrSymbol) const

Definition at line 61 of file OpenACCRuntimeUtils.cpp.

Referenced by mlir::acc::createIdent().

◆ getName()

StringRef ACCRuntimeCallConfig::getName ( RuntimeFunction fn) const

Definition at line 50 of file OpenACCRuntimeUtils.cpp.

References mlir::acc::getRuntimeFunctionName().

Referenced by mlir::acc::createRuntimeCall().

◆ setAsyncNoValueRuntimeValue()

void ACCRuntimeCallConfig::setAsyncNoValueRuntimeValue ( int64_t runtimeValue)

Runtime encoding of acc_async_noval, used for an async clause without an argument.

As with acc_async_sync, the value is implementation-defined

Definition at line 89 of file OpenACCRuntimeUtils.cpp.

◆ setAsyncSyncRuntimeValue()

void ACCRuntimeCallConfig::setAsyncSyncRuntimeValue ( int64_t runtimeValue)

Runtime encoding of acc_async_sync, used when an operation carries no async clause.

OpenACC defines the name of this queue but leaves its value to the implementation, so it is part of the runtime ABI.

Definition at line 81 of file OpenACCRuntimeUtils.cpp.

◆ setDeviceTypeRuntimeValue()

void ACCRuntimeCallConfig::setDeviceTypeRuntimeValue ( DeviceType type,
int64_t runtimeValue )

Map an OpenACC dialect DeviceType to the integer encoding expected by the target runtime.

Dialect ordinals and runtime ABI values are not required to match; callers must install a mapping that matches their runtime. Querying an unmapped type is an error.

Definition at line 67 of file OpenACCRuntimeUtils.cpp.

Referenced by mlir::acc::populateDialectIdentityDeviceTypeMapping().

◆ setFunctionDisplayNameFn()

void ACCRuntimeCallConfig::setFunctionDisplayNameFn ( FunctionDisplayNameFn fn)

Definition at line 56 of file OpenACCRuntimeUtils.cpp.

◆ setName()

void ACCRuntimeCallConfig::setName ( RuntimeFunction fn,
StringRef name )

Definition at line 46 of file OpenACCRuntimeUtils.cpp.


The documentation for this class was generated from the following files: