https://github.com/halide/Halide
Raw File
Tip revision: b2a5b3c2d8d99da036f9d59600a550c3d7b50ecc authored by Steven Johnson on 06 August 2021, 16:57:34 UTC
Merge branch 'master' into loop_carry_not_working
Tip revision: b2a5b3c
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 <vector>

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

namespace Halide {
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