https://github.com/halide/Halide
Raw File
Tip revision: c9c211b1fcdc41a0ff764c9c8c07e48203266e9b authored by Z Stern on 17 July 2019, 20:42:26 UTC
Fix strict float to not duplicate strict_float wrappings.
Tip revision: c9c211b
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