https://github.com/halide/Halide
Raw File
Tip revision: 14f594e0adaff3b30b437ef81871969c6738a53f authored by Tal Ben-Nun on 27 July 2018, 11:52:25 UTC
Merge pull request #2 from halide/master
Tip revision: 14f594e
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 "ModulusRemainder.h"
#include "Scope.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, const Scope<ModulusRemainder> &alignment_info);

}  // namespace Internal
}  // namespace Halide

#endif
back to top