https://github.com/halide/Halide
Raw File
Tip revision: bbe8fadf32296c20979ca99a86f206545c3522d8 authored by Andrew Adams on 16 February 2024, 19:18:19 UTC
Allocate IR node names inside the IR nodes
Tip revision: bbe8fad
AddSplitFactorChecks.h
#ifndef HALIDE_INTERNAL_ADD_SPLIT_FACTOR_CHECKS_H
#define HALIDE_INTERNAL_ADD_SPLIT_FACTOR_CHECKS_H

/** \file
 *
 * Defines the lowering pass that adds the assertions that all split factors are
 * strictly positive.
 */
#include <map>

#include "Expr.h"

namespace Halide {
namespace Internal {

class Function;

/** Insert checks that all split factors that depend on scalar parameters are
 * strictly positive. */
Stmt add_split_factor_checks(const Stmt &s, const StringMap<Function> &env);

}  // namespace Internal
}  // namespace Halide

#endif
back to top