diff options
Diffstat (limited to 'mlir/include/mlir-c/Debug.h')
-rw-r--r-- | mlir/include/mlir-c/Debug.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mlir/include/mlir-c/Debug.h b/mlir/include/mlir-c/Debug.h index 7dad735..8f206e4 100644 --- a/mlir/include/mlir-c/Debug.h +++ b/mlir/include/mlir-c/Debug.h @@ -31,6 +31,24 @@ MLIR_CAPI_EXPORTED void mlirSetGlobalDebugType(const char *type); /// output to be produced. MLIR_CAPI_EXPORTED void mlirSetGlobalDebugTypes(const char **types, intptr_t n); +/// Adds to the current debug type state, similarly to +/// `-debug-only=prev_type,new_type` in the command-line tools. Note that global +/// debug should be enabled for any output to be produced. A single append call +/// can be reverted with mlirPopAppendedGlobalDebugTypes. +MLIR_CAPI_EXPORTED void mlirAppendGlobalDebugType(const char *type); + +/// Adds to the current debug type state, similarly to +/// `-debug-only=prev_type,new_type1,new_type2` in the command-line tools. Note +/// that global debug should be enabled for any output to be produced. A single +/// append call can be reverted with mlirPopAppendedGlobalDebugTypes. +MLIR_CAPI_EXPORTED void mlirAppendGlobalDebugTypes(const char **types, + intptr_t n); + +/// Restores the current debug type state to its state before the last append +/// call. An appended state of `-debug-only=prev_type,new_type1,new_type2` would +/// be `-debug-only=prev_type` after this call. +MLIR_CAPI_EXPORTED void mlirPopAppendedGlobalDebugTypes(); + /// Checks if `type` is set as the current debug type. MLIR_CAPI_EXPORTED bool mlirIsCurrentDebugType(const char *type); |