4 #ifndef FLATBUFFERS_GENERATED_COMMAND_TT_TARGET_METAL_H_
5 #define FLATBUFFERS_GENERATED_COMMAND_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");
23 struct EnqueueProgramCommandBuilder;
26 struct ConstantBuffer8Builder;
29 struct ConstantBuffer16Builder;
32 struct ConstantBuffer32Builder;
35 struct EnqueueWriteBufferCommandBuilder;
38 struct EnqueueReadBufferCommandBuilder;
41 struct CreateBufferCommandBuilder;
44 struct DeallocateBufferCommandBuilder;
47 struct CreateEventCommandBuilder;
50 struct EnqueueRecordEventCommandBuilder;
53 struct EnqueueWaitForEventCommandBuilder;
56 struct EventSynchronizeCommandBuilder;
59 struct EventQueryCommandBuilder;
62 struct FinishCommandBuilder;
65 struct CommandBuilder;
68 struct CommandQueueBuilder;
92 static const char *
const names[6] = {
105 const size_t index =
static_cast<size_t>(e);
130 bool VerifyHostBufferVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<HostBuffer> *types);
168 static const char *
const names[13] = {
170 "EnqueueProgramCommand",
171 "EnqueueWriteBufferCommand",
172 "EnqueueReadBufferCommand",
173 "CreateBufferCommand",
174 "DeallocateBufferCommand",
175 "CreateEventCommand",
176 "EnqueueRecordEventCommand",
177 "EnqueueWaitForEventCommand",
178 "EventSynchronizeCommand",
188 const size_t index =
static_cast<size_t>(e);
241 bool VerifyCommandTypeVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<CommandType> *types);
246 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
250 const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *
operands()
const {
251 return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>> *>(
VT_OPERANDS);
253 const tt::target::metal::ProgramDesc *
program()
const {
254 return GetPointer<const tt::target::metal::ProgramDesc *>(VT_PROGRAM);
256 bool Verify(::flatbuffers::Verifier &verifier)
const {
257 return VerifyTableStart(verifier) &&
259 verifier.VerifyVector(operands()) &&
260 verifier.VerifyVectorOfTables(operands()) &&
261 VerifyOffset(verifier, VT_PROGRAM) &&
262 verifier.VerifyTable(program()) &&
269 ::flatbuffers::FlatBufferBuilder &
fbb_;
271 void add_operands(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> operands) {
274 void add_program(::flatbuffers::Offset<tt::target::metal::ProgramDesc> program) {
275 fbb_.AddOffset(EnqueueProgramCommand::VT_PROGRAM, program);
281 ::flatbuffers::Offset<EnqueueProgramCommand>
Finish() {
283 auto o = ::flatbuffers::Offset<EnqueueProgramCommand>(end);
289 ::flatbuffers::FlatBufferBuilder &_fbb,
290 ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::TensorRef>>> operands = 0,
291 ::flatbuffers::Offset<tt::target::metal::ProgramDesc> program = 0) {
304 ::flatbuffers::FlatBufferBuilder &_fbb,
305 const std::vector<::flatbuffers::Offset<tt::target::TensorRef>> *operands =
nullptr,
306 ::flatbuffers::Offset<tt::target::metal::ProgramDesc> program = 0) {
307 auto operands__ = operands ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::TensorRef>>(*operands) : 0;
317 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
320 const ::flatbuffers::Vector<uint8_t> *
data()
const {
321 return GetPointer<const ::flatbuffers::Vector<uint8_t> *>(
VT_DATA);
323 bool Verify(::flatbuffers::Verifier &verifier)
const {
324 return VerifyTableStart(verifier) &&
325 VerifyOffset(verifier,
VT_DATA) &&
326 verifier.VerifyVector(data()) &&
333 ::flatbuffers::FlatBufferBuilder &
fbb_;
335 void add_data(::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> data) {
342 ::flatbuffers::Offset<ConstantBuffer8>
Finish() {
344 auto o = ::flatbuffers::Offset<ConstantBuffer8>(end);
350 ::flatbuffers::FlatBufferBuilder &_fbb,
351 ::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> data = 0) {
363 ::flatbuffers::FlatBufferBuilder &_fbb,
364 const std::vector<uint8_t> *data =
nullptr) {
365 auto data__ = data ? _fbb.CreateVector<uint8_t>(*data) : 0;
374 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
377 const ::flatbuffers::Vector<uint16_t> *
data()
const {
378 return GetPointer<const ::flatbuffers::Vector<uint16_t> *>(
VT_DATA);
380 bool Verify(::flatbuffers::Verifier &verifier)
const {
381 return VerifyTableStart(verifier) &&
382 VerifyOffset(verifier,
VT_DATA) &&
383 verifier.VerifyVector(data()) &&
390 ::flatbuffers::FlatBufferBuilder &
fbb_;
392 void add_data(::flatbuffers::Offset<::flatbuffers::Vector<uint16_t>> data) {
399 ::flatbuffers::Offset<ConstantBuffer16>
Finish() {
401 auto o = ::flatbuffers::Offset<ConstantBuffer16>(end);
407 ::flatbuffers::FlatBufferBuilder &_fbb,
408 ::flatbuffers::Offset<::flatbuffers::Vector<uint16_t>> data = 0) {
420 ::flatbuffers::FlatBufferBuilder &_fbb,
421 const std::vector<uint16_t> *data =
nullptr) {
422 auto data__ = data ? _fbb.CreateVector<uint16_t>(*data) : 0;
431 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
434 const ::flatbuffers::Vector<uint32_t> *
data()
const {
435 return GetPointer<const ::flatbuffers::Vector<uint32_t> *>(
VT_DATA);
437 bool Verify(::flatbuffers::Verifier &verifier)
const {
438 return VerifyTableStart(verifier) &&
439 VerifyOffset(verifier,
VT_DATA) &&
440 verifier.VerifyVector(data()) &&
447 ::flatbuffers::FlatBufferBuilder &
fbb_;
449 void add_data(::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> data) {
456 ::flatbuffers::Offset<ConstantBuffer32>
Finish() {
458 auto o = ::flatbuffers::Offset<ConstantBuffer32>(end);
464 ::flatbuffers::FlatBufferBuilder &_fbb,
465 ::flatbuffers::Offset<::flatbuffers::Vector<uint32_t>> data = 0) {
477 ::flatbuffers::FlatBufferBuilder &_fbb,
478 const std::vector<uint32_t> *data =
nullptr) {
479 auto data__ = data ? _fbb.CreateVector<uint32_t>(*data) : 0;
488 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
497 return GetPointer<const void *>(
VT_SRC);
499 template<
typename T>
const T *
src_as()
const;
512 const tt::target::TensorRef *
dst()
const {
513 return GetPointer<const tt::target::TensorRef *>(VT_DST);
515 bool Verify(::flatbuffers::Verifier &verifier)
const {
516 return VerifyTableStart(verifier) &&
518 VerifyOffset(verifier,
VT_SRC) &&
520 VerifyOffset(verifier, VT_DST) &&
521 verifier.VerifyTable(dst()) &&
526 template<>
inline const tt::target::TensorRef *EnqueueWriteBufferCommand::src_as<tt::target::TensorRef>()
const {
527 return src_as_TensorRef();
530 template<>
inline const tt::target::metal::ConstantBuffer8 *EnqueueWriteBufferCommand::src_as<tt::target::metal::ConstantBuffer8>()
const {
531 return src_as_ConstantBuffer8();
534 template<>
inline const tt::target::metal::ConstantBuffer16 *EnqueueWriteBufferCommand::src_as<tt::target::metal::ConstantBuffer16>()
const {
535 return src_as_ConstantBuffer16();
538 template<>
inline const tt::target::metal::ConstantBuffer32 *EnqueueWriteBufferCommand::src_as<tt::target::metal::ConstantBuffer32>()
const {
539 return src_as_ConstantBuffer32();
544 ::flatbuffers::FlatBufferBuilder &
fbb_;
549 void add_src(::flatbuffers::Offset<void> src) {
552 void add_dst(::flatbuffers::Offset<tt::target::TensorRef> dst) {
553 fbb_.AddOffset(EnqueueWriteBufferCommand::VT_DST, dst);
559 ::flatbuffers::Offset<EnqueueWriteBufferCommand>
Finish() {
561 auto o = ::flatbuffers::Offset<EnqueueWriteBufferCommand>(end);
567 ::flatbuffers::FlatBufferBuilder &_fbb,
569 ::flatbuffers::Offset<void> src = 0,
570 ::flatbuffers::Offset<tt::target::TensorRef> dst = 0) {
586 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
590 const tt::target::TensorRef *
src()
const {
591 return GetPointer<const tt::target::TensorRef *>(
VT_SRC);
593 const tt::target::TensorRef *
dst()
const {
594 return GetPointer<const tt::target::TensorRef *>(VT_DST);
596 bool Verify(::flatbuffers::Verifier &verifier)
const {
597 return VerifyTableStart(verifier) &&
598 VerifyOffset(verifier,
VT_SRC) &&
599 verifier.VerifyTable(src()) &&
600 VerifyOffset(verifier, VT_DST) &&
601 verifier.VerifyTable(dst()) &&
608 ::flatbuffers::FlatBufferBuilder &
fbb_;
610 void add_src(::flatbuffers::Offset<tt::target::TensorRef> src) {
613 void add_dst(::flatbuffers::Offset<tt::target::TensorRef> dst) {
614 fbb_.AddOffset(EnqueueReadBufferCommand::VT_DST, dst);
620 ::flatbuffers::Offset<EnqueueReadBufferCommand>
Finish() {
622 auto o = ::flatbuffers::Offset<EnqueueReadBufferCommand>(end);
628 ::flatbuffers::FlatBufferBuilder &_fbb,
629 ::flatbuffers::Offset<tt::target::TensorRef> src = 0,
630 ::flatbuffers::Offset<tt::target::TensorRef> dst = 0) {
645 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
648 const tt::target::TensorRef *
ref()
const {
649 return GetPointer<const tt::target::TensorRef *>(VT_REF);
651 bool Verify(::flatbuffers::Verifier &verifier)
const {
652 return VerifyTableStart(verifier) &&
653 VerifyOffset(verifier, VT_REF) &&
654 verifier.VerifyTable(ref()) &&
661 ::flatbuffers::FlatBufferBuilder &
fbb_;
663 void add_ref(::flatbuffers::Offset<tt::target::TensorRef> ref) {
664 fbb_.AddOffset(CreateBufferCommand::VT_REF, ref);
670 ::flatbuffers::Offset<CreateBufferCommand>
Finish() {
672 auto o = ::flatbuffers::Offset<CreateBufferCommand>(end);
678 ::flatbuffers::FlatBufferBuilder &_fbb,
679 ::flatbuffers::Offset<tt::target::TensorRef> ref = 0) {
693 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
696 const tt::target::TensorRef *
ref()
const {
697 return GetPointer<const tt::target::TensorRef *>(VT_REF);
699 bool Verify(::flatbuffers::Verifier &verifier)
const {
700 return VerifyTableStart(verifier) &&
701 VerifyOffset(verifier, VT_REF) &&
702 verifier.VerifyTable(ref()) &&
709 ::flatbuffers::FlatBufferBuilder &
fbb_;
711 void add_ref(::flatbuffers::Offset<tt::target::TensorRef> ref) {
712 fbb_.AddOffset(DeallocateBufferCommand::VT_REF, ref);
718 ::flatbuffers::Offset<DeallocateBufferCommand>
Finish() {
720 auto o = ::flatbuffers::Offset<DeallocateBufferCommand>(end);
726 ::flatbuffers::FlatBufferBuilder &_fbb,
727 ::flatbuffers::Offset<tt::target::TensorRef> ref = 0) {
741 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
744 const tt::target::EventRef *
ref()
const {
745 return GetPointer<const tt::target::EventRef *>(VT_REF);
747 bool Verify(::flatbuffers::Verifier &verifier)
const {
748 return VerifyTableStart(verifier) &&
749 VerifyOffset(verifier, VT_REF) &&
750 verifier.VerifyTable(ref()) &&
757 ::flatbuffers::FlatBufferBuilder &
fbb_;
759 void add_ref(::flatbuffers::Offset<tt::target::EventRef> ref) {
760 fbb_.AddOffset(CreateEventCommand::VT_REF, ref);
766 ::flatbuffers::Offset<CreateEventCommand>
Finish() {
768 auto o = ::flatbuffers::Offset<CreateEventCommand>(end);
774 ::flatbuffers::FlatBufferBuilder &_fbb,
775 ::flatbuffers::Offset<tt::target::EventRef> ref = 0) {
789 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
792 const tt::target::EventRef *
ref()
const {
793 return GetPointer<const tt::target::EventRef *>(VT_REF);
795 bool Verify(::flatbuffers::Verifier &verifier)
const {
796 return VerifyTableStart(verifier) &&
797 VerifyOffset(verifier, VT_REF) &&
798 verifier.VerifyTable(ref()) &&
805 ::flatbuffers::FlatBufferBuilder &
fbb_;
807 void add_ref(::flatbuffers::Offset<tt::target::EventRef> ref) {
808 fbb_.AddOffset(EnqueueRecordEventCommand::VT_REF, ref);
814 ::flatbuffers::Offset<EnqueueRecordEventCommand>
Finish() {
816 auto o = ::flatbuffers::Offset<EnqueueRecordEventCommand>(end);
822 ::flatbuffers::FlatBufferBuilder &_fbb,
823 ::flatbuffers::Offset<tt::target::EventRef> ref = 0) {
837 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
840 const tt::target::EventRef *
ref()
const {
841 return GetPointer<const tt::target::EventRef *>(VT_REF);
843 bool Verify(::flatbuffers::Verifier &verifier)
const {
844 return VerifyTableStart(verifier) &&
845 VerifyOffset(verifier, VT_REF) &&
846 verifier.VerifyTable(ref()) &&
853 ::flatbuffers::FlatBufferBuilder &
fbb_;
855 void add_ref(::flatbuffers::Offset<tt::target::EventRef> ref) {
856 fbb_.AddOffset(EnqueueWaitForEventCommand::VT_REF, ref);
862 ::flatbuffers::Offset<EnqueueWaitForEventCommand>
Finish() {
864 auto o = ::flatbuffers::Offset<EnqueueWaitForEventCommand>(end);
870 ::flatbuffers::FlatBufferBuilder &_fbb,
871 ::flatbuffers::Offset<tt::target::EventRef> ref = 0) {
885 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
888 const tt::target::EventRef *
ref()
const {
889 return GetPointer<const tt::target::EventRef *>(VT_REF);
891 bool Verify(::flatbuffers::Verifier &verifier)
const {
892 return VerifyTableStart(verifier) &&
893 VerifyOffset(verifier, VT_REF) &&
894 verifier.VerifyTable(ref()) &&
901 ::flatbuffers::FlatBufferBuilder &
fbb_;
903 void add_ref(::flatbuffers::Offset<tt::target::EventRef> ref) {
904 fbb_.AddOffset(EventSynchronizeCommand::VT_REF, ref);
910 ::flatbuffers::Offset<EventSynchronizeCommand>
Finish() {
912 auto o = ::flatbuffers::Offset<EventSynchronizeCommand>(end);
918 ::flatbuffers::FlatBufferBuilder &_fbb,
919 ::flatbuffers::Offset<tt::target::EventRef> ref = 0) {
933 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
936 const tt::target::EventRef *
ref()
const {
937 return GetPointer<const tt::target::EventRef *>(VT_REF);
939 bool Verify(::flatbuffers::Verifier &verifier)
const {
940 return VerifyTableStart(verifier) &&
941 VerifyOffset(verifier, VT_REF) &&
942 verifier.VerifyTable(ref()) &&
949 ::flatbuffers::FlatBufferBuilder &
fbb_;
951 void add_ref(::flatbuffers::Offset<tt::target::EventRef> ref) {
952 fbb_.AddOffset(EventQueryCommand::VT_REF, ref);
958 ::flatbuffers::Offset<EventQueryCommand>
Finish() {
960 auto o = ::flatbuffers::Offset<EventQueryCommand>(end);
966 ::flatbuffers::FlatBufferBuilder &_fbb,
967 ::flatbuffers::Offset<tt::target::EventRef> ref = 0) {
981 bool Verify(::flatbuffers::Verifier &verifier)
const {
982 return VerifyTableStart(verifier) &&
989 ::flatbuffers::FlatBufferBuilder &
fbb_;
995 ::flatbuffers::Offset<FinishCommand>
Finish() {
997 auto o = ::flatbuffers::Offset<FinishCommand>(end);
1003 ::flatbuffers::FlatBufferBuilder &_fbb) {
1005 return builder_.
Finish();
1016 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1025 return GetPointer<const void *>(
VT_TYPE);
1062 return GetPointer<const ::flatbuffers::String *>(VT_DEBUG_INFO);
1064 bool Verify(::flatbuffers::Verifier &verifier)
const {
1065 return VerifyTableStart(verifier) &&
1067 VerifyOffset(verifier,
VT_TYPE) &&
1069 VerifyOffset(verifier, VT_DEBUG_INFO) &&
1070 verifier.VerifyString(debug_info()) &&
1071 verifier.EndTable();
1075 template<>
inline const tt::target::metal::EnqueueProgramCommand *Command::type_as<tt::target::metal::EnqueueProgramCommand>()
const {
1076 return type_as_EnqueueProgramCommand();
1079 template<>
inline const tt::target::metal::EnqueueWriteBufferCommand *Command::type_as<tt::target::metal::EnqueueWriteBufferCommand>()
const {
1080 return type_as_EnqueueWriteBufferCommand();
1083 template<>
inline const tt::target::metal::EnqueueReadBufferCommand *Command::type_as<tt::target::metal::EnqueueReadBufferCommand>()
const {
1084 return type_as_EnqueueReadBufferCommand();
1087 template<>
inline const tt::target::metal::CreateBufferCommand *Command::type_as<tt::target::metal::CreateBufferCommand>()
const {
1088 return type_as_CreateBufferCommand();
1091 template<>
inline const tt::target::metal::DeallocateBufferCommand *Command::type_as<tt::target::metal::DeallocateBufferCommand>()
const {
1092 return type_as_DeallocateBufferCommand();
1095 template<>
inline const tt::target::metal::CreateEventCommand *Command::type_as<tt::target::metal::CreateEventCommand>()
const {
1096 return type_as_CreateEventCommand();
1099 template<>
inline const tt::target::metal::EnqueueRecordEventCommand *Command::type_as<tt::target::metal::EnqueueRecordEventCommand>()
const {
1100 return type_as_EnqueueRecordEventCommand();
1103 template<>
inline const tt::target::metal::EnqueueWaitForEventCommand *Command::type_as<tt::target::metal::EnqueueWaitForEventCommand>()
const {
1104 return type_as_EnqueueWaitForEventCommand();
1107 template<>
inline const tt::target::metal::EventSynchronizeCommand *Command::type_as<tt::target::metal::EventSynchronizeCommand>()
const {
1108 return type_as_EventSynchronizeCommand();
1111 template<>
inline const tt::target::metal::EventQueryCommand *Command::type_as<tt::target::metal::EventQueryCommand>()
const {
1112 return type_as_EventQueryCommand();
1115 template<>
inline const tt::target::metal::FinishCommand *Command::type_as<tt::target::metal::FinishCommand>()
const {
1116 return type_as_FinishCommand();
1121 ::flatbuffers::FlatBufferBuilder &
fbb_;
1130 fbb_.AddOffset(Command::VT_DEBUG_INFO, debug_info);
1138 auto o = ::flatbuffers::Offset<Command>(end);
1144 ::flatbuffers::FlatBufferBuilder &_fbb,
1146 ::flatbuffers::Offset<void> type = 0,
1147 ::flatbuffers::Offset<::flatbuffers::String> debug_info = 0) {
1152 return builder_.
Finish();
1161 ::flatbuffers::FlatBufferBuilder &_fbb,
1163 ::flatbuffers::Offset<void> type = 0,
1164 const char *debug_info =
nullptr) {
1165 auto debug_info__ = debug_info ? _fbb.CreateString(debug_info) : 0;
1176 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1180 const ::flatbuffers::String *
name()
const {
1181 return GetPointer<const ::flatbuffers::String *>(
VT_NAME);
1183 const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::Command>> *
commands()
const {
1184 return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::Command>> *>(VT_COMMANDS);
1186 bool Verify(::flatbuffers::Verifier &verifier)
const {
1187 return VerifyTableStart(verifier) &&
1188 VerifyOffset(verifier,
VT_NAME) &&
1189 verifier.VerifyString(name()) &&
1190 VerifyOffset(verifier, VT_COMMANDS) &&
1191 verifier.VerifyVector(commands()) &&
1192 verifier.VerifyVectorOfTables(commands()) &&
1193 verifier.EndTable();
1199 ::flatbuffers::FlatBufferBuilder &
fbb_;
1201 void add_name(::flatbuffers::Offset<::flatbuffers::String> name) {
1204 void add_commands(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::Command>>> commands) {
1205 fbb_.AddOffset(CommandQueue::VT_COMMANDS, commands);
1211 ::flatbuffers::Offset<CommandQueue>
Finish() {
1213 auto o = ::flatbuffers::Offset<CommandQueue>(end);
1219 ::flatbuffers::FlatBufferBuilder &_fbb,
1220 ::flatbuffers::Offset<::flatbuffers::String> name = 0,
1221 ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::metal::Command>>> commands = 0) {
1225 return builder_.
Finish();
1234 ::flatbuffers::FlatBufferBuilder &_fbb,
1235 const char *name =
nullptr,
1236 const std::vector<::flatbuffers::Offset<tt::target::metal::Command>> *commands =
nullptr) {
1237 auto name__ = name ? _fbb.CreateString(name) : 0;
1238 auto commands__ = commands ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::metal::Command>>(*commands) : 0;
1251 auto ptr =
reinterpret_cast<const tt::target::TensorRef *
>(obj);
1252 return verifier.VerifyTable(ptr);
1255 auto ptr =
reinterpret_cast<const tt::target::metal::ConstantBuffer8 *
>(obj);
1256 return verifier.VerifyTable(ptr);
1259 auto ptr =
reinterpret_cast<const tt::target::metal::ConstantBuffer16 *
>(obj);
1260 return verifier.VerifyTable(ptr);
1263 auto ptr =
reinterpret_cast<const tt::target::metal::ConstantBuffer32 *
>(obj);
1264 return verifier.VerifyTable(ptr);
1266 default:
return true;
1270 inline bool VerifyHostBufferVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<HostBuffer> *types) {
1271 if (!values || !types)
return !values && !types;
1272 if (values->size() != types->size())
return false;
1273 for (::flatbuffers::uoffset_t i = 0; i < values->size(); ++i) {
1275 verifier, values->Get(i), types->GetEnum<
HostBuffer>(i))) {
1288 auto ptr =
reinterpret_cast<const tt::target::metal::EnqueueProgramCommand *
>(obj);
1289 return verifier.VerifyTable(ptr);
1292 auto ptr =
reinterpret_cast<const tt::target::metal::EnqueueWriteBufferCommand *
>(obj);
1293 return verifier.VerifyTable(ptr);
1296 auto ptr =
reinterpret_cast<const tt::target::metal::EnqueueReadBufferCommand *
>(obj);
1297 return verifier.VerifyTable(ptr);
1300 auto ptr =
reinterpret_cast<const tt::target::metal::CreateBufferCommand *
>(obj);
1301 return verifier.VerifyTable(ptr);
1304 auto ptr =
reinterpret_cast<const tt::target::metal::DeallocateBufferCommand *
>(obj);
1305 return verifier.VerifyTable(ptr);
1308 auto ptr =
reinterpret_cast<const tt::target::metal::CreateEventCommand *
>(obj);
1309 return verifier.VerifyTable(ptr);
1312 auto ptr =
reinterpret_cast<const tt::target::metal::EnqueueRecordEventCommand *
>(obj);
1313 return verifier.VerifyTable(ptr);
1316 auto ptr =
reinterpret_cast<const tt::target::metal::EnqueueWaitForEventCommand *
>(obj);
1317 return verifier.VerifyTable(ptr);
1320 auto ptr =
reinterpret_cast<const tt::target::metal::EventSynchronizeCommand *
>(obj);
1321 return verifier.VerifyTable(ptr);
1324 auto ptr =
reinterpret_cast<const tt::target::metal::EventQueryCommand *
>(obj);
1325 return verifier.VerifyTable(ptr);
1328 auto ptr =
reinterpret_cast<const tt::target::metal::FinishCommand *
>(obj);
1329 return verifier.VerifyTable(ptr);
1331 default:
return true;
1335 inline bool VerifyCommandTypeVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<CommandType> *types) {
1336 if (!values || !types)
return !values && !types;
1337 if (values->size() != types->size())
return false;
1338 for (::flatbuffers::uoffset_t i = 0; i < values->size(); ++i) {
1340 verifier, values->Get(i), types->GetEnum<
CommandType>(i))) {
VT_OPERANDS
Definition: command_generated.h:247
VT_SRC
Definition: command_generated.h:490
VT_SRC_TYPE
Definition: command_generated.h:489
VT_TYPE_TYPE
Definition: command_generated.h:1017
VT_TYPE
Definition: command_generated.h:1018
VT_NAME
Definition: command_generated.h:1177
Definition: debug_info_generated.h:18
Definition: debug_info_generated.h:36