1 #ifndef HALIDE_CONCISE_CASTS_H 2 #define HALIDE_CONCISE_CASTS_H 16 namespace ConciseCasts {
20 return cast(t, std::move(e));
25 return cast(t, std::move(e));
30 return cast(t, std::move(e));
35 return cast(t, std::move(e));
40 return cast(t, std::move(e));
45 return cast(t, std::move(e));
50 return cast(t, std::move(e));
55 return cast(t, std::move(e));
60 return cast(t, std::move(e));
65 return cast(t, std::move(e));
70 return cast(t, std::move(e));
75 return cast(t, std::move(e));
A fragment of Halide syntax.
HALIDE_ALWAYS_INLINE int lanes() const
Return the number of vector elements in this type.
Expr cast(Expr a)
Cast an expression to the halide type corresponding to the C++ type T.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline, and contains methods to using Halide's bounds tools to query properties of it.
HALIDE_ALWAYS_INLINE Type type() const
Get the type of this expression node.
Defines various operator overloads and utility functions that make it more pleasant to work with Hali...
Type BFloat(int bits, int lanes=1)
Construct a floating-point type in the bfloat format.
Type UInt(int bits, int lanes=1)
Constructing an unsigned integer type.
Types in the halide type system.
Type Int(int bits, int lanes=1)
Constructing a signed integer type.
Expr saturating_cast(Expr e)
Cast an expression to the halide type corresponding to the C++ type T.
Type Float(int bits, int lanes=1)
Construct a floating-point type.