https://github.com/halide/Halide
Raw File
Tip revision: 02046aca422ce4277dc0f185e8e1ef2c7f3eb1c8 authored by Steven Johnson on 19 July 2021, 17:09:25 UTC
Merge branch 'master' into srj/hannk-mmap
Tip revision: 02046ac
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