MLIR
18.0.0git
include
mlir-c
Debug.h
Go to the documentation of this file.
1
//===-- mlir-c/Debug.h - C API for MLIR/LLVM debugging functions --*- C -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM
4
// Exceptions.
5
// See https://llvm.org/LICENSE.txt for license information.
6
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
//
8
//===----------------------------------------------------------------------===//
9
10
#include "
mlir-c/Support.h
"
11
12
#include <stdbool.h>
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
18
/// Sets the global debugging flag.
19
MLIR_CAPI_EXPORTED
void
mlirEnableGlobalDebug
(
bool
enable);
20
21
/// Retuns `true` if the global debugging flag is set, false otherwise.
22
MLIR_CAPI_EXPORTED
bool
mlirIsGlobalDebugEnabled
();
23
24
#ifdef __cplusplus
25
}
26
#endif
27
28
#ifndef MLIR_C_DEBUG_H
29
#define MLIR_C_DEBUG_H
30
#endif
// MLIR_C_DEBUG_H
mlirIsGlobalDebugEnabled
MLIR_CAPI_EXPORTED bool mlirIsGlobalDebugEnabled()
Retuns true if the global debugging flag is set, false otherwise.
Definition:
Debug.cpp:18
mlirEnableGlobalDebug
MLIR_CAPI_EXPORTED void mlirEnableGlobalDebug(bool enable)
Sets the global debugging flag.
Definition:
Debug.cpp:16
Support.h
MLIR_CAPI_EXPORTED
#define MLIR_CAPI_EXPORTED
Definition:
Support.h:46
Generated on Mon Dec 4 2023 12:32:21 for MLIR by
1.9.1