Dana Zlotnik | d5c496d | 2021-11-28 14:46:12 +0200 | [diff] [blame] | 1 | /* |
Viet-Hoa Do | fd472f0 | 2023-03-15 14:05:06 +0000 | [diff] [blame] | 2 | * Copyright (c) 2022-2023 Arm Limited. |
Dana Zlotnik | d5c496d | 2021-11-28 14:46:12 +0200 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: MIT |
| 5 | * |
| 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | * of this software and associated documentation files (the "Software"), to |
| 8 | * deal in the Software without restriction, including without limitation the |
| 9 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
| 10 | * sell copies of the Software, and to permit persons to whom the Software is |
| 11 | * furnished to do so, subject to the following conditions: |
| 12 | * |
| 13 | * The above copyright notice and this permission notice shall be included in all |
| 14 | * copies or substantial portions of the Software. |
| 15 | * |
| 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | * SOFTWARE. |
| 23 | */ |
| 24 | #ifndef SRC_CORE_KERNELS_ELEMETWISE_UNARY_LIST_H |
| 25 | #define SRC_CORE_KERNELS_ELEMETWISE_UNARY_LIST_H |
| 26 | |
| 27 | #include "src/cpu/kernels/elementwise_unary/generic/neon/impl.h" |
| 28 | #include "src/cpu/kernels/elementwise_unary/generic/sve/impl.h" |
| 29 | |
| 30 | namespace arm_compute |
| 31 | { |
| 32 | namespace cpu |
| 33 | { |
| 34 | #define DECLARE_ELEMETWISE_UNARY_KERNEL(func_name) \ |
Viet-Hoa Do | fd472f0 | 2023-03-15 14:05:06 +0000 | [diff] [blame] | 35 | void func_name(const ITensor *in, ITensor *out, const Window &window, ElementWiseUnary op, const uint8_t *lut) |
Dana Zlotnik | d5c496d | 2021-11-28 14:46:12 +0200 | [diff] [blame] | 36 | |
| 37 | DECLARE_ELEMETWISE_UNARY_KERNEL(sve_fp32_elementwise_unary); |
| 38 | DECLARE_ELEMETWISE_UNARY_KERNEL(sve_fp16_elementwise_unary); |
| 39 | DECLARE_ELEMETWISE_UNARY_KERNEL(sve_s32_elementwise_unary); |
SiCong Li | 3f70cd0 | 2023-05-17 13:46:13 +0100 | [diff] [blame] | 40 | DECLARE_ELEMETWISE_UNARY_KERNEL(sve2_q8_elementwise_unary); |
Dana Zlotnik | d5c496d | 2021-11-28 14:46:12 +0200 | [diff] [blame] | 41 | DECLARE_ELEMETWISE_UNARY_KERNEL(neon_fp32_elementwise_unary); |
| 42 | DECLARE_ELEMETWISE_UNARY_KERNEL(neon_fp16_elementwise_unary); |
| 43 | DECLARE_ELEMETWISE_UNARY_KERNEL(neon_s32_elementwise_unary); |
Viet-Hoa Do | fd472f0 | 2023-03-15 14:05:06 +0000 | [diff] [blame] | 44 | DECLARE_ELEMETWISE_UNARY_KERNEL(neon_q8_elementwise_unary); |
Ramy Elgammal | b84df20 | 2023-04-12 17:31:10 +0100 | [diff] [blame] | 45 | #ifndef __aarch64__ |
Ramy Elgammal | 8b7f42a | 2023-03-31 16:16:15 +0100 | [diff] [blame] | 46 | DECLARE_ELEMETWISE_UNARY_KERNEL(neon_qasymm8_signed_elementwise_unary); |
| 47 | DECLARE_ELEMETWISE_UNARY_KERNEL(neon_qasymm8_elementwise_unary); |
Ramy Elgammal | b84df20 | 2023-04-12 17:31:10 +0100 | [diff] [blame] | 48 | #endif // __aarch64__ |
Dana Zlotnik | d5c496d | 2021-11-28 14:46:12 +0200 | [diff] [blame] | 49 | #undef DECLARE_ELEMETWISE_UNARY_KERNEL |
| 50 | |
| 51 | } // namespace cpu |
| 52 | } // namespace arm_compute |
Viet-Hoa Do | fd472f0 | 2023-03-15 14:05:06 +0000 | [diff] [blame] | 53 | #endif // SRC_CORE_KERNELS_ELEMETWISE_UNARY_LIST_H |