MLIR
20.0.0git
|
Classes | |
struct | AsyncToken |
struct | AsyncValue |
struct | AsyncGroup |
Typedefs | |
using | AsyncToken = struct AsyncToken |
using | AsyncGroup = struct AsyncGroup |
using | AsyncValue = struct AsyncValue |
using | ValueStorage = std::byte * |
using | CoroHandle = void * |
using | CoroResume = void(*)(void *) |
using | RefCountedObjPtr = void * |
using mlir::runtime::AsyncGroup = typedef struct AsyncGroup |
Definition at line 46 of file AsyncRuntime.h.
using mlir::runtime::AsyncToken = typedef struct AsyncToken |
Definition at line 43 of file AsyncRuntime.h.
using mlir::runtime::AsyncValue = typedef struct AsyncValue |
Definition at line 49 of file AsyncRuntime.h.
using mlir::runtime::CoroHandle = typedef void * |
Definition at line 57 of file AsyncRuntime.h.
using mlir::runtime::CoroResume = typedef void (*)(void *) |
Definition at line 58 of file AsyncRuntime.h.
using mlir::runtime::RefCountedObjPtr = typedef void * |
Definition at line 62 of file AsyncRuntime.h.
using mlir::runtime::ValueStorage = typedef std::byte * |
Definition at line 52 of file AsyncRuntime.h.
MLIR_ASYNC_RUNTIME_EXPORT void mlir::runtime::__mlir_execution_engine_destroy | ( | ) |
Definition at line 521 of file AsyncRuntime.cpp.
References resetDefaultAsyncRuntime().
void mlir::runtime::__mlir_execution_engine_init | ( | llvm::StringMap< void * > & | exportSymbols | ) |
Definition at line 466 of file AsyncRuntime.cpp.
References mlirAsyncRuntimeAddRef(), mlirAsyncRuntimeAddTokenToGroup(), mlirAsyncRuntimeAwaitAllInGroup(), mlirAsyncRuntimeAwaitAllInGroupAndExecute(), mlirAsyncRuntimeAwaitToken(), mlirAsyncRuntimeAwaitTokenAndExecute(), mlirAsyncRuntimeAwaitValue(), mlirAsyncRuntimeAwaitValueAndExecute(), mlirAsyncRuntimeCreateGroup(), mlirAsyncRuntimeCreateToken(), mlirAsyncRuntimeCreateValue(), mlirAsyncRuntimeDropRef(), mlirAsyncRuntimeEmplaceToken(), mlirAsyncRuntimeEmplaceValue(), mlirAsyncRuntimeExecute(), mlirAsyncRuntimeGetValueStorage(), mlirAsyncRuntimeIsGroupError(), mlirAsyncRuntimeIsTokenError(), mlirAsyncRuntimeIsValueError(), mlirAsyncRuntimePrintCurrentThreadId(), mlirAsyncRuntimeSetTokenError(), mlirAsyncRuntimeSetValueError(), and mlirAsyncRuntimGetNumWorkerThreads().
|
static |
Definition at line 166 of file AsyncRuntime.cpp.
References getDefaultAsyncRuntimeInstance().
Referenced by mlirAsyncRuntimeCreateGroup(), mlirAsyncRuntimeCreateToken(), mlirAsyncRuntimeCreateValue(), and mlirAsyncRuntimGetNumWorkerThreads().
|
static |
Definition at line 157 of file AsyncRuntime.cpp.
Referenced by getDefaultAsyncRuntime(), and resetDefaultAsyncRuntime().
void mlir::runtime::mlirAsyncRuntimeAddRef | ( | RefCountedObjPtr | ptr, |
int64_t | count | ||
) |
Definition at line 226 of file AsyncRuntime.cpp.
Referenced by __mlir_execution_engine_init().
int64_t mlir::runtime::mlirAsyncRuntimeAddTokenToGroup | ( | AsyncToken * | token, |
AsyncGroup * | group | ||
) |
Definition at line 255 of file AsyncRuntime.cpp.
References mlir::runtime::AsyncToken::awaiters, mlir::runtime::AsyncGroup::awaiters, mlir::runtime::AsyncGroup::cv, mlir::runtime::AsyncToken::mu, mlir::runtime::AsyncGroup::mu, mlir::runtime::AsyncGroup::numErrors, mlir::runtime::AsyncGroup::pendingTokens, mlir::runtime::AsyncGroup::rank, and mlir::runtime::AsyncToken::state.
Referenced by __mlir_execution_engine_init().
void mlir::runtime::mlirAsyncRuntimeAwaitAllInGroup | ( | AsyncGroup * | group | ) |
Definition at line 383 of file AsyncRuntime.cpp.
References mlir::runtime::AsyncGroup::cv, mlir::runtime::AsyncGroup::mu, and mlir::runtime::AsyncGroup::pendingTokens.
Referenced by __mlir_execution_engine_init().
void mlir::runtime::mlirAsyncRuntimeAwaitAllInGroupAndExecute | ( | AsyncGroup * | group, |
CoroHandle | handle, | ||
CoroResume | resume | ||
) |
Definition at line 426 of file AsyncRuntime.cpp.
References mlir::runtime::AsyncGroup::awaiters, mlir::runtime::AsyncGroup::mu, and mlir::runtime::AsyncGroup::pendingTokens.
Referenced by __mlir_execution_engine_init().
void mlir::runtime::mlirAsyncRuntimeAwaitToken | ( | AsyncToken * | token | ) |
Definition at line 369 of file AsyncRuntime.cpp.
References mlir::runtime::AsyncToken::cv, mlir::runtime::AsyncToken::mu, and mlir::runtime::AsyncToken::state.
Referenced by __mlir_execution_engine_init().
void mlir::runtime::mlirAsyncRuntimeAwaitTokenAndExecute | ( | AsyncToken * | token, |
CoroHandle | handle, | ||
CoroResume | resume | ||
) |
Definition at line 400 of file AsyncRuntime.cpp.
References mlir::runtime::AsyncToken::awaiters, mlir::runtime::AsyncToken::mu, and mlir::runtime::AsyncToken::state.
Referenced by __mlir_execution_engine_init().
void mlir::runtime::mlirAsyncRuntimeAwaitValue | ( | AsyncValue * | value | ) |
Definition at line 376 of file AsyncRuntime.cpp.
References mlir::runtime::AsyncValue::cv, mlir::runtime::AsyncValue::mu, and mlir::runtime::AsyncValue::state.
Referenced by __mlir_execution_engine_init().
void mlir::runtime::mlirAsyncRuntimeAwaitValueAndExecute | ( | AsyncValue * | value, |
CoroHandle | handle, | ||
CoroResume | resume | ||
) |
Definition at line 413 of file AsyncRuntime.cpp.
References mlir::runtime::AsyncValue::awaiters, mlir::runtime::AsyncValue::mu, and mlir::runtime::AsyncValue::state.
Referenced by __mlir_execution_engine_init().
AsyncGroup * mlir::runtime::mlirAsyncRuntimeCreateGroup | ( | int64_t | size | ) |
Definition at line 250 of file AsyncRuntime.cpp.
References getDefaultAsyncRuntime().
Referenced by __mlir_execution_engine_init().
AsyncToken * mlir::runtime::mlirAsyncRuntimeCreateToken | ( | ) |
Definition at line 238 of file AsyncRuntime.cpp.
References getDefaultAsyncRuntime().
Referenced by __mlir_execution_engine_init().
AsyncValue * mlir::runtime::mlirAsyncRuntimeCreateValue | ( | int64_t | size | ) |
Definition at line 244 of file AsyncRuntime.cpp.
References getDefaultAsyncRuntime().
Referenced by __mlir_execution_engine_init().
void mlir::runtime::mlirAsyncRuntimeDropRef | ( | RefCountedObjPtr | ptr, |
int64_t | count | ||
) |
Definition at line 232 of file AsyncRuntime.cpp.
Referenced by __mlir_execution_engine_init().
void mlir::runtime::mlirAsyncRuntimeEmplaceToken | ( | AsyncToken * | token | ) |
Definition at line 341 of file AsyncRuntime.cpp.
References setTokenState().
Referenced by __mlir_execution_engine_init().
void mlir::runtime::mlirAsyncRuntimeEmplaceValue | ( | AsyncValue * | value | ) |
Definition at line 345 of file AsyncRuntime.cpp.
References setValueState().
Referenced by __mlir_execution_engine_init().
void mlir::runtime::mlirAsyncRuntimeExecute | ( | CoroHandle | handle, |
CoroResume | resume | ||
) |
Definition at line 395 of file AsyncRuntime.cpp.
Referenced by __mlir_execution_engine_init().
ValueStorage mlir::runtime::mlirAsyncRuntimeGetValueStorage | ( | AsyncValue * | value | ) |
Definition at line 390 of file AsyncRuntime.cpp.
References mlir::runtime::AsyncValue::state, and mlir::runtime::AsyncValue::storage.
Referenced by __mlir_execution_engine_init().
bool mlir::runtime::mlirAsyncRuntimeIsGroupError | ( | AsyncGroup * | group | ) |
Definition at line 365 of file AsyncRuntime.cpp.
References mlir::runtime::AsyncGroup::numErrors.
Referenced by __mlir_execution_engine_init().
bool mlir::runtime::mlirAsyncRuntimeIsTokenError | ( | AsyncToken * | token | ) |
Definition at line 357 of file AsyncRuntime.cpp.
References mlir::runtime::AsyncToken::state.
Referenced by __mlir_execution_engine_init().
bool mlir::runtime::mlirAsyncRuntimeIsValueError | ( | AsyncValue * | value | ) |
Definition at line 361 of file AsyncRuntime.cpp.
References mlir::runtime::AsyncValue::state.
Referenced by __mlir_execution_engine_init().
void mlir::runtime::mlirAsyncRuntimePrintCurrentThreadId | ( | ) |
Definition at line 447 of file AsyncRuntime.cpp.
Referenced by __mlir_execution_engine_init().
void mlir::runtime::mlirAsyncRuntimeSetTokenError | ( | AsyncToken * | token | ) |
Definition at line 349 of file AsyncRuntime.cpp.
References setTokenState().
Referenced by __mlir_execution_engine_init().
void mlir::runtime::mlirAsyncRuntimeSetValueError | ( | AsyncValue * | value | ) |
Definition at line 353 of file AsyncRuntime.cpp.
References setValueState().
Referenced by __mlir_execution_engine_init().
int64_t mlir::runtime::mlirAsyncRuntimGetNumWorkerThreads | ( | ) |
Definition at line 439 of file AsyncRuntime.cpp.
References getDefaultAsyncRuntime().
Referenced by __mlir_execution_engine_init().
|
static |
Definition at line 162 of file AsyncRuntime.cpp.
References getDefaultAsyncRuntimeInstance().
Referenced by __mlir_execution_engine_destroy().
|
static |
Definition at line 305 of file AsyncRuntime.cpp.
Referenced by mlirAsyncRuntimeEmplaceToken(), and mlirAsyncRuntimeSetTokenError().
|
static |
Definition at line 323 of file AsyncRuntime.cpp.
Referenced by mlirAsyncRuntimeEmplaceValue(), and mlirAsyncRuntimeSetValueError().