https://github.com/halide/Halide
Raw File
Tip revision: a57aecbbaeb36241b298afb4e479b44b4a589b7d authored by Steven Johnson on 21 October 2021, 20:30:53 UTC
Merge branch 'master' into srj/visit-warnings
Tip revision: a57aecb
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