blob: 23830a0105e8d0fc51c9b9348d667118c71dce76 [file] [log] [blame]
David Beckd4dfa682018-10-24 17:09:46 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5#pragma once
6
David Beckd4dfa682018-10-24 17:09:46 +01007#include "IBackendContext.hpp"
Aron Virginas-Tarc9cc8042018-11-01 16:15:57 +00008#include "RegistryCommon.hpp"
9
10#include <armnn/IRuntime.hpp>
11#include <armnn/Types.hpp>
David Beckd4dfa682018-10-24 17:09:46 +010012
13namespace armnn
14{
15
16using BackendContextRegistry = RegistryCommon<IBackendContext,
17 IBackendContextUniquePtr,
18 IRuntime::CreationOptions>;
19
20BackendContextRegistry& BackendContextRegistryInstance();
21
22template <>
23struct RegisteredTypeName<IBackendContext>
24{
25 static const char * Name() { return "IBackendContext"; }
26};
27
28} // namespace armnn