xref: /aosp_15_r20/external/XNNPACK/src/ukernel-strings.c (revision 4bdc94577ba0e567308109d787f7fec7b531ce36)
1 // Copyright 2022 Google LLC
2 //
3 // This source code is licensed under the BSD-style license found in the
4 // LICENSE file in the root directory of this source tree.
5 //
6 // Auto-generated file. Do not edit!
7 //   Specification: src/ukernel-strings.yaml
8 //   Generator: tools/generate-enum-strings.py
9 
10 
11 #include <assert.h>
12 #include <stdint.h>
13 
14 #include <xnnpack/ukernel-type.h>
15 
16 static const uint16_t offset[] = {0,8,24,39,46,51,57,83,88,98};
17 
18 static const char *data =
19     "Default\0"
20     "Average Pooling\0"
21     "Conv2D HWC2CHW\0"
22     "DWConv\0"
23     "GEMM\0"
24     "IGEMM\0"
25     "Pixelwise Average Pooling\0"
26     "SPMM\0"
27     "Subconv2D\0"
28     "VMulCAddC\0"
29 ;
30 
xnn_ukernel_type_to_string(enum xnn_ukernel_type type)31 const char* xnn_ukernel_type_to_string(enum xnn_ukernel_type type) {
32   assert(type <= xnn_ukernel_type_vmulcaddc);
33   return &data[offset[type]];
34 }