https://github.com/halide/Halide
Raw File
Tip revision: 62d47f1ee4dd8d1e6b270185764f5c2c450715d1 authored by Steven Johnson on 05 February 2020, 00:41:39 UTC
Tutorials should use halide_benachmark instead of clock.h
Tip revision: 62d47f1
AddParameterChecks.h
#ifndef HALIDE_INTERNAL_ADD_PARAMETER_CHECKS_H
#define HALIDE_INTERNAL_ADD_PARAMETER_CHECKS_H

/** \file
 *
 * Defines the lowering pass that adds the assertions that validate
 * scalar parameters.
 */

#include "IR.h"

namespace Halide {

struct Target;

namespace Internal {

/** Insert checks to make sure that all referenced parameters meet
 * their constraints. Also injects any custom requirements provided
 * by the user. */
Stmt add_parameter_checks(const std::vector<Stmt> &requirements, Stmt s, const Target &t);

}  // namespace Internal
}  // namespace Halide

#endif
back to top