xref: /aosp_15_r20/external/XNNPACK/scripts/generate-enums.sh (revision 4bdc94577ba0e567308109d787f7fec7b531ce36)
1#!/bin/sh
2# Copyright 2022 Google LLC
3#
4# This source code is licensed under the BSD-style license found in the
5# LICENSE file in the root directory of this source tree.
6
7############################### xnn_operator_type ##############################
8tools/generate-enum-strings.py --spec src/operator-strings.yaml --output=src/operator-strings.c --enum operator &
9tools/generate-enum.py --spec src/operator-strings.yaml --output=src/xnnpack/operator-type.h --enum operator &
10
11
12############################### xnn_ukernel_type ##############################
13tools/generate-enum-strings.py --spec src/ukernel-strings.yaml --output=src/ukernel-strings.c --enum ukernel &
14tools/generate-enum.py --spec src/ukernel-strings.yaml --output=src/xnnpack/ukernel-type.h --enum ukernel &
15
16wait
17