https://github.com/halide/Halide
Raw File
Tip revision: 313d8bcb68880ec00e3597bcb8aab4a8888c7875 authored by Patricia Suriana on 05 October 2017, 22:55:00 UTC
Add shallow_lower_bound apps
Tip revision: 313d8bc
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 "IR.h"
#include "Target.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(Stmt s, int alignment);

}
}

#endif
back to top