#ifndef HALIDE_DEBUG_TO_FILE_H #define HALIDE_DEBUG_TO_FILE_H /** \file * Defines the lowering pass that injects code at the end of * every realization to dump functions to a file for debugging. */ #include #include #include "Expr.h" namespace Halide { namespace Internal { class Function; /** Takes a statement with Realize nodes still unlowered. If the * corresponding functions have a debug_file set, then inject code * that will dump the contents of those functions to a file after the * realization. */ Stmt debug_to_file(Stmt s, const std::vector &outputs, const std::map &env); } // namespace Internal } // namespace Halide #endif