4 #ifndef FLATBUFFERS_GENERATED_BINARY_TT_TARGET_TTNN_H_
5 #define FLATBUFFERS_GENERATED_BINARY_TT_TARGET_TTNN_H_
7 #include "flatbuffers/flatbuffers.h"
11 static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&
12 FLATBUFFERS_VERSION_MINOR == 3 &&
13 FLATBUFFERS_VERSION_REVISION == 25,
14 "Non-compatible flatbuffers version included");
28 struct TTNNBinaryBuilder;
34 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
40 const tt::target::Version *
version()
const {
41 return GetStruct<const tt::target::Version *>(
VT_VERSION);
49 const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ttnn::Program>> *
programs()
const {
50 return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ttnn::Program>> *>(VT_PROGRAMS);
52 bool Verify(::flatbuffers::Verifier &verifier)
const {
53 return VerifyTableStart(verifier) &&
54 VerifyField<tt::target::Version>(verifier,
VT_VERSION, 4) &&
56 verifier.VerifyString(ttmlir_git_hash()) &&
58 verifier.VerifyTable(system_desc()) &&
59 VerifyOffset(verifier, VT_PROGRAMS) &&
60 verifier.VerifyVector(programs()) &&
61 verifier.VerifyVectorOfTables(programs()) &&
68 ::flatbuffers::FlatBufferBuilder &
fbb_;
79 void add_programs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ttnn::Program>>> programs) {
80 fbb_.AddOffset(TTNNBinary::VT_PROGRAMS, programs);
86 ::flatbuffers::Offset<TTNNBinary>
Finish() {
88 auto o = ::flatbuffers::Offset<TTNNBinary>(end);
94 ::flatbuffers::FlatBufferBuilder &_fbb,
95 const tt::target::Version *version =
nullptr,
96 ::flatbuffers::Offset<::flatbuffers::String> ttmlir_git_hash = 0,
97 ::flatbuffers::Offset<tt::target::SystemDesc> system_desc = 0,
98 ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::ttnn::Program>>> programs = 0) {
113 ::flatbuffers::FlatBufferBuilder &_fbb,
114 const tt::target::Version *version =
nullptr,
115 const char *ttmlir_git_hash =
nullptr,
116 ::flatbuffers::Offset<tt::target::SystemDesc> system_desc = 0,
117 const std::vector<::flatbuffers::Offset<tt::target::ttnn::Program>> *programs =
nullptr) {
118 auto ttmlir_git_hash__ = ttmlir_git_hash ? _fbb.CreateString(ttmlir_git_hash) : 0;
119 auto programs__ = programs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::ttnn::Program>>(*programs) : 0;
129 return ::flatbuffers::GetRoot<tt::target::ttnn::TTNNBinary>(buf);
133 return ::flatbuffers::GetSizePrefixedRoot<tt::target::ttnn::TTNNBinary>(buf);
141 return ::flatbuffers::BufferHasIdentifier(
146 return ::flatbuffers::BufferHasIdentifier(
151 ::flatbuffers::Verifier &verifier) {
156 ::flatbuffers::Verifier &verifier) {
165 ::flatbuffers::FlatBufferBuilder &fbb,
166 ::flatbuffers::Offset<tt::target::ttnn::TTNNBinary> root) {
171 ::flatbuffers::FlatBufferBuilder &fbb,
172 ::flatbuffers::Offset<tt::target::ttnn::TTNNBinary> root) {
bool VerifyTTNNBinaryBuffer(::flatbuffers::Verifier &verifier)
Definition: binary_generated.h:150
void FinishTTNNBinaryBuffer(::flatbuffers::FlatBufferBuilder &fbb, ::flatbuffers::Offset< tt::target::ttnn::TTNNBinary > root)
Definition: binary_generated.h:164
const char * TTNNBinaryIdentifier()
Definition: binary_generated.h:136
inline ::flatbuffers::Offset< TTNNBinary > CreateTTNNBinaryDirect(::flatbuffers::FlatBufferBuilder &_fbb, const tt::target::Version *version=nullptr, const char *ttmlir_git_hash=nullptr, ::flatbuffers::Offset< tt::target::SystemDesc > system_desc=0, const std::vector<::flatbuffers::Offset< tt::target::ttnn::Program >> *programs=nullptr)
Definition: binary_generated.h:112
bool TTNNBinaryBufferHasIdentifier(const void *buf)
Definition: binary_generated.h:140
void FinishSizePrefixedTTNNBinaryBuffer(::flatbuffers::FlatBufferBuilder &fbb, ::flatbuffers::Offset< tt::target::ttnn::TTNNBinary > root)
Definition: binary_generated.h:170
const tt::target::ttnn::TTNNBinary * GetSizePrefixedTTNNBinary(const void *buf)
Definition: binary_generated.h:132
inline ::flatbuffers::Offset< TTNNBinary > CreateTTNNBinary(::flatbuffers::FlatBufferBuilder &_fbb, const tt::target::Version *version=nullptr, ::flatbuffers::Offset<::flatbuffers::String > ttmlir_git_hash=0, ::flatbuffers::Offset< tt::target::SystemDesc > system_desc=0, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::ttnn::Program >>> programs=0)
Definition: binary_generated.h:93
const char * TTNNBinaryExtension()
Definition: binary_generated.h:160
bool SizePrefixedTTNNBinaryBufferHasIdentifier(const void *buf)
Definition: binary_generated.h:145
const tt::target::ttnn::TTNNBinary * GetTTNNBinary(const void *buf)
Definition: binary_generated.h:128
bool VerifySizePrefixedTTNNBinaryBuffer(::flatbuffers::Verifier &verifier)
Definition: binary_generated.h:155
Definition: debug_info_generated.h:18
Definition: binary_generated.h:30
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::ttnn::Program > > * programs() const
Definition: binary_generated.h:49
const tt::target::Version * version() const
Definition: binary_generated.h:40
const tt::target::SystemDesc * system_desc() const
Definition: binary_generated.h:46
tt::target::ttnn::TTNNBinaryBinarySchema BinarySchema
Definition: binary_generated.h:32
bool Verify(::flatbuffers::Verifier &verifier) const
Definition: binary_generated.h:52
const ::flatbuffers::String * ttmlir_git_hash() const
Definition: binary_generated.h:43
TTNNBinaryBuilder Builder
Definition: binary_generated.h:31
Definition: binary_bfbs_generated.h:13
Definition: binary_generated.h:66
::flatbuffers::uoffset_t start_
Definition: binary_generated.h:69
void add_ttmlir_git_hash(::flatbuffers::Offset<::flatbuffers::String > ttmlir_git_hash)
Definition: binary_generated.h:73
void add_programs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::ttnn::Program >>> programs)
Definition: binary_generated.h:79
void add_system_desc(::flatbuffers::Offset< tt::target::SystemDesc > system_desc)
Definition: binary_generated.h:76
::flatbuffers::Offset< TTNNBinary > Finish()
Definition: binary_generated.h:86
TTNNBinary Table
Definition: binary_generated.h:67
TTNNBinaryBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: binary_generated.h:82
::flatbuffers::FlatBufferBuilder & fbb_
Definition: binary_generated.h:68
void add_version(const tt::target::Version *version)
Definition: binary_generated.h:70
Definition: binary_generated.h:107
TTNNBinary type
Definition: binary_generated.h:108
static constexpr auto Create
Definition: binary_generated.h:109