https://github.com/halide/Halide
Raw File
Tip revision: ecad269ed3d758fe4b6fe89118b712070a4ad6fe authored by Andrew Adams on 05 October 2020, 23:56:18 UTC
Use switch statement instead of if sequence
Tip revision: ecad269
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