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