1/*******************************************************************************
2* Copyright 2019-2022 Intel Corporation
3* Copyright 2022 FUJITSU LIMITED
4*
5* Licensed under the Apache License, Version 2.0 (the "License");
6* you may not use this file except in compliance with the License.
7* You may obtain a copy of the License at
8*
9* http://www.apache.org/licenses/LICENSE-2.0
10*
11* Unless required by applicable law or agreed to in writing, software
12* distributed under the License is distributed on an "AS IS" BASIS,
13* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14* See the License for the specific language governing permissions and
15* limitations under the License.
16*******************************************************************************/
17
18#include "cpu/cpu_engine.hpp"
19
20#include "common/bfloat16.hpp"
21#include "cpu/ref_shuffle.hpp"
22
23#if DNNL_X64
24#include "cpu/x64/shuffle/jit_uni_shuffle.hpp"
25using namespace dnnl::impl::cpu::x64;
26#elif DNNL_AARCH64
27#include "cpu/aarch64/shuffle/jit_uni_shuffle.hpp"
28using namespace dnnl::impl::cpu::aarch64;
29#endif
30
31namespace dnnl {
32namespace impl {
33namespace cpu {
34
35namespace {
36using namespace dnnl::impl::data_type;
37
38// clang-format off
39constexpr impl_list_item_t impl_list[] = REG_SHUFFLE_P({
40 CPU_INSTANCE_X64(jit_uni_shuffle_t<avx512_core>)
41 CPU_INSTANCE_X64(jit_uni_shuffle_t<avx>)
42 CPU_INSTANCE_X64(jit_uni_shuffle_t<sse41>)
43 CPU_INSTANCE_AARCH64(jit_uni_shuffle_t<sve_512>)
44 CPU_INSTANCE_AARCH64(jit_uni_shuffle_t<sve_256>)
45 CPU_INSTANCE_AARCH64(jit_uni_shuffle_t<sve_128>)
46 CPU_INSTANCE_AARCH64(jit_uni_shuffle_t<asimd>)
47 CPU_INSTANCE(ref_shuffle_t)
48 /* eol */
49 nullptr,
50});
51// clang-format on
52} // namespace
53
54const impl_list_item_t *get_shuffle_impl_list(const shuffle_desc_t *desc) {
55 UNUSED(desc);
56 return impl_list;
57}
58
59} // namespace cpu
60} // namespace impl
61} // namespace dnnl
62