Debian Codegraph @

visa/iga/IGALibrary/Backend/GED/Interface.hpp

raw
1 /*========================== begin_copyright_notice ============================
2
3 Copyright (C) 2018-2021 Intel Corporation
4
5 SPDX-License-Identifier: MIT
6
7 ============================= end_copyright_notice ===========================*/
8
9 #ifndef _IGA_BACKEND_GED_INTERFACE_HPP_
10 #define _IGA_BACKEND_GED_INTERFACE_HPP_
11
12 ////////////////////////////////////////////
13 // GED ENCODER USERS USE THIS INTERFACE
14 #include "../../ErrorHandler.hpp"
15 #include "../../IR/Kernel.hpp"
16 #include "../DecoderOpts.hpp"
17 #include "../EncoderOpts.hpp"
18
19 namespace iga {
20 namespace ged {
21 bool IsEncodeSupported(const Model &m, const EncoderOpts &opts);
22 void Encode(const Model &m, const EncoderOpts &opts, ErrorHandler &eh,
23 Kernel &k, void *&bits, size_t &bitsLen);
24
25 bool IsDecodeSupported(const Model &m, const DecoderOpts &opts);
26 Kernel *Decode(const Model &m, const DecoderOpts &dopts, ErrorHandler &eh,
27 const void *bits, size_t bitsLen);
28 } // namespace ged
29 } // namespace iga
30
31 #endif // _IGA_BACKEND_GED_INTERFACE_HPP_