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
19namespace dnnl {
20namespace impl {
21namespace cpu {
22
23// clang-format off
24
25const impl_list_map_t &regular_f32_f16_impl_list_map() {
26 static const impl_list_map_t the_map = REG_REORDER_P({
27 // f32 -> f16
28 {{f32, f16, 0}, {
29 DNNL_X64_ONLY(CPU_REORDER_INSTANCE(x64::jit_blk_reorder_t))
30 DNNL_X64_ONLY(CPU_REORDER_INSTANCE(x64::jit_uni_reorder_t))
31
32 REG_SR(f32, any, f16, any, fmt_order::any, spec::reference)
33
34 nullptr,
35 }},
36 });
37 return the_map;
38}
39
40// clang-format on
41
42} // namespace cpu
43} // namespace impl
44} // namespace dnnl
45