blob: 8f8ad37481f69979f6d8c7fff526ce1aa6cf40d8 [file] [log] [blame]
David Beck32cbb0c2018-10-09 15:46:08 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5#pragma once
6
7#include <armnn/Types.hpp>
David Beck3e9e1152018-10-17 14:17:50 +01008#include "RegistryCommon.hpp"
David Beck29c75de2018-10-23 13:35:58 +01009#include "IBackendInternal.hpp"
David Beck32cbb0c2018-10-09 15:46:08 +010010
11namespace armnn
12{
13
David Beckd4dfa682018-10-24 17:09:46 +010014using BackendRegistry = RegistryCommon<IBackendInternal,
15 IBackendInternalUniquePtr,
16 EmptyInitializer>;
David Beck32cbb0c2018-10-09 15:46:08 +010017
David Beck3e9e1152018-10-17 14:17:50 +010018BackendRegistry& BackendRegistryInstance();
19
20template <>
21struct RegisteredTypeName<IBackend>
David Beck32cbb0c2018-10-09 15:46:08 +010022{
David Beck3e9e1152018-10-17 14:17:50 +010023 static const char * Name() { return "IBackend"; }
David Beck32cbb0c2018-10-09 15:46:08 +010024};
25
26} // namespace armnn