Revision a3cac6513d39c01592fa92e77aee1f5033e0209a authored by Dan Palermo on 14 June 2021, 18:29:20 UTC, committed by Dan Palermo on 14 June 2021, 18:29:20 UTC
1 parent 08cc265
Raw File
UnsafePromises.h
#ifndef HALIDE_UNSAFE_PROMISES_H
#define HALIDE_UNSAFE_PROMISES_H

/** \file
 * Defines the lowering pass that removes unsafe promises
 */

#include "Expr.h"

namespace Halide {

struct Target;

namespace Internal {

/** Lower all unsafe promises into either assertions or unchecked
    code, depending on the target. */
Stmt lower_unsafe_promises(const Stmt &s, const Target &t);

/** Lower all safe promises by just stripping them. This is a good
 * idea once no more lowering stages are going to use
 * boxes_touched. */
Stmt lower_safe_promises(const Stmt &s);

}  // namespace Internal
}  // namespace Halide

#endif
back to top