https://github.com/halide/Halide
Raw File
Tip revision: 07672fe537e19e664ab86435a9e4ba766cc7a6ca authored by Andrew Adams on 18 April 2024, 19:49:36 UTC
Merge remote-tracking branch 'origin/main' into abadams/faster_substitute_facts
Tip revision: 07672fe
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