4 #ifndef FLATBUFFERS_GENERATED_BINARY_TT_TARGET_METAL_H_
5 #define FLATBUFFERS_GENERATED_BINARY_TT_TARGET_METAL_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");
29 struct DeviceProgramBuilder;
32 struct ProgramBuilder;
35 struct TTMetalBinaryBuilder;
41 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
46 const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *
inputs()
const {
47 return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *>(
VT_INPUTS);
49 const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *
outputs()
const {
50 return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *>(
VT_OUTPUTS);
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);
55 bool Verify(::flatbuffers::Verifier &verifier)
const {
56 return VerifyTableStart(verifier) &&
58 verifier.VerifyVector(inputs()) &&
59 verifier.VerifyVectorOfTables(inputs()) &&
61 verifier.VerifyVector(outputs()) &&
62 verifier.VerifyVectorOfTables(outputs()) &&
63 VerifyOffset(verifier, VT_COMMAND_QUEUES) &&
64 verifier.VerifyVector(command_queues()) &&
65 verifier.VerifyVectorOfTables(command_queues()) &&
72 ::flatbuffers::FlatBufferBuilder &
fbb_;
74 void add_inputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> inputs) {
77 void add_outputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> outputs) {
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);
87 ::flatbuffers::Offset<DeviceProgram>
Finish() {
89 auto o = ::flatbuffers::Offset<DeviceProgram>(end);
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) {
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;
130 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
137 const ::flatbuffers::String *
name()
const {
138 return GetPointer<const ::flatbuffers::String *>(
VT_NAME);
140 const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *
inputs()
const {
141 return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *>(
VT_INPUTS);
143 const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *
outputs()
const {
144 return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *>(
VT_OUTPUTS);
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);
150 return GetPointer<const tt::target::DebugInfo *>(VT_DEBUG_INFO);
152 bool Verify(::flatbuffers::Verifier &verifier)
const {
153 return VerifyTableStart(verifier) &&
154 VerifyOffset(verifier,
VT_NAME) &&
155 verifier.VerifyString(name()) &&
157 verifier.VerifyVector(inputs()) &&
158 verifier.VerifyVectorOfTables(inputs()) &&
160 verifier.VerifyVector(outputs()) &&
161 verifier.VerifyVectorOfTables(outputs()) &&
163 verifier.VerifyVector(device_programs()) &&
164 verifier.VerifyVectorOfTables(device_programs()) &&
165 VerifyOffset(verifier, VT_DEBUG_INFO) &&
166 verifier.VerifyTable(debug_info()) &&
173 ::flatbuffers::FlatBufferBuilder &
fbb_;
175 void add_name(::flatbuffers::Offset<::flatbuffers::String> name) {
178 void add_inputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> inputs) {
181 void add_outputs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> outputs) {
184 void add_device_programs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::DeviceProgram>>> device_programs) {
188 fbb_.AddOffset(Program::VT_DEBUG_INFO, debug_info);
194 ::flatbuffers::Offset<Program>
Finish() {
196 auto o = ::flatbuffers::Offset<Program>(end);
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) {
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;
246 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
253 return GetStruct<const tt::target::Version *>(
VT_VERSION);
259 return GetPointer<const tt::target::SystemDesc *>(
VT_SYSTEM_DESC);
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);
264 bool Verify(::flatbuffers::Verifier &verifier)
const {
265 return VerifyTableStart(verifier) &&
266 VerifyField<tt::target::Version>(verifier,
VT_VERSION, 4) &&
268 verifier.VerifyString(ttmlir_git_hash()) &&
270 verifier.VerifyTable(system_desc()) &&
271 VerifyOffset(verifier, VT_PROGRAMS) &&
272 verifier.VerifyVector(programs()) &&
273 verifier.VerifyVectorOfTables(programs()) &&
280 ::flatbuffers::FlatBufferBuilder &
fbb_;
291 void add_programs(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::Program>>> programs) {
292 fbb_.AddOffset(TTMetalBinary::VT_PROGRAMS, programs);
298 ::flatbuffers::Offset<TTMetalBinary>
Finish() {
300 auto o = ::flatbuffers::Offset<TTMetalBinary>(end);
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) {
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;
341 return ::flatbuffers::GetRoot<tt::target::metal::TTMetalBinary>(buf);
345 return ::flatbuffers::GetSizePrefixedRoot<tt::target::metal::TTMetalBinary>(buf);
353 return ::flatbuffers::BufferHasIdentifier(
358 return ::flatbuffers::BufferHasIdentifier(
363 ::flatbuffers::Verifier &verifier) {
368 ::flatbuffers::Verifier &verifier) {
377 ::flatbuffers::FlatBufferBuilder &fbb,
378 ::flatbuffers::Offset<tt::target::metal::TTMetalBinary> root) {
383 ::flatbuffers::FlatBufferBuilder &fbb,
384 ::flatbuffers::Offset<tt::target::metal::TTMetalBinary> root) {
Definition: debug_info_generated.h:18
Definition: debug_info_generated.h:36