Halide
12.0.1
Halide compiler and libraries
|
Go to the source code of this file.
Classes | |
struct | halide_pseudostack_slot_t |
Namespaces | |
Halide | |
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::Runtime | |
Halide::Runtime::Internal | |
Macros | |
#define | WEAK __attribute__((weak)) |
#define | ALWAYS_INLINE inline __attribute__((always_inline)) |
#define | WEAK_INLINE __attribute__((weak, always_inline)) |
#define | STDOUT_FILENO 1 |
#define | STDERR_FILENO 2 |
#define | _halide_stringify(x) #x |
A macro that calls halide_print if the supplied condition is false, then aborts. More... | |
#define | _halide_expand_and_stringify(x) _halide_stringify(x) |
#define | halide_assert(user_context, cond) |
Typedefs | |
typedef signed __INT64_TYPE__ | int64_t |
typedef unsigned __INT64_TYPE__ | uint64_t |
typedef signed __INT32_TYPE__ | int32_t |
typedef unsigned __INT32_TYPE__ | uint32_t |
typedef signed __INT16_TYPE__ | int16_t |
typedef unsigned __INT16_TYPE__ | uint16_t |
typedef signed __INT8_TYPE__ | int8_t |
typedef unsigned __INT8_TYPE__ | uint8_t |
typedef __SIZE_TYPE__ | size_t |
typedef __PTRDIFF_TYPE__ | ptrdiff_t |
typedef ptrdiff_t | ssize_t |
Functions | |
void * | halide_malloc (void *user_context, size_t x) |
void | halide_free (void *user_context, void *ptr) |
WEAK int64_t | halide_current_time_ns (void *user_context) |
WEAK void | halide_print (void *user_context, const char *msg) |
WEAK void | halide_error (void *user_context, const char *msg) |
char * | getenv (const char *) |
void | free (void *) |
void * | malloc (size_t) |
const char * | strstr (const char *, const char *) |
int | atoi (const char *) |
int | strcmp (const char *s, const char *t) |
int | strncmp (const char *s, const char *t, size_t n) |
size_t | strlen (const char *s) |
const char * | strchr (const char *s, int c) |
void * | memcpy (void *s1, const void *s2, size_t n) |
int | memcmp (const void *s1, const void *s2, size_t n) |
void * | memset (void *s, int val, size_t n) |
void * | fopen (const char *, const char *) |
int | fileno (void *) |
int | fclose (void *) |
int | close (int) |
size_t | fwrite (const void *, size_t, size_t, void *) |
ssize_t | write (int fd, const void *buf, size_t bytes) |
int | remove (const char *pathname) |
int | ioctl (int fd, unsigned long request,...) |
char * | strncpy (char *dst, const char *src, size_t n) |
void | abort () |
WEAK char * | halide_string_to_string (char *dst, char *end, const char *arg) |
WEAK char * | halide_double_to_string (char *dst, char *end, double arg, int scientific) |
WEAK char * | halide_int64_to_string (char *dst, char *end, int64_t arg, int digits) |
WEAK char * | halide_uint64_to_string (char *dst, char *end, uint64_t arg, int digits) |
WEAK char * | halide_pointer_to_string (char *dst, char *end, const void *arg) |
WEAK char * | halide_buffer_to_string (char *dst, char *end, const halide_buffer_t *arg) |
WEAK char * | halide_type_to_string (char *dst, char *end, const halide_type_t *arg) |
WEAK void * | halide_get_symbol (const char *name) |
WEAK void * | halide_load_library (const char *name) |
WEAK void * | halide_get_library_symbol (void *lib, const char *name) |
WEAK int | halide_start_clock (void *user_context) |
WEAK void | halide_sleep_ms (void *user_context, int ms) |
WEAK void | halide_device_free_as_destructor (void *user_context, void *obj) |
WEAK void | halide_device_and_host_free_as_destructor (void *user_context, void *obj) |
WEAK void | halide_device_host_nop_free (void *user_context, void *obj) |
WEAK void | halide_profiler_stack_peak_update (void *user_context, void *pipeline_state, uint64_t *f_values) |
WEAK void | halide_profiler_memory_allocate (void *user_context, void *pipeline_state, int func_id, uint64_t incr) |
WEAK void | halide_profiler_memory_free (void *user_context, void *pipeline_state, int func_id, uint64_t decr) |
WEAK int | halide_profiler_pipeline_start (void *user_context, const char *pipeline_name, int num_funcs, const uint64_t *func_names) |
WEAK int | halide_host_cpu_count () |
WEAK int | halide_device_and_host_malloc (void *user_context, struct halide_buffer_t *buf, const struct halide_device_interface_t *device_interface) |
WEAK int | halide_device_and_host_free (void *user_context, struct halide_buffer_t *buf) |
WEAK int | halide_matlab_call_pipeline (void *user_context, int(*pipeline)(void **args), const halide_filter_metadata_t *metadata, int nlhs, mxArray **plhs, int nrhs, const mxArray **prhs) |
WEAK int | halide_trace_helper (void *user_context, const char *func, void *value, int *coords, int type_code, int type_bits, int type_lanes, int code, int parent_id, int value_index, int dimensions, const char *trace_tag) |
WEAK void | halide_use_jit_module () |
WEAK void | halide_release_jit_module () |
WEAK_INLINE int | halide_malloc_alignment () |
void | halide_thread_yield () |
Variables | |
WEAK void(*)(void *, const char *) | halide_set_custom_print (void(*print)(void *, const char *)) |
WEAK void(*)(void *, const char *) | halide_set_error_handler (void(*handler)(void *, const char *)) |
#define WEAK __attribute__((weak)) |
Definition at line 48 of file runtime_internal.h.
#define ALWAYS_INLINE inline __attribute__((always_inline)) |
Definition at line 51 of file runtime_internal.h.
#define WEAK_INLINE __attribute__((weak, always_inline)) |
Definition at line 54 of file runtime_internal.h.
#define STDOUT_FILENO 1 |
Definition at line 72 of file runtime_internal.h.
#define STDERR_FILENO 2 |
Definition at line 73 of file runtime_internal.h.
#define _halide_stringify | ( | x | ) | #x |
A macro that calls halide_print if the supplied condition is false, then aborts.
Used for unrecoverable errors, or should-never-happen errors.
Definition at line 230 of file runtime_internal.h.
#define _halide_expand_and_stringify | ( | x | ) | _halide_stringify(x) |
Definition at line 231 of file runtime_internal.h.
#define halide_assert | ( | user_context, | |
cond | |||
) |
Definition at line 232 of file runtime_internal.h.
typedef signed __INT64_TYPE__ int64_t |
Definition at line 18 of file runtime_internal.h.
typedef unsigned __INT64_TYPE__ uint64_t |
Definition at line 19 of file runtime_internal.h.
typedef signed __INT32_TYPE__ int32_t |
Definition at line 20 of file runtime_internal.h.
typedef unsigned __INT32_TYPE__ uint32_t |
Definition at line 21 of file runtime_internal.h.
typedef signed __INT16_TYPE__ int16_t |
Definition at line 22 of file runtime_internal.h.
typedef unsigned __INT16_TYPE__ uint16_t |
Definition at line 23 of file runtime_internal.h.
typedef signed __INT8_TYPE__ int8_t |
Definition at line 24 of file runtime_internal.h.
typedef unsigned __INT8_TYPE__ uint8_t |
Definition at line 25 of file runtime_internal.h.
typedef __SIZE_TYPE__ size_t |
Definition at line 27 of file runtime_internal.h.
typedef __PTRDIFF_TYPE__ ptrdiff_t |
Definition at line 28 of file runtime_internal.h.
Definition at line 30 of file runtime_internal.h.
void* halide_malloc | ( | void * | user_context, |
size_t | x | ||
) |
void halide_free | ( | void * | user_context, |
void * | ptr | ||
) |
WEAK void halide_print | ( | void * | user_context, |
const char * | msg | ||
) |
WEAK void halide_error | ( | void * | user_context, |
const char * | msg | ||
) |
char* getenv | ( | const char * | ) |
void free | ( | void * | ) |
Referenced by Halide::Runtime::Buffer< T, D >::allocate(), Halide::Internal::Test::get_current_directory(), Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::release_all(), Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::resize_table(), and Halide::Runtime::Internal::Synchronization::unpark_all().
void* malloc | ( | size_t | ) |
const char* strstr | ( | const char * | , |
const char * | |||
) |
int atoi | ( | const char * | ) |
int strcmp | ( | const char * | s, |
const char * | t | ||
) |
int strncmp | ( | const char * | s, |
const char * | t, | ||
size_t | n | ||
) |
Referenced by cmdline::parser::parse().
size_t strlen | ( | const char * | s | ) |
const char* strchr | ( | const char * | s, |
int | c | ||
) |
Referenced by cmdline::parser::parse().
void* memcpy | ( | void * | s1, |
const void * | s2, | ||
size_t | n | ||
) |
int memcmp | ( | const void * | s1, |
const void * | s2, | ||
size_t | n | ||
) |
Referenced by Halide::Runtime::Internal::keys_equal().
void* memset | ( | void * | s, |
int | val, | ||
size_t | n | ||
) |
void* fopen | ( | const char * | , |
const char * | |||
) |
int fileno | ( | void * | ) |
int fclose | ( | void * | ) |
int close | ( | int | ) |
int remove | ( | const char * | pathname | ) |
int ioctl | ( | int | fd, |
unsigned long | request, | ||
... | |||
) |
char* strncpy | ( | char * | dst, |
const char * | src, | ||
size_t | n | ||
) |
void abort | ( | ) |
WEAK char* halide_string_to_string | ( | char * | dst, |
char * | end, | ||
const char * | arg | ||
) |
WEAK char* halide_double_to_string | ( | char * | dst, |
char * | end, | ||
double | arg, | ||
int | scientific | ||
) |
WEAK char* halide_pointer_to_string | ( | char * | dst, |
char * | end, | ||
const void * | arg | ||
) |
WEAK char* halide_buffer_to_string | ( | char * | dst, |
char * | end, | ||
const halide_buffer_t * | arg | ||
) |
WEAK char* halide_type_to_string | ( | char * | dst, |
char * | end, | ||
const halide_type_t * | arg | ||
) |
WEAK void* halide_get_symbol | ( | const char * | name | ) |
WEAK void* halide_load_library | ( | const char * | name | ) |
WEAK void* halide_get_library_symbol | ( | void * | lib, |
const char * | name | ||
) |
WEAK int halide_start_clock | ( | void * | user_context | ) |
WEAK void halide_sleep_ms | ( | void * | user_context, |
int | ms | ||
) |
WEAK void halide_device_free_as_destructor | ( | void * | user_context, |
void * | obj | ||
) |
WEAK void halide_device_and_host_free_as_destructor | ( | void * | user_context, |
void * | obj | ||
) |
WEAK void halide_device_host_nop_free | ( | void * | user_context, |
void * | obj | ||
) |
WEAK void halide_profiler_stack_peak_update | ( | void * | user_context, |
void * | pipeline_state, | ||
uint64_t * | f_values | ||
) |
WEAK void halide_profiler_memory_allocate | ( | void * | user_context, |
void * | pipeline_state, | ||
int | func_id, | ||
uint64_t | incr | ||
) |
WEAK void halide_profiler_memory_free | ( | void * | user_context, |
void * | pipeline_state, | ||
int | func_id, | ||
uint64_t | decr | ||
) |
WEAK int halide_profiler_pipeline_start | ( | void * | user_context, |
const char * | pipeline_name, | ||
int | num_funcs, | ||
const uint64_t * | func_names | ||
) |
WEAK int halide_host_cpu_count | ( | ) |
Referenced by Halide::Runtime::Internal::default_desired_num_threads().
WEAK int halide_device_and_host_malloc | ( | void * | user_context, |
struct halide_buffer_t * | buf, | ||
const struct halide_device_interface_t * | device_interface | ||
) |
WEAK int halide_device_and_host_free | ( | void * | user_context, |
struct halide_buffer_t * | buf | ||
) |
WEAK int halide_matlab_call_pipeline | ( | void * | user_context, |
int(*)(void **args) | pipeline, | ||
const halide_filter_metadata_t * | metadata, | ||
int | nlhs, | ||
mxArray ** | plhs, | ||
int | nrhs, | ||
const mxArray ** | prhs | ||
) |
WEAK int halide_trace_helper | ( | void * | user_context, |
const char * | func, | ||
void * | value, | ||
int * | coords, | ||
int | type_code, | ||
int | type_bits, | ||
int | type_lanes, | ||
int | code, | ||
int | parent_id, | ||
int | value_index, | ||
int | dimensions, | ||
const char * | trace_tag | ||
) |
WEAK void halide_use_jit_module | ( | ) |
WEAK void halide_release_jit_module | ( | ) |
WEAK_INLINE int halide_malloc_alignment | ( | ) |
void halide_thread_yield | ( | ) |
Referenced by Halide::Runtime::Internal::worker_thread_already_locked().
WEAK void(*)(void *, const char *) halide_set_custom_print(void(*print)(void *, const char *)) | ( | void(*)(void *, const char *) | ) |
Definition at line 82 of file runtime_internal.h.
WEAK void(*)(void *, const char *) halide_set_error_handler(void(*handler)(void *, const char *)) | ( | void(*)(void *, const char *) | handler | ) |
Definition at line 83 of file runtime_internal.h.