|
| 1 | +/******************************************************************************* |
| 2 | +* Copyright 2020-2023 Intel Corporation |
| 3 | +* |
| 4 | +* Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +* you may not use this file except in compliance with the License. |
| 6 | +* You may obtain a copy of the License at |
| 7 | +* |
| 8 | +* http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +* |
| 10 | +* Unless required by applicable law or agreed to in writing, software |
| 11 | +* distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +* See the License for the specific language governing permissions and |
| 14 | +* limitations under the License. |
| 15 | +*******************************************************************************/ |
| 16 | + |
| 17 | +#include "cpu/reorder/cpu_reorder.hpp" |
| 18 | + |
| 19 | +namespace dnnl { |
| 20 | +namespace impl { |
| 21 | +namespace cpu { |
| 22 | + |
| 23 | +// clang-format off |
| 24 | + |
| 25 | +const impl_list_map_t ®ular_s64_impl_list_map() { |
| 26 | + static const impl_list_map_t the_map = REG_REORDER_P({ |
| 27 | + // s32 -> |
| 28 | + {{s64, data_type::undef, 0}, { |
| 29 | + REG_FAST_DIRECT_COPY(s64, f32) |
| 30 | + REG_FAST_DIRECT_COPY(s64, s64) |
| 31 | + REG_FAST_DIRECT_COPY(s64, s32) |
| 32 | + REG_FAST_DIRECT_COPY(s64, s8) |
| 33 | + REG_FAST_DIRECT_COPY(s64, u8) |
| 34 | + |
| 35 | + DNNL_X64_ONLY(CPU_REORDER_INSTANCE(x64_jit_blk_reorder_t)) |
| 36 | + DNNL_X64_ONLY(CPU_REORDER_INSTANCE(x64_jit_uni_reorder_t)) |
| 37 | + |
| 38 | + DNNL_AARCH64_ONLY(CPU_REORDER_INSTANCE(aarch64_jit_uni_reorder_t)) |
| 39 | + |
| 40 | + DNNL_NON_X64_ONLY(REG_SR_BIDIR(s64, any, f32, nChw16c)) |
| 41 | + DNNL_NON_X64_ONLY(REG_SR_BIDIR(s64, any, s32, nChw16c)) |
| 42 | + DNNL_NON_X64_ONLY(REG_SR_BIDIR(s64, any, s8, nChw16c)) |
| 43 | + DNNL_NON_X64_ONLY(REG_SR_BIDIR(s64, any, u8, nChw16c)) |
| 44 | + |
| 45 | + REG_SR(s64, any, f32, any, fmt_order_any, spec_reference) |
| 46 | + REG_SR(s64, any, s64, any, fmt_order_any, spec_reference) |
| 47 | + REG_SR(s64, any, s32, any, fmt_order_any, spec_reference) |
| 48 | + REG_SR(s64, any, s8, any, fmt_order_any, spec_reference) |
| 49 | + REG_SR(s64, any, u8, any, fmt_order_any, spec_reference) |
| 50 | + |
| 51 | + nullptr, |
| 52 | + }}, |
| 53 | + }); |
| 54 | + return the_map; |
| 55 | +} |
| 56 | + |
| 57 | +// clang-format on |
| 58 | + |
| 59 | +} // namespace cpu |
| 60 | +} // namespace impl |
| 61 | +} // namespace dnnl |
0 commit comments