Go to the documentation of this file. 1 #ifndef HALIDE_IR_ELIMINATE_BOOL_VECTORS_H
2 #define HALIDE_IR_ELIMINATE_BOOL_VECTORS_H
Stmt eliminate_bool_vectors(const Stmt &s)
Some targets treat vectors of bools as integers of the same type that the boolean operation is being ...
Type with_code(halide_type_code_t new_code) const
Return Type with same number of bits and lanes, but new_code for a type code.
static const halide_type_code_t Int
Aliases for halide_type_code_t values for legacy compatibility and to match the Halide internal C++ s...
HALIDE_ALWAYS_INLINE bool is_vector() const
Is this type a vector type? (lanes() != 1).
Types in the halide type system.
Type with_bits(int new_bits) const
Return Type with same type code and lanes, but new_bits for the number of bits.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
@ Internal
Not visible externally, similar to 'static' linkage in C.
HALIDE_ALWAYS_INLINE int bits() const
Return the bit size of a single element of this type.
Type eliminated_bool_type(Type bool_type, Type other_type)
If a type is a boolean vector, find the type that it has been changed to by eliminate_bool_vectors.