forked from YADRO-KNS/halide_riscv
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor (julia): riscv asm gen, compute_root * add (julia): gen asm, header * refactor: halide runtime * add: rutime object
- Loading branch information
Showing
6 changed files
with
475 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#ifndef HALIDE__halide_julia_rv_h | ||
#define HALIDE__halide_julia_rv_h | ||
#include <stdint.h> | ||
|
||
// Forward declarations of the types used in the interface | ||
// to the Halide pipeline. | ||
// | ||
// For the definitions of these structs, include HalideRuntime.h | ||
|
||
// Halide's representation of a multi-dimensional array. | ||
// Halide::Runtime::Buffer is a more user-friendly wrapper | ||
// around this. Its declaration is in HalideBuffer.h | ||
struct halide_buffer_t; | ||
|
||
// Metadata describing the arguments to the generated function. | ||
// Used to construct calls to the _argv version of the function. | ||
struct halide_filter_metadata_t; | ||
|
||
#ifndef HALIDE_MUST_USE_RESULT | ||
#ifdef __has_attribute | ||
#if __has_attribute(nodiscard) | ||
#define HALIDE_MUST_USE_RESULT [[nodiscard]] | ||
#elif __has_attribute(warn_unused_result) | ||
#define HALIDE_MUST_USE_RESULT __attribute__((warn_unused_result)) | ||
#else | ||
#define HALIDE_MUST_USE_RESULT | ||
#endif | ||
#else | ||
#define HALIDE_MUST_USE_RESULT | ||
#endif | ||
#endif | ||
|
||
#ifndef HALIDE_FUNCTION_ATTRS | ||
#define HALIDE_FUNCTION_ATTRS | ||
#endif | ||
|
||
|
||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
HALIDE_FUNCTION_ATTRS | ||
int halide_julia_rv(struct halide_buffer_t *_f0_buffer); | ||
|
||
HALIDE_FUNCTION_ATTRS | ||
int halide_julia_rv_argv(void **args); | ||
|
||
HALIDE_FUNCTION_ATTRS | ||
const struct halide_filter_metadata_t *halide_julia_rv_metadata(); | ||
|
||
#ifdef __cplusplus | ||
} // extern "C" | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.