https://github.com/halide/Halide
Raw File
Tip revision: 96698170814ff8aa4aaecacb5d23bbe2e3a1e17e authored by Andrew Adams on 16 August 2020, 20:54:08 UTC
Reschedule BGU to fix performance regression
Tip revision: 9669817
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