Loading...
Searching...
No Matches
Lerp.h
Go to the documentation of this file.
#ifndef HALIDE_LERP_H
#define HALIDE_LERP_H
/** \file
* Defines methods for converting a lerp intrinsic into Halide IR.
*/
#include "Expr.h"
namespace Halide {
struct Target;
namespace Internal {
/** Build Halide IR that computes a lerp. Use by codegen targets that don't have
* a native lerp. The lerp is done in the type of the zero value. The final_type
* is a cast that should occur after the lerp. It's included because in some
* cases you can incorporate a final cast into the lerp math. */
Expr lower_lerp(Type final_type, Expr zero_val, Expr one_val, const Expr &weight, const Target &target);
} // namespace Internal
} // namespace Halide
#endif
Expr.h
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt).
Halide::Internal
Definition AbstractGenerator.h:24
Halide::Internal::lower_lerp
Expr lower_lerp(Type final_type, Expr zero_val, Expr one_val, const Expr &weight, const Target &target)
Build Halide IR that computes a lerp.
Halide
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
Definition AbstractGenerator.h:19
Halide::Expr
A fragment of Halide syntax.
Definition Expr.h:258
Halide::Target
A struct representing a target machine and os to generate code for.
Definition Target.h:19
Halide::Type
Types in the halide type system.
Definition Type.h:283