← Back to C-Kernel-Engine Docs Doxygen Source Documentation
ckernel_ir_v2_lower.h
Go to the documentation of this file.
1 #ifndef CKERNEL_IR_V2_LOWER_H
2 #define CKERNEL_IR_V2_LOWER_H
3 
4 #include "ckernel_ir_v2.h"
5 #include "ckernel_mem_plan.h"
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 typedef enum {
16 
18 int ck_ir_v2_lower_mode_from_string(const char *name, CKIRV2LowerMode *out_mode);
19 
20 int ck_ir_v2_lower_graph(const CKIRV2Graph *input,
21  CKIRV2LowerMode mode,
22  CKIRV2Graph *output,
23  CKMemPlan *plan);
24 
25 int ck_ir_v2_lower_emit_json(const CKIRV2Graph *input,
26  CKIRV2LowerMode mode,
27  const char *path);
28 
29 #ifdef __cplusplus
30 } /* extern "C" */
31 #endif
32 
33 #endif /* CKERNEL_IR_V2_LOWER_H */
const char * ck_ir_v2_lower_mode_name(CKIRV2LowerMode mode)
int ck_ir_v2_lower_emit_json(const CKIRV2Graph *input, CKIRV2LowerMode mode, const char *path)
CKIRV2LowerMode
@ CK_IR_V2_LOWER_BACKWARD
@ CK_IR_V2_LOWER_DECODE
@ CK_IR_V2_LOWER_PREFILL
int ck_ir_v2_lower_mode_from_string(const char *name, CKIRV2LowerMode *out_mode)
int ck_ir_v2_lower_graph(const CKIRV2Graph *input, CKIRV2LowerMode mode, CKIRV2Graph *output, CKMemPlan *plan)