https://github.com/halide/Halide
Raw File
Tip revision: 1fd83c92b9eda2037772084e5dd14ea02950c299 authored by Pranav Bhandarkar on 10 August 2018, 23:44:17 UTC
Spooky action inside CodeGen_LLVM.cpp
Tip revision: 1fd83c9
UnpackBuffers.h
#ifndef HALIDE_UNPACK_BUFFERS_H
#define HALIDE_UNPACK_BUFFERS_H

/** \file
 * Defines the lowering pass that unpacks buffer arguments onto the symbol table
 */

#include "IR.h"

namespace Halide {
namespace Internal {

/** Creates let stmts for the various buffer components
 * (e.g. foo.extent.0) in any referenced concrete buffers or buffer
 * parameters. After this pass, the only undefined symbols should
 * scalar parameters and the buffers themselves (e.g. foo.buffer). */
Stmt unpack_buffers(Stmt s);

}  // namespace Internal
}  // namespace Halide

#endif
back to top