https://github.com/halide/Halide
Raw File
Tip revision: b2a5b3c2d8d99da036f9d59600a550c3d7b50ecc authored by Steven Johnson on 06 August 2021, 16:57:34 UTC
Merge branch 'master' into loop_carry_not_working
Tip revision: b2a5b3c
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, int min_bytes_to_align);

}  // namespace Internal
}  // namespace Halide

#endif
back to top