TT-MLIR
binary_generated.h
Go to the documentation of this file.
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 
4 #ifndef FLATBUFFERS_GENERATED_BINARY_TT_TARGET_METAL_H_
5 #define FLATBUFFERS_GENERATED_BINARY_TT_TARGET_METAL_H_
6 
7 #include "flatbuffers/flatbuffers.h"
8 
9 // Ensure the included flatbuffers.h is the same version as when this file was
10 // generated, otherwise it may not be compatible.
11 static_assert(FLATBUFFERS_VERSION_MAJOR == 24 &&
12  FLATBUFFERS_VERSION_MINOR == 3 &&
13  FLATBUFFERS_VERSION_REVISION == 25,
14  "Non-compatible flatbuffers version included");
15 
16 #include "debug_info_generated.h"
17 #include "types_generated.h"
18 #include "version_generated.h"
19 #include "command_generated.h"
20 
21 // For access to the binary schema that produced this file.
22 #include "binary_bfbs_generated.h"
23 
24 namespace tt {
25 namespace target {
26 namespace metal {
27 
28 struct DeviceProgram;
29 struct DeviceProgramBuilder;
30 
31 struct Program;
32 struct ProgramBuilder;
33 
34 struct TTMetalBinary;
35 struct TTMetalBinaryBuilder;
36 
37 struct DeviceProgram FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
40  struct Traits;
41  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
42  VT_INPUTS = 4,
44  VT_COMMAND_QUEUES = 8
45  };
46  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *inputs() const {
47  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *>(VT_INPUTS);
48  }
49  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *outputs() const {
50  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *>(VT_OUTPUTS);
51  }
52  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::CommandQueue>> *command_queues() const {
53  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::CommandQueue>> *>(VT_COMMAND_QUEUES);
54  }
55  bool Verify(::flatbuffers::Verifier &verifier) const {
56  return VerifyTableStart(verifier) &&
57  VerifyOffset(verifier, VT_INPUTS) &&
58  verifier.VerifyVector(inputs()) &&
59  verifier.VerifyVectorOfTables(inputs()) &&
60  VerifyOffset(verifier, VT_OUTPUTS) &&
61  verifier.VerifyVector(outputs()) &&
62  verifier.VerifyVectorOfTables(outputs()) &&
63  VerifyOffset(verifier, VT_COMMAND_QUEUES) &&
64  verifier.VerifyVector(command_queues()) &&
65  verifier.VerifyVectorOfTables(command_queues()) &&
66  verifier.EndTable();
67  }
68 };
69 
71  typedef DeviceProgram Table;
72  ::flatbuffers::FlatBufferBuilder &fbb_;
73  ::flatbuffers::uoffset_t start_;
74  void add_inputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> inputs) {
75  fbb_.AddOffset(DeviceProgram::VT_INPUTS, inputs);
76  }
77  void add_outputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> outputs) {
78  fbb_.AddOffset(DeviceProgram::VT_OUTPUTS, outputs);
79  }
80  void add_command_queues(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::CommandQueue>>> command_queues) {
81  fbb_.AddOffset(DeviceProgram::VT_COMMAND_QUEUES, command_queues);
82  }
83  explicit DeviceProgramBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
84  : fbb_(_fbb) {
85  start_ = fbb_.StartTable();
86  }
87  ::flatbuffers::Offset<DeviceProgram> Finish() {
88  const auto end = fbb_.EndTable(start_);
89  auto o = ::flatbuffers::Offset<DeviceProgram>(end);
90  return o;
91  }
92 };
93 
94 inline ::flatbuffers::Offset<DeviceProgram> CreateDeviceProgram(
95  ::flatbuffers::FlatBufferBuilder &_fbb,
96  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> inputs = 0,
97  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> outputs = 0,
98  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::CommandQueue>>> command_queues = 0) {
99  DeviceProgramBuilder builder_(_fbb);
100  builder_.add_command_queues(command_queues);
101  builder_.add_outputs(outputs);
102  builder_.add_inputs(inputs);
103  return builder_.Finish();
104 }
105 
107  using type = DeviceProgram;
108  static auto constexpr Create = CreateDeviceProgram;
109 };
110 
111 inline ::flatbuffers::Offset<DeviceProgram> CreateDeviceProgramDirect(
112  ::flatbuffers::FlatBufferBuilder &_fbb,
113  const std::vector<::flatbuffers::Offset<tt::target::TensorRef>> *inputs = nullptr,
114  const std::vector<::flatbuffers::Offset<tt::target::TensorRef>> *outputs = nullptr,
115  const std::vector<::flatbuffers::Offset<tt::target::metal::CommandQueue>> *command_queues = nullptr) {
116  auto inputs__ = inputs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::TensorRef>>(*inputs) : 0;
117  auto outputs__ = outputs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::TensorRef>>(*outputs) : 0;
118  auto command_queues__ = command_queues ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::metal::CommandQueue>>(*command_queues) : 0;
120  _fbb,
121  inputs__,
122  outputs__,
123  command_queues__);
124 }
125 
126 struct Program FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
129  struct Traits;
130  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
131  VT_NAME = 4,
132  VT_INPUTS = 6,
133  VT_OUTPUTS = 8,
135  VT_DEBUG_INFO = 12
136  };
137  const ::flatbuffers::String *name() const {
138  return GetPointer<const ::flatbuffers::String *>(VT_NAME);
139  }
140  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *inputs() const {
141  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *>(VT_INPUTS);
142  }
143  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *outputs() const {
144  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *>(VT_OUTPUTS);
145  }
146  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::DeviceProgram>> *device_programs() const {
147  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::DeviceProgram>> *>(VT_DEVICE_PROGRAMS);
148  }
149  const tt::target::DebugInfo *debug_info() const {
150  return GetPointer<const tt::target::DebugInfo *>(VT_DEBUG_INFO);
151  }
152  bool Verify(::flatbuffers::Verifier &verifier) const {
153  return VerifyTableStart(verifier) &&
154  VerifyOffset(verifier, VT_NAME) &&
155  verifier.VerifyString(name()) &&
156  VerifyOffset(verifier, VT_INPUTS) &&
157  verifier.VerifyVector(inputs()) &&
158  verifier.VerifyVectorOfTables(inputs()) &&
159  VerifyOffset(verifier, VT_OUTPUTS) &&
160  verifier.VerifyVector(outputs()) &&
161  verifier.VerifyVectorOfTables(outputs()) &&
162  VerifyOffset(verifier, VT_DEVICE_PROGRAMS) &&
163  verifier.VerifyVector(device_programs()) &&
164  verifier.VerifyVectorOfTables(device_programs()) &&
165  VerifyOffset(verifier, VT_DEBUG_INFO) &&
166  verifier.VerifyTable(debug_info()) &&
167  verifier.EndTable();
168  }
169 };
170 
172  typedef Program Table;
173  ::flatbuffers::FlatBufferBuilder &fbb_;
174  ::flatbuffers::uoffset_t start_;
175  void add_name(::flatbuffers::Offset<::flatbuffers::String> name) {
176  fbb_.AddOffset(Program::VT_NAME, name);
177  }
178  void add_inputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> inputs) {
179  fbb_.AddOffset(Program::VT_INPUTS, inputs);
180  }
181  void add_outputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> outputs) {
182  fbb_.AddOffset(Program::VT_OUTPUTS, outputs);
183  }
184  void add_device_programs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::DeviceProgram>>> device_programs) {
185  fbb_.AddOffset(Program::VT_DEVICE_PROGRAMS, device_programs);
186  }
187  void add_debug_info(::flatbuffers::Offset<tt::target::DebugInfo> debug_info) {
188  fbb_.AddOffset(Program::VT_DEBUG_INFO, debug_info);
189  }
190  explicit ProgramBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
191  : fbb_(_fbb) {
192  start_ = fbb_.StartTable();
193  }
194  ::flatbuffers::Offset<Program> Finish() {
195  const auto end = fbb_.EndTable(start_);
196  auto o = ::flatbuffers::Offset<Program>(end);
197  return o;
198  }
199 };
200 
201 inline ::flatbuffers::Offset<Program> CreateProgram(
202  ::flatbuffers::FlatBufferBuilder &_fbb,
203  ::flatbuffers::Offset<::flatbuffers::String> name = 0,
204  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> inputs = 0,
205  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> outputs = 0,
206  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::DeviceProgram>>> device_programs = 0,
207  ::flatbuffers::Offset<tt::target::DebugInfo> debug_info = 0) {
208  ProgramBuilder builder_(_fbb);
209  builder_.add_debug_info(debug_info);
210  builder_.add_device_programs(device_programs);
211  builder_.add_outputs(outputs);
212  builder_.add_inputs(inputs);
213  builder_.add_name(name);
214  return builder_.Finish();
215 }
216 
218  using type = Program;
219  static auto constexpr Create = CreateProgram;
220 };
221 
222 inline ::flatbuffers::Offset<Program> CreateProgramDirect(
223  ::flatbuffers::FlatBufferBuilder &_fbb,
224  const char *name = nullptr,
225  const std::vector<::flatbuffers::Offset<tt::target::TensorRef>> *inputs = nullptr,
226  const std::vector<::flatbuffers::Offset<tt::target::TensorRef>> *outputs = nullptr,
227  const std::vector<::flatbuffers::Offset<tt::target::metal::DeviceProgram>> *device_programs = nullptr,
228  ::flatbuffers::Offset<tt::target::DebugInfo> debug_info = 0) {
229  auto name__ = name ? _fbb.CreateString(name) : 0;
230  auto inputs__ = inputs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::TensorRef>>(*inputs) : 0;
231  auto outputs__ = outputs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::TensorRef>>(*outputs) : 0;
232  auto device_programs__ = device_programs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::metal::DeviceProgram>>(*device_programs) : 0;
234  _fbb,
235  name__,
236  inputs__,
237  outputs__,
238  device_programs__,
239  debug_info);
240 }
241 
242 struct TTMetalBinary FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
245  struct Traits;
246  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
250  VT_PROGRAMS = 10
251  };
252  const tt::target::Version *version() const {
253  return GetStruct<const tt::target::Version *>(VT_VERSION);
254  }
255  const ::flatbuffers::String *ttmlir_git_hash() const {
256  return GetPointer<const ::flatbuffers::String *>(VT_TTMLIR_GIT_HASH);
257  }
258  const tt::target::SystemDesc *system_desc() const {
259  return GetPointer<const tt::target::SystemDesc *>(VT_SYSTEM_DESC);
260  }
261  const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::Program>> *programs() const {
262  return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::Program>> *>(VT_PROGRAMS);
263  }
264  bool Verify(::flatbuffers::Verifier &verifier) const {
265  return VerifyTableStart(verifier) &&
266  VerifyField<tt::target::Version>(verifier, VT_VERSION, 4) &&
267  VerifyOffset(verifier, VT_TTMLIR_GIT_HASH) &&
268  verifier.VerifyString(ttmlir_git_hash()) &&
269  VerifyOffset(verifier, VT_SYSTEM_DESC) &&
270  verifier.VerifyTable(system_desc()) &&
271  VerifyOffset(verifier, VT_PROGRAMS) &&
272  verifier.VerifyVector(programs()) &&
273  verifier.VerifyVectorOfTables(programs()) &&
274  verifier.EndTable();
275  }
276 };
277 
279  typedef TTMetalBinary Table;
280  ::flatbuffers::FlatBufferBuilder &fbb_;
281  ::flatbuffers::uoffset_t start_;
282  void add_version(const tt::target::Version *version) {
283  fbb_.AddStruct(TTMetalBinary::VT_VERSION, version);
284  }
285  void add_ttmlir_git_hash(::flatbuffers::Offset<::flatbuffers::String> ttmlir_git_hash) {
286  fbb_.AddOffset(TTMetalBinary::VT_TTMLIR_GIT_HASH, ttmlir_git_hash);
287  }
288  void add_system_desc(::flatbuffers::Offset<tt::target::SystemDesc> system_desc) {
289  fbb_.AddOffset(TTMetalBinary::VT_SYSTEM_DESC, system_desc);
290  }
291  void add_programs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::Program>>> programs) {
292  fbb_.AddOffset(TTMetalBinary::VT_PROGRAMS, programs);
293  }
294  explicit TTMetalBinaryBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
295  : fbb_(_fbb) {
296  start_ = fbb_.StartTable();
297  }
298  ::flatbuffers::Offset<TTMetalBinary> Finish() {
299  const auto end = fbb_.EndTable(start_);
300  auto o = ::flatbuffers::Offset<TTMetalBinary>(end);
301  return o;
302  }
303 };
304 
305 inline ::flatbuffers::Offset<TTMetalBinary> CreateTTMetalBinary(
306  ::flatbuffers::FlatBufferBuilder &_fbb,
307  const tt::target::Version *version = nullptr,
308  ::flatbuffers::Offset<::flatbuffers::String> ttmlir_git_hash = 0,
309  ::flatbuffers::Offset<tt::target::SystemDesc> system_desc = 0,
310  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::Program>>> programs = 0) {
311  TTMetalBinaryBuilder builder_(_fbb);
312  builder_.add_programs(programs);
313  builder_.add_system_desc(system_desc);
314  builder_.add_ttmlir_git_hash(ttmlir_git_hash);
315  builder_.add_version(version);
316  return builder_.Finish();
317 }
318 
320  using type = TTMetalBinary;
321  static auto constexpr Create = CreateTTMetalBinary;
322 };
323 
324 inline ::flatbuffers::Offset<TTMetalBinary> CreateTTMetalBinaryDirect(
325  ::flatbuffers::FlatBufferBuilder &_fbb,
326  const tt::target::Version *version = nullptr,
327  const char *ttmlir_git_hash = nullptr,
328  ::flatbuffers::Offset<tt::target::SystemDesc> system_desc = 0,
329  const std::vector<::flatbuffers::Offset<tt::target::metal::Program>> *programs = nullptr) {
330  auto ttmlir_git_hash__ = ttmlir_git_hash ? _fbb.CreateString(ttmlir_git_hash) : 0;
331  auto programs__ = programs ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::metal::Program>>(*programs) : 0;
333  _fbb,
334  version,
335  ttmlir_git_hash__,
336  system_desc,
337  programs__);
338 }
339 
340 inline const tt::target::metal::TTMetalBinary *GetTTMetalBinary(const void *buf) {
341  return ::flatbuffers::GetRoot<tt::target::metal::TTMetalBinary>(buf);
342 }
343 
344 inline const tt::target::metal::TTMetalBinary *GetSizePrefixedTTMetalBinary(const void *buf) {
345  return ::flatbuffers::GetSizePrefixedRoot<tt::target::metal::TTMetalBinary>(buf);
346 }
347 
348 inline const char *TTMetalBinaryIdentifier() {
349  return "TTM0";
350 }
351 
352 inline bool TTMetalBinaryBufferHasIdentifier(const void *buf) {
353  return ::flatbuffers::BufferHasIdentifier(
354  buf, TTMetalBinaryIdentifier());
355 }
356 
357 inline bool SizePrefixedTTMetalBinaryBufferHasIdentifier(const void *buf) {
358  return ::flatbuffers::BufferHasIdentifier(
359  buf, TTMetalBinaryIdentifier(), true);
360 }
361 
363  ::flatbuffers::Verifier &verifier) {
364  return verifier.VerifyBuffer<tt::target::metal::TTMetalBinary>(TTMetalBinaryIdentifier());
365 }
366 
368  ::flatbuffers::Verifier &verifier) {
369  return verifier.VerifySizePrefixedBuffer<tt::target::metal::TTMetalBinary>(TTMetalBinaryIdentifier());
370 }
371 
372 inline const char *TTMetalBinaryExtension() {
373  return "ttm";
374 }
375 
377  ::flatbuffers::FlatBufferBuilder &fbb,
378  ::flatbuffers::Offset<tt::target::metal::TTMetalBinary> root) {
379  fbb.Finish(root, TTMetalBinaryIdentifier());
380 }
381 
383  ::flatbuffers::FlatBufferBuilder &fbb,
384  ::flatbuffers::Offset<tt::target::metal::TTMetalBinary> root) {
385  fbb.FinishSizePrefixed(root, TTMetalBinaryIdentifier());
386 }
387 
388 } // namespace metal
389 } // namespace target
390 } // namespace tt
391 
392 #endif // FLATBUFFERS_GENERATED_BINARY_TT_TARGET_METAL_H_
VT_SYSTEM_DESC
Definition: binary_generated.h:249
VT_VERSION
Definition: binary_generated.h:247
VT_INPUTS
Definition: binary_generated.h:42
VT_OUTPUTS
Definition: binary_generated.h:43
VT_NAME
Definition: binary_generated.h:131
VT_DEVICE_PROGRAMS
Definition: binary_generated.h:134
VT_TTMLIR_GIT_HASH
Definition: binary_generated.h:248
inline ::flatbuffers::Offset< DeviceProgram > CreateDeviceProgramDirect(::flatbuffers::FlatBufferBuilder &_fbb, const std::vector<::flatbuffers::Offset< tt::target::TensorRef >> *inputs=nullptr, const std::vector<::flatbuffers::Offset< tt::target::TensorRef >> *outputs=nullptr, const std::vector<::flatbuffers::Offset< tt::target::metal::CommandQueue >> *command_queues=nullptr)
Definition: binary_generated.h:111
void FinishSizePrefixedTTMetalBinaryBuffer(::flatbuffers::FlatBufferBuilder &fbb, ::flatbuffers::Offset< tt::target::metal::TTMetalBinary > root)
Definition: binary_generated.h:382
const char * TTMetalBinaryExtension()
Definition: binary_generated.h:372
void FinishTTMetalBinaryBuffer(::flatbuffers::FlatBufferBuilder &fbb, ::flatbuffers::Offset< tt::target::metal::TTMetalBinary > root)
Definition: binary_generated.h:376
const tt::target::metal::TTMetalBinary * GetSizePrefixedTTMetalBinary(const void *buf)
Definition: binary_generated.h:344
bool TTMetalBinaryBufferHasIdentifier(const void *buf)
Definition: binary_generated.h:352
bool VerifySizePrefixedTTMetalBinaryBuffer(::flatbuffers::Verifier &verifier)
Definition: binary_generated.h:367
const tt::target::metal::TTMetalBinary * GetTTMetalBinary(const void *buf)
Definition: binary_generated.h:340
inline ::flatbuffers::Offset< Program > CreateProgramDirect(::flatbuffers::FlatBufferBuilder &_fbb, const char *name=nullptr, const std::vector<::flatbuffers::Offset< tt::target::TensorRef >> *inputs=nullptr, const std::vector<::flatbuffers::Offset< tt::target::TensorRef >> *outputs=nullptr, const std::vector<::flatbuffers::Offset< tt::target::metal::DeviceProgram >> *device_programs=nullptr, ::flatbuffers::Offset< tt::target::DebugInfo > debug_info=0)
Definition: binary_generated.h:222
inline ::flatbuffers::Offset< Program > CreateProgram(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::String > name=0, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> inputs=0, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> outputs=0, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::metal::DeviceProgram >>> device_programs=0, ::flatbuffers::Offset< tt::target::DebugInfo > debug_info=0)
Definition: binary_generated.h:201
inline ::flatbuffers::Offset< DeviceProgram > CreateDeviceProgram(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> inputs=0, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> outputs=0, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::metal::CommandQueue >>> command_queues=0)
Definition: binary_generated.h:94
inline ::flatbuffers::Offset< TTMetalBinary > CreateTTMetalBinary(::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::metal::Program >>> programs=0)
Definition: binary_generated.h:305
inline ::flatbuffers::Offset< TTMetalBinary > CreateTTMetalBinaryDirect(::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::metal::Program >> *programs=nullptr)
Definition: binary_generated.h:324
const char * TTMetalBinaryIdentifier()
Definition: binary_generated.h:348
bool VerifyTTMetalBinaryBuffer(::flatbuffers::Verifier &verifier)
Definition: binary_generated.h:362
bool SizePrefixedTTMetalBinaryBufferHasIdentifier(const void *buf)
Definition: binary_generated.h:357
Definition: debug_info_generated.h:18
Definition: debug_info_generated.h:36
Definition: binary_generated.h:70
DeviceProgramBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: binary_generated.h:83
void add_inputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> inputs)
Definition: binary_generated.h:74
::flatbuffers::Offset< DeviceProgram > Finish()
Definition: binary_generated.h:87
::flatbuffers::FlatBufferBuilder & fbb_
Definition: binary_generated.h:72
DeviceProgram Table
Definition: binary_generated.h:71
void add_outputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> outputs)
Definition: binary_generated.h:77
void add_command_queues(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::metal::CommandQueue >>> command_queues)
Definition: binary_generated.h:80
::flatbuffers::uoffset_t start_
Definition: binary_generated.h:73
Definition: binary_generated.h:106
DeviceProgram type
Definition: binary_generated.h:107
static constexpr auto Create
Definition: binary_generated.h:108
Definition: binary_generated.h:37
bool Verify(::flatbuffers::Verifier &verifier) const
Definition: binary_generated.h:55
DeviceProgramBuilder Builder
Definition: binary_generated.h:38
const ::flatbuffers::String * ttmlir_git_hash() const
Definition: binary_generated.h:255
tt::target::metal::TTMetalBinaryBinarySchema BinarySchema
Definition: binary_generated.h:39
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::metal::Program > > * programs() const
Definition: binary_generated.h:261
const tt::target::SystemDesc * system_desc() const
Definition: binary_generated.h:258
TTMetalBinaryBuilder Builder
Definition: binary_generated.h:243
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef > > * outputs() const
Definition: binary_generated.h:49
const tt::target::Version * version() const
Definition: binary_generated.h:252
const tt::target::DebugInfo * debug_info() const
Definition: binary_generated.h:149
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::metal::CommandQueue > > * command_queues() const
Definition: binary_generated.h:52
ProgramBuilder Builder
Definition: binary_generated.h:127
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef > > * inputs() const
Definition: binary_generated.h:46
const ::flatbuffers::String * name() const
Definition: binary_generated.h:137
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::metal::DeviceProgram > > * device_programs() const
Definition: binary_generated.h:146
Definition: binary_generated.h:171
void add_name(::flatbuffers::Offset<::flatbuffers::String > name)
Definition: binary_generated.h:175
void add_debug_info(::flatbuffers::Offset< tt::target::DebugInfo > debug_info)
Definition: binary_generated.h:187
void add_inputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> inputs)
Definition: binary_generated.h:178
::flatbuffers::Offset< Program > Finish()
Definition: binary_generated.h:194
void add_device_programs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::metal::DeviceProgram >>> device_programs)
Definition: binary_generated.h:184
::flatbuffers::uoffset_t start_
Definition: binary_generated.h:174
void add_outputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::TensorRef >>> outputs)
Definition: binary_generated.h:181
Program Table
Definition: binary_generated.h:172
ProgramBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: binary_generated.h:190
::flatbuffers::FlatBufferBuilder & fbb_
Definition: binary_generated.h:173
Definition: binary_generated.h:217
static constexpr auto Create
Definition: binary_generated.h:219
Program type
Definition: binary_generated.h:218
Definition: binary_bfbs_generated.h:13
Definition: binary_generated.h:278
::flatbuffers::Offset< TTMetalBinary > Finish()
Definition: binary_generated.h:298
TTMetalBinary Table
Definition: binary_generated.h:279
void add_system_desc(::flatbuffers::Offset< tt::target::SystemDesc > system_desc)
Definition: binary_generated.h:288
void add_ttmlir_git_hash(::flatbuffers::Offset<::flatbuffers::String > ttmlir_git_hash)
Definition: binary_generated.h:285
TTMetalBinaryBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: binary_generated.h:294
void add_programs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::metal::Program >>> programs)
Definition: binary_generated.h:291
::flatbuffers::FlatBufferBuilder & fbb_
Definition: binary_generated.h:280
void add_version(const tt::target::Version *version)
Definition: binary_generated.h:282
::flatbuffers::uoffset_t start_
Definition: binary_generated.h:281
Definition: binary_generated.h:319
TTMetalBinary type
Definition: binary_generated.h:320
static constexpr auto Create
Definition: binary_generated.h:321