halide_scalar_value_t#

struct halide_scalar_value_t#

halide_scalar_value_t is a simple union able to represent all the well-known scalar values in a filter argument.

Note that it isn’t tagged with a type; you must ensure you know the proper type before accessing. Most user code will never need to create instances of this struct; its primary use is to hold def/min/max values in a halide_filter_argument_t. (Note that this is conceptually just a union; it’s wrapped in a struct to ensure that it doesn’t get anonymized by LLVM.)

[union].u