Halide
21.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
Lerp.h
Go to the documentation of this file.
1
#ifndef HALIDE_LERP_H
2
#define HALIDE_LERP_H
3
4
/** \file
5
* Defines methods for converting a lerp intrinsic into Halide IR.
6
*/
7
8
#include "
Expr.h
"
9
10
namespace
Halide
{
11
12
struct
Target
;
13
14
namespace
Internal
{
15
16
/** Build Halide IR that computes a lerp. Use by codegen targets that don't have
17
* a native lerp. The lerp is done in the type of the zero value. The final_type
18
* is a cast that should occur after the lerp. It's included because in some
19
* cases you can incorporate a final cast into the lerp math. */
20
Expr
lower_lerp
(
Type
final_type,
Expr
zero_val,
Expr
one_val,
const
Expr
&weight,
const
Target
&target);
21
22
}
// namespace Internal
23
}
// namespace Halide
24
25
#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::Internal::SyntheticParamType::Type
@ Type
Definition
Generator.h:2897
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
src
Lerp.h
Generated by
1.14.0