https://github.com/halide/Halide
Raw File
Tip revision: ad09a743e55c7045f6a25fe68b27ce1863c38788 authored by Steven Johnson on 23 August 2023, 18:08:56 UTC
Merge branch 'main' into abadams/makefile_serialization_support
Tip revision: ad09a74
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 <map>

namespace Halide {

struct Target;

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);

}  // namespace Internal
}  // namespace Halide

#endif
back to top