https://github.com/halide/Halide
Raw File
Tip revision: c3641b6850d156aff6bb01a9c01ef475bd069a31 authored by Steven Johnson on 20 October 2021, 00:16:04 UTC
[hannk] augment L2NormOp to allow specifying axis (#6335)
Tip revision: c3641b6
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 "Expr.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