https://github.com/halide/Halide
Raw File
Tip revision: 0abe228fd9f187176c3af0726a1dc663e76242a8 authored by Alex Reinking on 17 February 2021, 06:12:43 UTC
Fix subsetted build issues with arm32/64, hexagon. Fixes #5744. Fixes #5628 (#5745)
Tip revision: 0abe228
VectorizeLoops.h
#ifndef HALIDE_VECTORIZE_LOOPS_H
#define HALIDE_VECTORIZE_LOOPS_H

/** \file
 * Defines the lowering pass that vectorizes loops marked as such
 */

#include "Expr.h"
#include "Function.h"
#include "Target.h"

#include <map>

namespace Halide {
namespace Internal {

/** Take a statement with for loops marked for vectorization, and turn
 * them into single statements that operate on vectors. The loops in
 * question must have constant extent.
 */
Stmt vectorize_loops(const Stmt &s, const std::map<std::string, Function> &env, const Target &t);

}  // namespace Internal
}  // namespace Halide

#endif
back to top