https://github.com/halide/Halide
Raw File
Tip revision: c575919b6e27433c7301139ac78fcb1c75915f8d authored by Steven Johnson on 14 February 2018, 00:05:52 UTC
"This pipeline is guaranteed to fail an assertion at runtime" should be an error, not a warning
Tip revision: c575919
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