https://github.com/halide/Halide
Raw File
Tip revision: 3c4b9a38d48e77e11657fa67894d63d1e5027f22 authored by Steven Johnson on 19 July 2023, 20:49:43 UTC
Merge branch 'main' into vulkan-diagnose-alloc-failures
Tip revision: 3c4b9a3
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