https://github.com/halide/Halide
Raw File
Tip revision: 5dabcaa9effca1067f907f6c8ea212f3d2b1d99a authored by Alex Reinking on 20 May 2021, 22:51:57 UTC
Set version to 12.0.1
Tip revision: 5dabcaa
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