← Back to C-Kernel-Engine Docs Doxygen Source Documentation
ckernel_codegen_v2_emit.h
Go to the documentation of this file.
1 #ifndef CKERNEL_CODEGEN_V2_EMIT_H
2 #define CKERNEL_CODEGEN_V2_EMIT_H
3 
4 #include "ckernel_ir_v2.h"
5 #include "ckernel_mem_plan.h"
6 
7 #include <stdio.h>
8 
9 int ck_codegen_v2_emit_preamble(FILE *out);
10 void ck_codegen_v2_emit_struct(FILE *out,
11  const CKIRV2Graph *graph,
12  const CKMemPlan *plan,
13  const char *tag);
14 void ck_codegen_v2_emit_dispatch(FILE *out, const CKIRV2Graph *graph);
15 void ck_codegen_v2_emit_schedule(FILE *out,
16  const CKIRV2Graph *graph,
17  const char *prefill_runtime,
18  const char *decode_runtime,
19  const char *backward_runtime);
20 void ck_codegen_v2_emit_sections(FILE *out,
21  const CKIRV2Graph *graph,
22  const CKMemPlan *prefill_plan,
23  const CKMemPlan *decode_plan,
24  const CKMemPlan *backward_plan);
25 
26 #endif /* CKERNEL_CODEGEN_V2_EMIT_H */
void ck_codegen_v2_emit_struct(FILE *out, const CKIRV2Graph *graph, const CKMemPlan *plan, const char *tag)
void ck_codegen_v2_emit_dispatch(FILE *out, const CKIRV2Graph *graph)
void ck_codegen_v2_emit_sections(FILE *out, const CKIRV2Graph *graph, const CKMemPlan *prefill_plan, const CKMemPlan *decode_plan, const CKMemPlan *backward_plan)
void ck_codegen_v2_emit_schedule(FILE *out, const CKIRV2Graph *graph, const char *prefill_runtime, const char *decode_runtime, const char *backward_runtime)
int ck_codegen_v2_emit_preamble(FILE *out)