Revision 22f9bb9247b3e384bbd9d8e7ff96501a29b49265 authored by Steven Johnson on 17 January 2024, 16:26:43 UTC, committed by GitHub on 17 January 2024, 16:26:43 UTC
Tweak correctness_float16_t so that it uses one of the transcendal functions (sqrt) that were missing in Metal.
1 parent 3a77204
Raw File
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