https://github.com/halide/Halide
Raw File
Tip revision: 4f82da431885e003d7fd6d703cbb97061287f2e7 authored by Dillon Sharlet on 16 December 2020, 04:56:49 UTC
Merge branch 'master' of https://github.com/halide/Halide into srj-strided-store
Tip revision: 4f82da4
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