36#define debug_is_active(n) (::Halide::Internal::debug_is_active_impl((n), __FILE__, __FUNCTION__, __LINE__))
54 if (debug_is_active((n))) std::cerr
73template<
typename StreamT,
typename T>
77 for (
const auto &e : wrapper.
span) {
107template<
typename StreamT,
typename T>
110 for (
const auto &e : wrapper.
span) {
111 stream <<
"\t" << e <<
",\n";
PrintSpanLn(const T &) -> PrintSpanLn< T >
ConstantInterval operator<<(const ConstantInterval &a, const ConstantInterval &b)
PrintSpan(const T &) -> PrintSpan< T >
bool debug_is_active_impl(int verbosity, const char *file, const char *function, int line)
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
std::ostream & operator<<(std::ostream &stream, const Expr &)
Emit an expression on an output stream (such as std::cout) in human-readable form.
A fragment of Halide syntax.
Definition of a lowered function.
Allow easily printing the contents of containers, or std::vector-like containers, in debug output.
Allow easily printing the contents of spans, or std::vector-like spans, in debug output.
PrintSpanLn(const T &span)
A reference-counted handle to a statement node.
A struct representing a target machine and os to generate code for.
Types in the halide type system.