Skip to content

Commit 7088b17

Browse files
mnurczynskiglatosinski
authored andcommitted
[#70776] runtimes: tvm: generated: Changed file formatting to fit new version of clang-format
Signed-off-by: Mateusz Nurczynski <[email protected]>
1 parent 1c5dec4 commit 7088b17

File tree

2 files changed

+77
-89
lines changed

2 files changed

+77
-89
lines changed

lib/kenning_inference_lib/runtimes/tvm/generated/magic_wand.c

Lines changed: 47 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -7,62 +7,60 @@
77
#ifdef __cplusplus
88
extern "C"
99
#endif
10-
TVM_DLL int32_t
11-
tvmgen_default_fused_nn_batch_flatten(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
12-
int32_t *out_ret_tcode, void *resource_handle);
10+
TVM_DLL int32_t tvmgen_default_fused_nn_batch_flatten(void *args, int32_t *arg_type_ids, int32_t num_args,
11+
void *out_ret_value, int32_t *out_ret_tcode,
12+
void *resource_handle);
1313
#ifdef __cplusplus
1414
extern "C"
1515
#endif
16-
TVM_DLL int32_t
17-
tvmgen_default_fused_nn_conv2d_add_nn_relu(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
18-
int32_t *out_ret_tcode, void *resource_handle);
16+
TVM_DLL int32_t tvmgen_default_fused_nn_conv2d_add_nn_relu(void *args, int32_t *arg_type_ids, int32_t num_args,
17+
void *out_ret_value, int32_t *out_ret_tcode,
18+
void *resource_handle);
1919
#ifdef __cplusplus
2020
extern "C"
2121
#endif
22-
TVM_DLL int32_t
23-
tvmgen_default_fused_nn_conv2d_add_nn_relu_1(void *args, int32_t *arg_type_ids, int32_t num_args,
24-
void *out_ret_value, int32_t *out_ret_tcode, void *resource_handle);
22+
TVM_DLL int32_t tvmgen_default_fused_nn_conv2d_add_nn_relu_1(void *args, int32_t *arg_type_ids, int32_t num_args,
23+
void *out_ret_value, int32_t *out_ret_tcode,
24+
void *resource_handle);
2525
#ifdef __cplusplus
2626
extern "C"
2727
#endif
28-
TVM_DLL int32_t
29-
tvmgen_default_fused_nn_dense_add(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
30-
int32_t *out_ret_tcode, void *resource_handle);
28+
TVM_DLL int32_t tvmgen_default_fused_nn_dense_add(void *args, int32_t *arg_type_ids, int32_t num_args,
29+
void *out_ret_value, int32_t *out_ret_tcode,
30+
void *resource_handle);
3131
#ifdef __cplusplus
3232
extern "C"
3333
#endif
34-
TVM_DLL int32_t
35-
tvmgen_default_fused_nn_dense_add_nn_relu(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
36-
int32_t *out_ret_tcode, void *resource_handle);
34+
TVM_DLL int32_t tvmgen_default_fused_nn_dense_add_nn_relu(void *args, int32_t *arg_type_ids, int32_t num_args,
35+
void *out_ret_value, int32_t *out_ret_tcode,
36+
void *resource_handle);
3737
#ifdef __cplusplus
3838
extern "C"
3939
#endif
40-
TVM_DLL int32_t
41-
tvmgen_default_fused_nn_max_pool2d(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
42-
int32_t *out_ret_tcode, void *resource_handle);
40+
TVM_DLL int32_t tvmgen_default_fused_nn_max_pool2d(void *args, int32_t *arg_type_ids, int32_t num_args,
41+
void *out_ret_value, int32_t *out_ret_tcode,
42+
void *resource_handle);
4343
#ifdef __cplusplus
4444
extern "C"
4545
#endif
46-
TVM_DLL int32_t
47-
tvmgen_default_fused_nn_max_pool2d_1(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
48-
int32_t *out_ret_tcode, void *resource_handle);
46+
TVM_DLL int32_t tvmgen_default_fused_nn_max_pool2d_1(void *args, int32_t *arg_type_ids, int32_t num_args,
47+
void *out_ret_value, int32_t *out_ret_tcode,
48+
void *resource_handle);
4949
#ifdef __cplusplus
5050
extern "C"
5151
#endif
52-
TVM_DLL int32_t
53-
tvmgen_default_fused_nn_softmax(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
54-
int32_t *out_ret_tcode, void *resource_handle);
52+
TVM_DLL int32_t tvmgen_default_fused_nn_softmax(void *args, int32_t *arg_type_ids, int32_t num_args,
53+
void *out_ret_value, int32_t *out_ret_tcode, void *resource_handle);
5554
#ifdef __cplusplus
5655
extern "C"
5756
#endif
58-
TVM_DLL float
59-
expf(float);
57+
TVM_DLL float expf(float);
6058
#ifdef __cplusplus
6159
extern "C"
6260
#endif
63-
TVM_DLL int32_t
64-
tvmgen_default_fused_nn_batch_flatten(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
65-
int32_t *out_ret_tcode, void *resource_handle)
61+
TVM_DLL int32_t tvmgen_default_fused_nn_batch_flatten(void *args, int32_t *arg_type_ids, int32_t num_args,
62+
void *out_ret_value, int32_t *out_ret_tcode,
63+
void *resource_handle)
6664
{
6765
int32_t p0_code = arg_type_ids[0];
6866
int32_t tensor_code = arg_type_ids[1];
@@ -95,9 +93,9 @@ extern "C"
9593
#ifdef __cplusplus
9694
extern "C"
9795
#endif
98-
TVM_DLL int32_t
99-
tvmgen_default_fused_nn_conv2d_add_nn_relu(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
100-
int32_t *out_ret_tcode, void *resource_handle)
96+
TVM_DLL int32_t tvmgen_default_fused_nn_conv2d_add_nn_relu(void *args, int32_t *arg_type_ids, int32_t num_args,
97+
void *out_ret_value, int32_t *out_ret_tcode,
98+
void *resource_handle)
10199
{
102100
int32_t p0_code = arg_type_ids[0];
103101
int32_t p1_code = arg_type_ids[1];
@@ -180,9 +178,9 @@ extern "C"
180178
#ifdef __cplusplus
181179
extern "C"
182180
#endif
183-
TVM_DLL int32_t
184-
tvmgen_default_fused_nn_conv2d_add_nn_relu_1(void *args, int32_t *arg_type_ids, int32_t num_args,
185-
void *out_ret_value, int32_t *out_ret_tcode, void *resource_handle)
181+
TVM_DLL int32_t tvmgen_default_fused_nn_conv2d_add_nn_relu_1(void *args, int32_t *arg_type_ids, int32_t num_args,
182+
void *out_ret_value, int32_t *out_ret_tcode,
183+
void *resource_handle)
186184
{
187185
int32_t p0_code = arg_type_ids[0];
188186
int32_t p1_code = arg_type_ids[1];
@@ -272,9 +270,9 @@ extern "C"
272270
#ifdef __cplusplus
273271
extern "C"
274272
#endif
275-
TVM_DLL int32_t
276-
tvmgen_default_fused_nn_dense_add(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
277-
int32_t *out_ret_tcode, void *resource_handle)
273+
TVM_DLL int32_t tvmgen_default_fused_nn_dense_add(void *args, int32_t *arg_type_ids, int32_t num_args,
274+
void *out_ret_value, int32_t *out_ret_tcode,
275+
void *resource_handle)
278276
{
279277
int32_t p0_code = arg_type_ids[0];
280278
int32_t p1_code = arg_type_ids[1];
@@ -340,9 +338,9 @@ extern "C"
340338
#ifdef __cplusplus
341339
extern "C"
342340
#endif
343-
TVM_DLL int32_t
344-
tvmgen_default_fused_nn_dense_add_nn_relu(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
345-
int32_t *out_ret_tcode, void *resource_handle)
341+
TVM_DLL int32_t tvmgen_default_fused_nn_dense_add_nn_relu(void *args, int32_t *arg_type_ids, int32_t num_args,
342+
void *out_ret_value, int32_t *out_ret_tcode,
343+
void *resource_handle)
346344
{
347345
int32_t p0_code = arg_type_ids[0];
348346
int32_t p1_code = arg_type_ids[1];
@@ -427,9 +425,9 @@ extern "C"
427425
#ifdef __cplusplus
428426
extern "C"
429427
#endif
430-
TVM_DLL int32_t
431-
tvmgen_default_fused_nn_max_pool2d(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
432-
int32_t *out_ret_tcode, void *resource_handle)
428+
TVM_DLL int32_t tvmgen_default_fused_nn_max_pool2d(void *args, int32_t *arg_type_ids, int32_t num_args,
429+
void *out_ret_value, int32_t *out_ret_tcode,
430+
void *resource_handle)
433431
{
434432
int32_t p0_code = arg_type_ids[0];
435433
int32_t pool_max_code = arg_type_ids[1];
@@ -471,9 +469,9 @@ extern "C"
471469
#ifdef __cplusplus
472470
extern "C"
473471
#endif
474-
TVM_DLL int32_t
475-
tvmgen_default_fused_nn_max_pool2d_1(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
476-
int32_t *out_ret_tcode, void *resource_handle)
472+
TVM_DLL int32_t tvmgen_default_fused_nn_max_pool2d_1(void *args, int32_t *arg_type_ids, int32_t num_args,
473+
void *out_ret_value, int32_t *out_ret_tcode,
474+
void *resource_handle)
477475
{
478476
int32_t p0_code = arg_type_ids[0];
479477
int32_t pool_max_code = arg_type_ids[1];
@@ -512,9 +510,8 @@ extern "C"
512510
#ifdef __cplusplus
513511
extern "C"
514512
#endif
515-
TVM_DLL int32_t
516-
tvmgen_default_fused_nn_softmax(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
517-
int32_t *out_ret_tcode, void *resource_handle)
513+
TVM_DLL int32_t tvmgen_default_fused_nn_softmax(void *args, int32_t *arg_type_ids, int32_t num_args,
514+
void *out_ret_value, int32_t *out_ret_tcode, void *resource_handle)
518515
{
519516
int32_t p0_code = arg_type_ids[0];
520517
int32_t T_softmax_norm_code = arg_type_ids[1];

lib/kenning_inference_lib/runtimes/tvm/generated/magic_wand_int8.c

Lines changed: 30 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
#ifdef __cplusplus
77
extern "C"
88
#endif
9-
TVM_DLL int32_t
10-
tvmgen_default_fused_layout_transform_cast_subtract(void *args, int32_t *arg_type_ids, int32_t num_args,
11-
void *out_ret_value, int32_t *out_ret_tcode,
12-
void *resource_handle)
9+
TVM_DLL int32_t tvmgen_default_fused_layout_transform_cast_subtract(void *args, int32_t *arg_type_ids,
10+
int32_t num_args, void *out_ret_value,
11+
int32_t *out_ret_tcode, void *resource_handle)
1312
{
1413
void *arg_p0 = (((TVMValue *)args)[0].v_handle);
1514
int32_t arg_p0_code = arg_type_ids[0];
@@ -47,10 +46,10 @@ extern "C"
4746
#ifdef __cplusplus
4847
extern "C"
4948
#endif
50-
TVM_DLL int32_t
51-
tvmgen_default_fused_layout_transform_reshape_cast_subtract(void *args, int32_t *arg_type_ids, int32_t num_args,
52-
void *out_ret_value, int32_t *out_ret_tcode,
53-
void *resource_handle)
49+
TVM_DLL int32_t tvmgen_default_fused_layout_transform_reshape_cast_subtract(void *args, int32_t *arg_type_ids,
50+
int32_t num_args, void *out_ret_value,
51+
int32_t *out_ret_tcode,
52+
void *resource_handle)
5453
{
5554
void *arg_p0 = (((TVMValue *)args)[0].v_handle);
5655
int32_t arg_p0_code = arg_type_ids[0];
@@ -88,12 +87,9 @@ extern "C"
8887
#ifdef __cplusplus
8988
extern "C"
9089
#endif
91-
TVM_DLL int32_t
92-
tvmgen_default_fused_nn_conv2d_add_fixed_point_multiply_per_axis_add_clip_cast(void *args, int32_t *arg_type_ids,
93-
int32_t num_args,
94-
void *out_ret_value,
95-
int32_t *out_ret_tcode,
96-
void *resource_handle)
90+
TVM_DLL int32_t tvmgen_default_fused_nn_conv2d_add_fixed_point_multiply_per_axis_add_clip_cast(
91+
void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value, int32_t *out_ret_tcode,
92+
void *resource_handle)
9793
{
9894
void *arg_p0 = (((TVMValue *)args)[0].v_handle);
9995
int32_t arg_p0_code = arg_type_ids[0];
@@ -272,12 +268,9 @@ extern "C"
272268
#ifdef __cplusplus
273269
extern "C"
274270
#endif
275-
TVM_DLL int32_t
276-
tvmgen_default_fused_nn_conv2d_add_fixed_point_multiply_per_axis_add_clip_cast_1(void *args, int32_t *arg_type_ids,
277-
int32_t num_args,
278-
void *out_ret_value,
279-
int32_t *out_ret_tcode,
280-
void *resource_handle)
271+
TVM_DLL int32_t tvmgen_default_fused_nn_conv2d_add_fixed_point_multiply_per_axis_add_clip_cast_1(
272+
void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value, int32_t *out_ret_tcode,
273+
void *resource_handle)
281274
{
282275
void *arg_p0 = (((TVMValue *)args)[0].v_handle);
283276
int32_t arg_p0_code = arg_type_ids[0];
@@ -436,10 +429,9 @@ extern "C"
436429
#ifdef __cplusplus
437430
extern "C"
438431
#endif
439-
TVM_DLL int32_t
440-
tvmgen_default_fused_nn_dense_add_fixed_point_multiply_add_clip_cast(void *args, int32_t *arg_type_ids,
441-
int32_t num_args, void *out_ret_value,
442-
int32_t *out_ret_tcode, void *resource_handle)
432+
TVM_DLL int32_t tvmgen_default_fused_nn_dense_add_fixed_point_multiply_add_clip_cast(
433+
void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value, int32_t *out_ret_tcode,
434+
void *resource_handle)
443435
{
444436
void *arg_p0 = (((TVMValue *)args)[0].v_handle);
445437
int32_t arg_p0_code = arg_type_ids[0];
@@ -539,8 +531,7 @@ extern "C"
539531
#ifdef __cplusplus
540532
extern "C"
541533
#endif
542-
TVM_DLL int32_t
543-
tvmgen_default_fused_nn_dense_add_fixed_point_multiply_add_clip_subtract_cast_multiply(
534+
TVM_DLL int32_t tvmgen_default_fused_nn_dense_add_fixed_point_multiply_add_clip_subtract_cast_multiply(
544535
void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value, int32_t *out_ret_tcode,
545536
void *resource_handle)
546537
{
@@ -617,9 +608,9 @@ extern "C"
617608
#ifdef __cplusplus
618609
extern "C"
619610
#endif
620-
TVM_DLL int32_t
621-
tvmgen_default_fused_nn_max_pool2d(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
622-
int32_t *out_ret_tcode, void *resource_handle)
611+
TVM_DLL int32_t tvmgen_default_fused_nn_max_pool2d(void *args, int32_t *arg_type_ids, int32_t num_args,
612+
void *out_ret_value, int32_t *out_ret_tcode,
613+
void *resource_handle)
623614
{
624615
void *arg_p0 = (((TVMValue *)args)[0].v_handle);
625616
int32_t arg_p0_code = arg_type_ids[0];
@@ -658,9 +649,9 @@ extern "C"
658649
#ifdef __cplusplus
659650
extern "C"
660651
#endif
661-
TVM_DLL int32_t
662-
tvmgen_default_fused_nn_max_pool2d_cast_subtract(void *args, int32_t *arg_type_ids, int32_t num_args,
663-
void *out_ret_value, int32_t *out_ret_tcode, void *resource_handle)
652+
TVM_DLL int32_t tvmgen_default_fused_nn_max_pool2d_cast_subtract(void *args, int32_t *arg_type_ids,
653+
int32_t num_args, void *out_ret_value,
654+
int32_t *out_ret_tcode, void *resource_handle)
664655
{
665656
void *arg_p0 = (((TVMValue *)args)[0].v_handle);
666657
int32_t arg_p0_code = arg_type_ids[0];
@@ -716,10 +707,10 @@ extern "C"
716707
#ifdef __cplusplus
717708
extern "C"
718709
#endif
719-
TVM_DLL int32_t
720-
tvmgen_default_fused_nn_softmax_divide_round_add_clip_cast(void *args, int32_t *arg_type_ids, int32_t num_args,
721-
void *out_ret_value, int32_t *out_ret_tcode,
722-
void *resource_handle)
710+
TVM_DLL int32_t tvmgen_default_fused_nn_softmax_divide_round_add_clip_cast(void *args, int32_t *arg_type_ids,
711+
int32_t num_args, void *out_ret_value,
712+
int32_t *out_ret_tcode,
713+
void *resource_handle)
723714
{
724715
void *arg_p0 = (((TVMValue *)args)[0].v_handle);
725716
int32_t arg_p0_code = arg_type_ids[0];
@@ -773,9 +764,9 @@ extern "C"
773764
#ifdef __cplusplus
774765
extern "C"
775766
#endif
776-
TVM_DLL int32_t
777-
tvmgen_default_fused_reshape_cast_subtract(void *args, int32_t *arg_type_ids, int32_t num_args, void *out_ret_value,
778-
int32_t *out_ret_tcode, void *resource_handle)
767+
TVM_DLL int32_t tvmgen_default_fused_reshape_cast_subtract(void *args, int32_t *arg_type_ids, int32_t num_args,
768+
void *out_ret_value, int32_t *out_ret_tcode,
769+
void *resource_handle)
779770
{
780771
void *arg_p0 = (((TVMValue *)args)[0].v_handle);
781772
int32_t arg_p0_code = arg_type_ids[0];

0 commit comments

Comments
 (0)