4 #ifndef FLATBUFFERS_GENERATED_DEBUGINFO_TT_TARGET_H_
5 #define FLATBUFFERS_GENERATED_DEBUGINFO_TT_TARGET_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");
39 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
46 const ::flatbuffers::String *
name()
const {
47 return GetPointer<const ::flatbuffers::String *>(
VT_NAME);
49 const ::flatbuffers::Vector<int64_t> *
shape()
const {
50 return GetPointer<const ::flatbuffers::Vector<int64_t> *>(
VT_SHAPE);
52 const ::flatbuffers::Vector<int64_t> *
stride()
const {
53 return GetPointer<const ::flatbuffers::Vector<int64_t> *>(
VT_STRIDE);
58 const ::flatbuffers::Vector<uint8_t> *
data()
const {
59 return GetPointer<const ::flatbuffers::Vector<uint8_t> *>(
VT_DATA);
61 bool Verify(::flatbuffers::Verifier &verifier)
const {
62 return VerifyTableStart(verifier) &&
63 VerifyOffset(verifier,
VT_NAME) &&
64 verifier.VerifyString(name()) &&
66 verifier.VerifyVector(shape()) &&
68 verifier.VerifyVector(stride()) &&
69 VerifyField<uint16_t>(verifier,
VT_DTYPE, 2) &&
70 VerifyOffset(verifier,
VT_DATA) &&
71 verifier.VerifyVector(data()) &&
78 ::flatbuffers::FlatBufferBuilder &
fbb_;
80 void add_name(::flatbuffers::Offset<::flatbuffers::String> name) {
83 void add_shape(::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shape) {
86 void add_stride(::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> stride) {
92 void add_data(::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> data) {
99 ::flatbuffers::Offset<GoldenTensor>
Finish() {
101 auto o = ::flatbuffers::Offset<GoldenTensor>(end);
107 ::flatbuffers::FlatBufferBuilder &_fbb,
108 ::flatbuffers::Offset<::flatbuffers::String> name = 0,
109 ::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> shape = 0,
110 ::flatbuffers::Offset<::flatbuffers::Vector<int64_t>> stride = 0,
112 ::flatbuffers::Offset<::flatbuffers::Vector<uint8_t>> data = 0) {
128 ::flatbuffers::FlatBufferBuilder &_fbb,
129 const char *name =
nullptr,
130 const std::vector<int64_t> *shape =
nullptr,
131 const std::vector<int64_t> *stride =
nullptr,
133 const std::vector<uint8_t> *data =
nullptr) {
134 auto name__ = name ? _fbb.CreateString(name) : 0;
135 auto shape__ = shape ? _fbb.CreateVector<int64_t>(*shape) : 0;
136 auto stride__ = stride ? _fbb.CreateVector<int64_t>(*stride) : 0;
137 auto data__ = data ? _fbb.CreateVector<uint8_t>(*data) : 0;
147 struct GoldenKV FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
150 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
154 const ::flatbuffers::String *
key()
const {
155 return GetPointer<const ::flatbuffers::String *>(
VT_KEY);
157 const tt::target::GoldenTensor *
value()
const {
158 return GetPointer<const tt::target::GoldenTensor *>(VT_VALUE);
160 bool Verify(::flatbuffers::Verifier &verifier)
const {
161 return VerifyTableStart(verifier) &&
162 VerifyOffset(verifier,
VT_KEY) &&
163 verifier.VerifyString(key()) &&
164 VerifyOffset(verifier, VT_VALUE) &&
165 verifier.VerifyTable(value()) &&
172 ::flatbuffers::FlatBufferBuilder &
fbb_;
174 void add_key(::flatbuffers::Offset<::flatbuffers::String> key) {
177 void add_value(::flatbuffers::Offset<tt::target::GoldenTensor> value) {
178 fbb_.AddOffset(GoldenKV::VT_VALUE, value);
184 ::flatbuffers::Offset<GoldenKV>
Finish() {
186 auto o = ::flatbuffers::Offset<GoldenKV>(end);
192 ::flatbuffers::FlatBufferBuilder &_fbb,
193 ::flatbuffers::Offset<::flatbuffers::String> key = 0,
194 ::flatbuffers::Offset<tt::target::GoldenTensor> value = 0) {
207 ::flatbuffers::FlatBufferBuilder &_fbb,
208 const char *key =
nullptr,
209 ::flatbuffers::Offset<tt::target::GoldenTensor> value = 0) {
210 auto key__ = key ? _fbb.CreateString(key) : 0;
217 struct GoldenInfo FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
220 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
223 const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::GoldenKV>> *
golden_map()
const {
224 return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<tt::target::GoldenKV>> *>(VT_GOLDEN_MAP);
226 bool Verify(::flatbuffers::Verifier &verifier)
const {
227 return VerifyTableStart(verifier) &&
228 VerifyOffset(verifier, VT_GOLDEN_MAP) &&
229 verifier.VerifyVector(golden_map()) &&
230 verifier.VerifyVectorOfTables(golden_map()) &&
237 ::flatbuffers::FlatBufferBuilder &
fbb_;
239 void add_golden_map(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::GoldenKV>>> golden_map) {
240 fbb_.AddOffset(GoldenInfo::VT_GOLDEN_MAP, golden_map);
246 ::flatbuffers::Offset<GoldenInfo>
Finish() {
248 auto o = ::flatbuffers::Offset<GoldenInfo>(end);
254 ::flatbuffers::FlatBufferBuilder &_fbb,
255 ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<tt::target::GoldenKV>>> golden_map = 0) {
267 ::flatbuffers::FlatBufferBuilder &_fbb,
268 const std::vector<::flatbuffers::Offset<tt::target::GoldenKV>> *golden_map =
nullptr) {
269 auto golden_map__ = golden_map ? _fbb.CreateVector<::flatbuffers::Offset<tt::target::GoldenKV>>(*golden_map) : 0;
275 struct MLIR FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
278 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
282 const ::flatbuffers::String *
name()
const {
283 return GetPointer<const ::flatbuffers::String *>(
VT_NAME);
285 const ::flatbuffers::String *
source()
const {
286 return GetPointer<const ::flatbuffers::String *>(
VT_SOURCE);
288 bool Verify(::flatbuffers::Verifier &verifier)
const {
289 return VerifyTableStart(verifier) &&
290 VerifyOffset(verifier,
VT_NAME) &&
291 verifier.VerifyString(name()) &&
293 verifier.VerifyString(source()) &&
300 ::flatbuffers::FlatBufferBuilder &
fbb_;
302 void add_name(::flatbuffers::Offset<::flatbuffers::String> name) {
305 void add_source(::flatbuffers::Offset<::flatbuffers::String> source) {
314 auto o = ::flatbuffers::Offset<MLIR>(end);
320 ::flatbuffers::FlatBufferBuilder &_fbb,
321 ::flatbuffers::Offset<::flatbuffers::String> name = 0,
322 ::flatbuffers::Offset<::flatbuffers::String> source = 0) {
335 ::flatbuffers::FlatBufferBuilder &_fbb,
336 const char *name =
nullptr,
337 const char *source =
nullptr) {
338 auto name__ = name ? _fbb.CreateString(name) : 0;
339 auto source__ = source ? _fbb.CreateString(source) : 0;
346 struct DebugInfo FLATBUFFERS_FINAL_CLASS :
private ::flatbuffers::Table {
349 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
354 const tt::target::MLIR *
mlir()
const {
355 return GetPointer<const tt::target::MLIR *>(
VT_MLIR);
357 const ::flatbuffers::String *
cpp()
const {
358 return GetPointer<const ::flatbuffers::String *>(
VT_CPP);
361 return GetPointer<const tt::target::GoldenInfo *>(VT_GOLDEN_INFO);
363 bool Verify(::flatbuffers::Verifier &verifier)
const {
364 return VerifyTableStart(verifier) &&
365 VerifyOffset(verifier,
VT_MLIR) &&
366 verifier.VerifyTable(
mlir()) &&
367 VerifyOffset(verifier,
VT_CPP) &&
368 verifier.VerifyString(cpp()) &&
369 VerifyOffset(verifier, VT_GOLDEN_INFO) &&
370 verifier.VerifyTable(golden_info()) &&
377 ::flatbuffers::FlatBufferBuilder &
fbb_;
382 void add_cpp(::flatbuffers::Offset<::flatbuffers::String> cpp) {
386 fbb_.AddOffset(DebugInfo::VT_GOLDEN_INFO, golden_info);
392 ::flatbuffers::Offset<DebugInfo>
Finish() {
394 auto o = ::flatbuffers::Offset<DebugInfo>(end);
400 ::flatbuffers::FlatBufferBuilder &_fbb,
401 ::flatbuffers::Offset<tt::target::MLIR>
mlir = 0,
402 ::flatbuffers::Offset<::flatbuffers::String> cpp = 0,
403 ::flatbuffers::Offset<tt::target::GoldenInfo> golden_info = 0) {
417 ::flatbuffers::FlatBufferBuilder &_fbb,
418 ::flatbuffers::Offset<tt::target::MLIR>
mlir = 0,
419 const char *cpp =
nullptr,
420 ::flatbuffers::Offset<tt::target::GoldenInfo> golden_info = 0) {
421 auto cpp__ = cpp ? _fbb.CreateString(cpp) : 0;
VT_CPP
Definition: debug_info_generated.h:351
VT_DTYPE
Definition: debug_info_generated.h:43
VT_SHAPE
Definition: debug_info_generated.h:41
VT_STRIDE
Definition: debug_info_generated.h:42
VT_MLIR
Definition: debug_info_generated.h:350
VT_KEY
Definition: debug_info_generated.h:151
VT_NAME
Definition: debug_info_generated.h:40
Definition: TTOpsAttrDefs.cpp.inc:250
inline ::flatbuffers::Offset< DebugInfo > CreateDebugInfo(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::MLIR > mlir=0, ::flatbuffers::Offset<::flatbuffers::String > cpp=0, ::flatbuffers::Offset< tt::target::GoldenInfo > golden_info=0)
Definition: debug_info_generated.h:399
inline ::flatbuffers::Offset< GoldenKV > CreateGoldenKVDirect(::flatbuffers::FlatBufferBuilder &_fbb, const char *key=nullptr, ::flatbuffers::Offset< tt::target::GoldenTensor > value=0)
Definition: debug_info_generated.h:206
inline ::flatbuffers::Offset< GoldenTensor > CreateGoldenTensorDirect(::flatbuffers::FlatBufferBuilder &_fbb, const char *name=nullptr, const std::vector< int64_t > *shape=nullptr, const std::vector< int64_t > *stride=nullptr, tt::target::DataType dtype=tt::target::DataType::Float32, const std::vector< uint8_t > *data=nullptr)
Definition: debug_info_generated.h:127
inline ::flatbuffers::Offset< GoldenInfo > CreateGoldenInfo(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::GoldenKV >>> golden_map=0)
Definition: debug_info_generated.h:253
inline ::flatbuffers::Offset< MLIR > CreateMLIR(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::String > name=0, ::flatbuffers::Offset<::flatbuffers::String > source=0)
Definition: debug_info_generated.h:319
inline ::flatbuffers::Offset< GoldenInfo > CreateGoldenInfoDirect(::flatbuffers::FlatBufferBuilder &_fbb, const std::vector<::flatbuffers::Offset< tt::target::GoldenKV >> *golden_map=nullptr)
Definition: debug_info_generated.h:266
inline ::flatbuffers::Offset< GoldenKV > CreateGoldenKV(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::String > key=0, ::flatbuffers::Offset< tt::target::GoldenTensor > value=0)
Definition: debug_info_generated.h:191
inline ::flatbuffers::Offset< GoldenTensor > CreateGoldenTensor(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::String > name=0, ::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> shape=0, ::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> stride=0, tt::target::DataType dtype=tt::target::DataType::Float32, ::flatbuffers::Offset<::flatbuffers::Vector< uint8_t >> data=0)
Definition: debug_info_generated.h:106
inline ::flatbuffers::Offset< MLIR > CreateMLIRDirect(::flatbuffers::FlatBufferBuilder &_fbb, const char *name=nullptr, const char *source=nullptr)
Definition: debug_info_generated.h:334
DataType
Definition: types_generated.h:117
inline ::flatbuffers::Offset< DebugInfo > CreateDebugInfoDirect(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::MLIR > mlir=0, const char *cpp=nullptr, ::flatbuffers::Offset< tt::target::GoldenInfo > golden_info=0)
Definition: debug_info_generated.h:416
Definition: debug_info_generated.h:18
Definition: debug_info_generated.h:375
DebugInfo Table
Definition: debug_info_generated.h:376
::flatbuffers::uoffset_t start_
Definition: debug_info_generated.h:378
::flatbuffers::Offset< DebugInfo > Finish()
Definition: debug_info_generated.h:392
DebugInfoBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: debug_info_generated.h:388
::flatbuffers::FlatBufferBuilder & fbb_
Definition: debug_info_generated.h:377
void add_cpp(::flatbuffers::Offset<::flatbuffers::String > cpp)
Definition: debug_info_generated.h:382
void add_golden_info(::flatbuffers::Offset< tt::target::GoldenInfo > golden_info)
Definition: debug_info_generated.h:385
void add_mlir(::flatbuffers::Offset< tt::target::MLIR > mlir)
Definition: debug_info_generated.h:379
Definition: debug_info_generated.h:411
static constexpr auto Create
Definition: debug_info_generated.h:413
DebugInfo type
Definition: debug_info_generated.h:412
Definition: debug_info_generated.h:36
const tt::target::GoldenInfo * golden_info() const
Definition: debug_info_generated.h:360
const tt::target::MLIR * mlir() const
Definition: debug_info_generated.h:354
const ::flatbuffers::Vector< int64_t > * stride() const
Definition: debug_info_generated.h:52
GoldenInfoBuilder Builder
Definition: debug_info_generated.h:218
const ::flatbuffers::String * cpp() const
Definition: debug_info_generated.h:357
const ::flatbuffers::Vector<::flatbuffers::Offset< tt::target::GoldenKV > > * golden_map() const
Definition: debug_info_generated.h:223
GoldenTensorBuilder Builder
Definition: debug_info_generated.h:37
const ::flatbuffers::Vector< uint8_t > * data() const
Definition: debug_info_generated.h:58
tt::target::DataType dtype() const
Definition: debug_info_generated.h:55
const ::flatbuffers::String * name() const
Definition: debug_info_generated.h:46
DebugInfoBuilder Builder
Definition: debug_info_generated.h:347
MLIRBuilder Builder
Definition: debug_info_generated.h:276
const ::flatbuffers::String * key() const
Definition: debug_info_generated.h:154
GoldenKVBuilder Builder
Definition: debug_info_generated.h:148
const tt::target::GoldenTensor * value() const
Definition: debug_info_generated.h:157
bool Verify(::flatbuffers::Verifier &verifier) const
Definition: debug_info_generated.h:61
const ::flatbuffers::String * source() const
Definition: debug_info_generated.h:285
const ::flatbuffers::Vector< int64_t > * shape() const
Definition: debug_info_generated.h:49
Definition: debug_info_generated.h:235
::flatbuffers::Offset< GoldenInfo > Finish()
Definition: debug_info_generated.h:246
void add_golden_map(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset< tt::target::GoldenKV >>> golden_map)
Definition: debug_info_generated.h:239
::flatbuffers::FlatBufferBuilder & fbb_
Definition: debug_info_generated.h:237
GoldenInfoBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: debug_info_generated.h:242
::flatbuffers::uoffset_t start_
Definition: debug_info_generated.h:238
GoldenInfo Table
Definition: debug_info_generated.h:236
Definition: debug_info_generated.h:261
GoldenInfo type
Definition: debug_info_generated.h:262
static constexpr auto Create
Definition: debug_info_generated.h:263
Definition: debug_info_generated.h:170
GoldenKV Table
Definition: debug_info_generated.h:171
::flatbuffers::FlatBufferBuilder & fbb_
Definition: debug_info_generated.h:172
::flatbuffers::Offset< GoldenKV > Finish()
Definition: debug_info_generated.h:184
::flatbuffers::uoffset_t start_
Definition: debug_info_generated.h:173
void add_value(::flatbuffers::Offset< tt::target::GoldenTensor > value)
Definition: debug_info_generated.h:177
GoldenKVBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: debug_info_generated.h:180
void add_key(::flatbuffers::Offset<::flatbuffers::String > key)
Definition: debug_info_generated.h:174
Definition: debug_info_generated.h:201
GoldenKV type
Definition: debug_info_generated.h:202
static constexpr auto Create
Definition: debug_info_generated.h:203
Definition: debug_info_generated.h:76
void add_shape(::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> shape)
Definition: debug_info_generated.h:83
::flatbuffers::FlatBufferBuilder & fbb_
Definition: debug_info_generated.h:78
GoldenTensor Table
Definition: debug_info_generated.h:77
void add_data(::flatbuffers::Offset<::flatbuffers::Vector< uint8_t >> data)
Definition: debug_info_generated.h:92
::flatbuffers::Offset< GoldenTensor > Finish()
Definition: debug_info_generated.h:99
void add_dtype(tt::target::DataType dtype)
Definition: debug_info_generated.h:89
void add_name(::flatbuffers::Offset<::flatbuffers::String > name)
Definition: debug_info_generated.h:80
void add_stride(::flatbuffers::Offset<::flatbuffers::Vector< int64_t >> stride)
Definition: debug_info_generated.h:86
::flatbuffers::uoffset_t start_
Definition: debug_info_generated.h:79
GoldenTensorBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: debug_info_generated.h:95
Definition: debug_info_generated.h:122
GoldenTensor type
Definition: debug_info_generated.h:123
static constexpr auto Create
Definition: debug_info_generated.h:124
Definition: debug_info_generated.h:298
::flatbuffers::uoffset_t start_
Definition: debug_info_generated.h:301
void add_source(::flatbuffers::Offset<::flatbuffers::String > source)
Definition: debug_info_generated.h:305
void add_name(::flatbuffers::Offset<::flatbuffers::String > name)
Definition: debug_info_generated.h:302
::flatbuffers::Offset< MLIR > Finish()
Definition: debug_info_generated.h:312
MLIRBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: debug_info_generated.h:308
::flatbuffers::FlatBufferBuilder & fbb_
Definition: debug_info_generated.h:300
MLIR Table
Definition: debug_info_generated.h:299
Definition: debug_info_generated.h:329
MLIR type
Definition: debug_info_generated.h:330
static constexpr auto Create
Definition: debug_info_generated.h:331