1 | /******************************************************************************* |
2 | * Copyright 2020-2022 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_f16_impl_list_map() { |
26 | static const impl_list_map_t the_map = REG_REORDER_P({ |
27 | // f16 -> |
28 | {{f16, data_type::undef, 0}, { |
29 | DNNL_X64_ONLY(CPU_REORDER_INSTANCE(x64::brgemm_matmul_matrix_B_reorder_t)) |
30 | DNNL_X64_ONLY(CPU_REORDER_INSTANCE(x64::jit_blk_reorder_t)) |
31 | DNNL_X64_ONLY(CPU_REORDER_INSTANCE(x64::jit_uni_reorder_t)) |
32 | |
33 | REG_SR(f16, any, f16, any, fmt_order::any, spec::reference) |
34 | REG_SR(f16, any, f32, any, fmt_order::any, spec::reference) |
35 | REG_SR(f16, any, s8, any, fmt_order::any, spec::reference) |
36 | REG_SR(f16, any, u8, any, fmt_order::any, spec::reference) |
37 | |
38 | nullptr, |
39 | }}, |
40 | }); |
41 | return the_map; |
42 | } |
43 | |
44 | // clang-format on |
45 | |
46 | } // namespace cpu |
47 | } // namespace impl |
48 | } // namespace dnnl |
49 | |