|
MLIR 24.0.0git
|
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 |
Optional overrides for OpenACC to LLVM runtime lowering.
Definition at line 46 of file OpenACCRuntimeUtils.h.
| using mlir::acc::ACCRuntimeCallConfig::FunctionDisplayNameFn = std::function<std::string(StringRef)> |
Definition at line 48 of file OpenACCRuntimeUtils.h.
| int64_t ACCRuntimeCallConfig::getAsyncNoValueRuntimeValue | ( | ) | const |
Definition at line 93 of file OpenACCRuntimeUtils.cpp.
| int64_t ACCRuntimeCallConfig::getAsyncSyncRuntimeValue | ( | ) | const |
Definition at line 85 of file OpenACCRuntimeUtils.cpp.
| int64_t ACCRuntimeCallConfig::getDeviceTypeRuntimeValue | ( | DeviceType | type | ) | const |
Definition at line 72 of file OpenACCRuntimeUtils.cpp.
| std::string ACCRuntimeCallConfig::getFunctionDisplayName | ( | StringRef | mangledOrSymbol | ) | const |
Definition at line 61 of file OpenACCRuntimeUtils.cpp.
Referenced by mlir::acc::createIdent().
| StringRef ACCRuntimeCallConfig::getName | ( | RuntimeFunction | fn | ) | const |
Definition at line 50 of file OpenACCRuntimeUtils.cpp.
References mlir::acc::getRuntimeFunctionName().
Referenced by mlir::acc::createRuntimeCall().
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.
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.
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().
| void ACCRuntimeCallConfig::setFunctionDisplayNameFn | ( | FunctionDisplayNameFn | fn | ) |
Definition at line 56 of file OpenACCRuntimeUtils.cpp.
| void ACCRuntimeCallConfig::setName | ( | RuntimeFunction | fn, |
| StringRef | name ) |
Definition at line 46 of file OpenACCRuntimeUtils.cpp.