https://github.com/halide/Halide
Raw File
Tip revision: 75dd135a983cdd4d5aa6560a0ad49698328038b0 authored by Andrew Adams on 16 March 2020, 18:16:45 UTC
Bounds inference should walk inside ifs as well as lets
Tip revision: 75dd135
Lerp.h
#ifndef HALIDE_LERP_H
#define HALIDE_LERP_H

/** \file
 * Defines methods for converting a lerp intrinsic into Halide IR.
 */

#include "IR.h"

namespace Halide {
namespace Internal {

/** Build Halide IR that computes a lerp. Use by codegen targets that
 * don't have a native lerp. */
Expr lower_lerp(Expr zero_val, Expr one_val, const Expr &weight);

}  // namespace Internal
}  // namespace Halide

#endif
back to top