Halide
Halide::Internal::debug Class Reference

For optional debugging during codegen, use the debug class as follows: More...

#include <Debug.h>

Public Member Functions

 debug (int verbosity)
 
template<typename T >
debugoperator<< (T &&x)
 

Static Public Member Functions

static int debug_level ()
 

Detailed Description

For optional debugging during codegen, use the debug class as follows:

debug(verbosity) << "The expression is " << expr << "\n";

verbosity of 0 always prints, 1 should print after every major stage, 2 should be used for more detail, and 3 should be used for tracing everything that occurs. The verbosity with which to print is determined by the value of the environment variable HL_DEBUG_CODEGEN

Definition at line 49 of file Debug.h.

Constructor & Destructor Documentation

◆ debug()

Halide::Internal::debug::debug ( int  verbosity)
inline

Definition at line 53 of file Debug.h.

Member Function Documentation

◆ operator<<()

template<typename T >
debug& Halide::Internal::debug::operator<< ( T &&  x)
inline

Definition at line 58 of file Debug.h.

◆ debug_level()

static int Halide::Internal::debug::debug_level ( )
static

The documentation for this class was generated from the following file:
Halide::Internal::debug::debug
debug(int verbosity)
Definition: Debug.h:53