← Back to C-Kernel-Engine Docs Doxygen Source Documentation
ckernel_codegen_v2.h
Go to the documentation of this file.
1 #ifndef CKERNEL_CODEGEN_V2_H
2 #define CKERNEL_CODEGEN_V2_H
3 
4 #include "ckernel_codegen.h"
5 #include "ckernel_ir_v2.h"
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 /**
12  * Emit a C runtime file from a CKIRV2Graph.
13  *
14  * This v2 emitter is IR-driven and will evolve to generate fully wired
15  * kernels once buffer bindings and fusion metadata are added to the IR.
16  */
18  const char *path,
19  CKEmitMode mode);
20 
21 #ifdef __cplusplus
22 } /* extern "C" */
23 #endif
24 
25 #endif /* CKERNEL_CODEGEN_V2_H */
CKEmitMode
int ck_codegen_v2_emit_runtime(const CKIRV2Graph *graph, const char *path, CKEmitMode mode)