TT-MLIR
deallocate_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_DEALLOCATE_TT_TARGET_TTNN_H_
5 #define FLATBUFFERS_GENERATED_DEALLOCATE_TT_TARGET_TTNN_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 
17 
18 namespace tt {
19 namespace target {
20 namespace ttnn {
21 
22 struct DeallocateOp;
23 struct DeallocateOpBuilder;
24 
25 struct DeallocateOp FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
27  struct Traits;
28  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
29  VT_IN = 4,
30  VT_FORCE = 6
31  };
32  const tt::target::ttnn::TensorRef *in() const {
33  return GetPointer<const tt::target::ttnn::TensorRef *>(VT_IN);
34  }
35  bool force() const {
36  return GetField<uint8_t>(VT_FORCE, 0) != 0;
37  }
38  bool Verify(::flatbuffers::Verifier &verifier) const {
39  return VerifyTableStart(verifier) &&
40  VerifyOffset(verifier, VT_IN) &&
41  verifier.VerifyTable(in()) &&
42  VerifyField<uint8_t>(verifier, VT_FORCE, 1) &&
43  verifier.EndTable();
44  }
45 };
46 
49  ::flatbuffers::FlatBufferBuilder &fbb_;
50  ::flatbuffers::uoffset_t start_;
51  void add_in(::flatbuffers::Offset<tt::target::ttnn::TensorRef> in) {
52  fbb_.AddOffset(DeallocateOp::VT_IN, in);
53  }
54  void add_force(bool force) {
55  fbb_.AddElement<uint8_t>(DeallocateOp::VT_FORCE, static_cast<uint8_t>(force), 0);
56  }
57  explicit DeallocateOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
58  : fbb_(_fbb) {
59  start_ = fbb_.StartTable();
60  }
61  ::flatbuffers::Offset<DeallocateOp> Finish() {
62  const auto end = fbb_.EndTable(start_);
63  auto o = ::flatbuffers::Offset<DeallocateOp>(end);
64  return o;
65  }
66 };
67 
68 inline ::flatbuffers::Offset<DeallocateOp> CreateDeallocateOp(
69  ::flatbuffers::FlatBufferBuilder &_fbb,
70  ::flatbuffers::Offset<tt::target::ttnn::TensorRef> in = 0,
71  bool force = false) {
72  DeallocateOpBuilder builder_(_fbb);
73  builder_.add_in(in);
74  builder_.add_force(force);
75  return builder_.Finish();
76 }
77 
79  using type = DeallocateOp;
80  static auto constexpr Create = CreateDeallocateOp;
81 };
82 
83 } // namespace ttnn
84 } // namespace target
85 } // namespace tt
86 
87 #endif // FLATBUFFERS_GENERATED_DEALLOCATE_TT_TARGET_TTNN_H_
VT_IN
Definition: deallocate_generated.h:29
inline ::flatbuffers::Offset< DeallocateOp > CreateDeallocateOp(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset< tt::target::ttnn::TensorRef > in=0, bool force=false)
Definition: deallocate_generated.h:68
Definition: debug_info_generated.h:18
Definition: deallocate_generated.h:47
DeallocateOpBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
Definition: deallocate_generated.h:57
::flatbuffers::uoffset_t start_
Definition: deallocate_generated.h:50
::flatbuffers::FlatBufferBuilder & fbb_
Definition: deallocate_generated.h:49
DeallocateOp Table
Definition: deallocate_generated.h:48
::flatbuffers::Offset< DeallocateOp > Finish()
Definition: deallocate_generated.h:61
void add_force(bool force)
Definition: deallocate_generated.h:54
void add_in(::flatbuffers::Offset< tt::target::ttnn::TensorRef > in)
Definition: deallocate_generated.h:51
Definition: deallocate_generated.h:78
DeallocateOp type
Definition: deallocate_generated.h:79
static constexpr auto Create
Definition: deallocate_generated.h:80
DeallocateOpBuilder Builder
Definition: deallocate_generated.h:26
const tt::target::ttnn::TensorRef * in() const
Definition: deallocate_generated.h:32
bool Verify(::flatbuffers::Verifier &verifier) const
Definition: deallocate_generated.h:38
bool force() const
Definition: deallocate_generated.h:35