https://github.com/halide/Halide
Raw File
Tip revision: 5c0027abf0441e0f775b192b67d2e3d2a5c6edc4 authored by Volodymyr Kysenko on 21 October 2021, 18:08:48 UTC
Merge branch 'master' into vksnk/bound-storage
Tip revision: 5c0027a
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