diff options
Diffstat (limited to 'final/Bitcode/Benchmarks/Halide/local_laplacian/local_laplacian.h')
-rw-r--r-- | final/Bitcode/Benchmarks/Halide/local_laplacian/local_laplacian.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/final/Bitcode/Benchmarks/Halide/local_laplacian/local_laplacian.h b/final/Bitcode/Benchmarks/Halide/local_laplacian/local_laplacian.h new file mode 100644 index 00000000..4d965fe7 --- /dev/null +++ b/final/Bitcode/Benchmarks/Halide/local_laplacian/local_laplacian.h @@ -0,0 +1,42 @@ +#ifndef HALIDE__local_laplacian_h +#define HALIDE__local_laplacian_h +#ifndef HALIDE_ATTRIBUTE_ALIGN + #ifdef _MSC_VER + #define HALIDE_ATTRIBUTE_ALIGN(x) __declspec(align(x)) + #else + #define HALIDE_ATTRIBUTE_ALIGN(x) __attribute__((aligned(x))) + #endif +#endif +#ifndef BUFFER_T_DEFINED +#define BUFFER_T_DEFINED +#include <stdbool.h> +#include <stdint.h> +typedef struct buffer_t { + uint64_t dev; + uint8_t* host; + int32_t extent[4]; + int32_t stride[4]; + int32_t min[4]; + int32_t elem_size; + HALIDE_ATTRIBUTE_ALIGN(1) bool host_dirty; + HALIDE_ATTRIBUTE_ALIGN(1) bool dev_dirty; + HALIDE_ATTRIBUTE_ALIGN(1) uint8_t _padding[10 - sizeof(void *)]; +} buffer_t; +#endif +struct halide_filter_metadata_t; +#ifndef HALIDE_FUNCTION_ATTRS +#define HALIDE_FUNCTION_ATTRS +#endif +#ifdef __cplusplus +extern "C" { +#endif + +int local_laplacian(int32_t _levels, float _alpha, float _beta, buffer_t *_input_buffer, buffer_t *_local_laplacian_buffer) HALIDE_FUNCTION_ATTRS; +int local_laplacian_argv(void **args) HALIDE_FUNCTION_ATTRS; +// Result is never null and points to constant static data +const struct halide_filter_metadata_t *local_laplacian_metadata() HALIDE_FUNCTION_ATTRS; + +#ifdef __cplusplus +} // extern "C" +#endif +#endif |