https://github.com/halide/Halide
Raw File
Tip revision: 26b81e3f61b0296a4e63078e0d23f996b0ea5a9b authored by Steven Johnson on 02 June 2020, 21:03:19 UTC
Merge pull request #4972 from halide/abadams/more_buffer_asserts
Tip revision: 26b81e3
AlignLoads.h
#ifndef HALIDE_ALIGN_LOADS_H
#define HALIDE_ALIGN_LOADS_H

/** \file
 * Defines a lowering pass that rewrites unaligned loads into
 * sequences of aligned loads.
 */
#include "Expr.h"

namespace Halide {
namespace Internal {

/** Attempt to rewrite unaligned loads from buffers which are known to
 * be aligned to instead load aligned vectors that cover the original
 * load, and then slice the original load out of the aligned
 * vectors. */
Stmt align_loads(const Stmt &s, int alignment);

}  // namespace Internal
}  // namespace Halide

#endif
back to top