MLIR  20.0.0git
Functions
Debug.cpp File Reference
#include "mlir-c/Debug.h"
#include "mlir-c/Support.h"
#include "mlir/CAPI/Support.h"
#include "llvm/Support/Debug.h"

Go to the source code of this file.

Functions

void mlirEnableGlobalDebug (bool enable)
 Sets the global debugging flag. More...
 
bool mlirIsGlobalDebugEnabled ()
 Retuns true if the global debugging flag is set, false otherwise. More...
 
void mlirSetGlobalDebugType (const char *type)
 Sets the current debug type, similarly to -debug-only=type in the command-line tools. More...
 
void mlirSetGlobalDebugTypes (const char **types, intptr_t n)
 Sets multiple current debug types, similarly to `-debug-only=type1,type2" in the command-line tools. More...
 
bool mlirIsCurrentDebugType (const char *type)
 Checks if type is set as the current debug type. More...
 

Function Documentation

◆ mlirEnableGlobalDebug()

void mlirEnableGlobalDebug ( bool  enable)

Sets the global debugging flag.

Definition at line 16 of file Debug.cpp.

Referenced by PyGlobalDebugFlag::set().

◆ mlirIsCurrentDebugType()

bool mlirIsCurrentDebugType ( const char *  type)

Checks if type is set as the current debug type.

Definition at line 33 of file Debug.cpp.

◆ mlirIsGlobalDebugEnabled()

bool mlirIsGlobalDebugEnabled ( )

Retuns true if the global debugging flag is set, false otherwise.

Definition at line 18 of file Debug.cpp.

Referenced by PyGlobalDebugFlag::get().

◆ mlirSetGlobalDebugType()

void mlirSetGlobalDebugType ( const char *  type)

Sets the current debug type, similarly to -debug-only=type in the command-line tools.

Note that global debug should be enabled for any output to be produced.

Definition at line 20 of file Debug.cpp.

◆ mlirSetGlobalDebugTypes()

void mlirSetGlobalDebugTypes ( const char **  types,
intptr_t  n 
)

Sets multiple current debug types, similarly to `-debug-only=type1,type2" in the command-line tools.

Note that global debug should be enabled for any output to be produced.

Definition at line 28 of file Debug.cpp.