Halide
halide_type_t Struct Reference

A runtime tag for a type in the halide type system. More...

#include <HalideRuntime.h>

Public Attributes

uint8_t code
 The basic type code: signed integer, unsigned integer, or floating point. More...
 
uint8_t bits
 The number of bits of precision of a single scalar value of this type. More...
 
uint16_t lanes
 How many elements in a vector. More...
 

Detailed Description

A runtime tag for a type in the halide type system.

Can be ints, unsigned ints, or floats of various bit-widths (the 'bits' field). Can also be vectors of the same (by setting the 'lanes' field to something larger than one). This struct should be exactly 32-bits in size.

Definition at line 426 of file HalideRuntime.h.

Member Data Documentation

◆ code

uint8_t halide_type_t::code

◆ bits

uint8_t halide_type_t::bits

The number of bits of precision of a single scalar value of this type.

Definition at line 438 of file HalideRuntime.h.

Referenced by Halide::Type::bits(), Halide::Internal::IRMatcher::CanProve< A, Prover >::make_folded_const(), and Halide::Internal::IRMatcher::IsFloat< A >::make_folded_const().

◆ lanes


The documentation for this struct was generated from the following file: