LLZK 3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
Ops.h.inc
Go to the documentation of this file.
1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* Op Declarations *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* From: Ops.td *|
7|* *|
8\*===----------------------------------------------------------------------===*/
9
10namespace llzk::ram {
11
24class LoadOp;
25
26} // namespace llzk::ram
27namespace llzk::ram {
28
41class StoreOp;
42
43} // namespace llzk::ram
44#ifdef GET_OP_CLASSES
45#undef GET_OP_CLASSES
46
47namespace llzk::ram {
48
49
50//===----------------------------------------------------------------------===//
51// ::llzk::ram::LoadOp declarations
52//===----------------------------------------------------------------------===//
53
54namespace detail {
55
57public:
58 using Properties = ::mlir::EmptyProperties;
59protected:
60 ::mlir::DictionaryAttr odsAttrs;
61 ::std::optional<::mlir::OperationName> odsOpName;
63 ::mlir::RegionRange odsRegions;
64public:
65 LoadOpGenericAdaptorBase(::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions = {}) : odsAttrs(attrs), properties(properties), odsRegions(regions) { if (odsAttrs)
66 odsOpName.emplace("ram.load", odsAttrs.getContext());
67 }
68
70
71 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize) {
72 return {index, 1};
73 }
74
76 return properties;
77 }
78
79 ::mlir::DictionaryAttr getAttributes() {
80 return odsAttrs;
81 }
82
83};
84
85} // namespace detail
86template <typename RangeT>
88 using ValueT = ::llvm::detail::ValueOfRange<RangeT>;
90 static constexpr int odsIndex_addr = 0;
91public:
92 LoadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions = {}) : Base(attrs, properties, regions), odsOperands(values) {}
93
94 LoadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::PropertyRef properties, ::mlir::RegionRange regions = {}) : LoadOpGenericAdaptor(values, attrs, (properties ? *properties.as<Properties *>() : Properties{}), regions) {}
95
96 LoadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs = nullptr) : LoadOpGenericAdaptor(values, attrs, Properties{}, {}) {}
97
98 LoadOpGenericAdaptor(RangeT values, const LoadOpGenericAdaptorBase &base) : Base(base), odsOperands(values) {}
99
100 template <typename LateInst = LoadOp, typename = std::enable_if_t<std::is_same_v<LateInst, LoadOp>>>
101 LoadOpGenericAdaptor(RangeT values, LateInst op) : Base(op), odsOperands(values) {}
102
103 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index) {
104 return Base::getODSOperandIndexAndLength(index, odsOperands.size());
105 }
106
107 RangeT getODSOperands(unsigned index) {
108 auto valueRange = getODSOperandIndexAndLength(index);
109 return {std::next(odsOperands.begin(), valueRange.first),
110 std::next(odsOperands.begin(), valueRange.first + valueRange.second)};
111 }
112
113 ValueT getAddr() {
114 return (*getODSOperands(0).begin());
115 }
116
117 RangeT getOperands() {
118 return odsOperands;
119 }
120
121private:
122 RangeT odsOperands;
123};
124class LoadOpAdaptor : public LoadOpGenericAdaptor<::mlir::ValueRange> {
125public:
128
129 ::llvm::LogicalResult verify(::mlir::Location loc);
130};
131class LoadOp : public ::mlir::Op<LoadOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::OneResult, ::mlir::OpTrait::OneTypedResult<::llzk::felt::FeltType>::Impl, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::OneOperand, ::llzk::function::WitnessGen, ::mlir::OpTrait::OpInvariants, ::mlir::MemoryEffectOpInterface::Trait> {
132public:
133 using Op::Op;
134 using Op::print;
136 template <typename RangeT>
139 static constexpr int odsIndex_addr = 0;
141 static ::llvm::ArrayRef<::llvm::StringRef> getAttributeNames() {
142 return {};
143 }
144
145 static constexpr ::llvm::StringLiteral getOperationName() {
146 return ::llvm::StringLiteral("ram.load");
147 }
148
149 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index) {
150 return {index, 1};
151 }
152
153 ::mlir::Operation::operand_range getODSOperands(unsigned index) {
154 auto valueRange = getODSOperandIndexAndLength(index);
155 return {std::next(getOperation()->operand_begin(), valueRange.first),
156 std::next(getOperation()->operand_begin(), valueRange.first + valueRange.second)};
157 }
158
159 ::mlir::TypedValue<::mlir::IndexType> getAddr() {
160 return ::llvm::cast<::mlir::TypedValue<::mlir::IndexType>>(*getODSOperands(0).begin());
161 }
162
163 ::mlir::OpOperand &getAddrMutable() {
164 auto range = getODSOperandIndexAndLength(0);
165 return getOperation()->getOpOperand(range.first);
166 }
167
168 std::pair<unsigned, unsigned> getODSResultIndexAndLength(unsigned index) {
169 return {index, 1};
170 }
171
172 ::mlir::Operation::result_range getODSResults(unsigned index) {
173 auto valueRange = getODSResultIndexAndLength(index);
174 return {std::next(getOperation()->result_begin(), valueRange.first),
175 std::next(getOperation()->result_begin(), valueRange.first + valueRange.second)};
176 }
177
178 ::mlir::TypedValue<::llzk::felt::FeltType> getVal() {
179 return ::llvm::cast<::mlir::TypedValue<::llzk::felt::FeltType>>(*getODSResults(0).begin());
180 }
181
182 static ::llvm::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
183 static ::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop);
184 static llvm::hash_code computePropertiesHash(const Properties &prop);
185 static std::optional<mlir::Attribute> getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name);
186 static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value);
187 static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs);
188 static ::llvm::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
189 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type val, ::mlir::Value addr);
190 static LoadOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::Type val, ::mlir::Value addr);
191 static LoadOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::Type val, ::mlir::Value addr);
192 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value addr);
193 static LoadOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::Value addr);
194 static LoadOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::Value addr);
195 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
196 static LoadOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
197 static LoadOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
198 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute> discardableAttributes = {});
199 static LoadOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute> discardableAttributes = {});
200 static LoadOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute> discardableAttributes = {});
201 ::llvm::LogicalResult verifyInvariantsImpl();
202 ::llvm::LogicalResult verifyInvariants();
203 static ::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
204 void print(::mlir::OpAsmPrinter &_odsPrinter);
205 void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect>> &effects);
206public:
207};
208
209} // namespace llzk::ram
210MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::ram::LoadOp)
211
212namespace llzk::ram {
213
214
215//===----------------------------------------------------------------------===//
216// ::llzk::ram::StoreOp declarations
217//===----------------------------------------------------------------------===//
218
219namespace detail {
220
222public:
223 using Properties = ::mlir::EmptyProperties;
224protected:
225 ::mlir::DictionaryAttr odsAttrs;
226 ::std::optional<::mlir::OperationName> odsOpName;
228 ::mlir::RegionRange odsRegions;
229public:
230 StoreOpGenericAdaptorBase(::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions = {}) : odsAttrs(attrs), properties(properties), odsRegions(regions) { if (odsAttrs)
231 odsOpName.emplace("ram.store", odsAttrs.getContext());
232 }
233
235
236 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize) {
237 return {index, 1};
238 }
239
241 return properties;
242 }
243
244 ::mlir::DictionaryAttr getAttributes() {
245 return odsAttrs;
246 }
247
248};
249
250} // namespace detail
251template <typename RangeT>
253 using ValueT = ::llvm::detail::ValueOfRange<RangeT>;
255 static constexpr int odsIndex_addr = 0;
256 static constexpr int odsIndex_val = 1;
257public:
258 StoreOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions = {}) : Base(attrs, properties, regions), odsOperands(values) {}
259
260 StoreOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::PropertyRef properties, ::mlir::RegionRange regions = {}) : StoreOpGenericAdaptor(values, attrs, (properties ? *properties.as<Properties *>() : Properties{}), regions) {}
261
262 StoreOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs = nullptr) : StoreOpGenericAdaptor(values, attrs, Properties{}, {}) {}
263
264 StoreOpGenericAdaptor(RangeT values, const StoreOpGenericAdaptorBase &base) : Base(base), odsOperands(values) {}
265
266 template <typename LateInst = StoreOp, typename = std::enable_if_t<std::is_same_v<LateInst, StoreOp>>>
267 StoreOpGenericAdaptor(RangeT values, LateInst op) : Base(op), odsOperands(values) {}
268
269 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index) {
270 return Base::getODSOperandIndexAndLength(index, odsOperands.size());
271 }
272
273 RangeT getODSOperands(unsigned index) {
274 auto valueRange = getODSOperandIndexAndLength(index);
275 return {std::next(odsOperands.begin(), valueRange.first),
276 std::next(odsOperands.begin(), valueRange.first + valueRange.second)};
277 }
278
279 ValueT getAddr() {
280 return (*getODSOperands(0).begin());
281 }
282
283 ValueT getVal() {
284 return (*getODSOperands(1).begin());
285 }
286
287 RangeT getOperands() {
288 return odsOperands;
289 }
290
291private:
292 RangeT odsOperands;
293};
294class StoreOpAdaptor : public StoreOpGenericAdaptor<::mlir::ValueRange> {
295public:
298
299 ::llvm::LogicalResult verify(::mlir::Location loc);
300};
301class StoreOp : public ::mlir::Op<StoreOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::ZeroResults, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::NOperands<2>::Impl, ::llzk::function::WitnessGen, ::mlir::OpTrait::OpInvariants, ::mlir::MemoryEffectOpInterface::Trait> {
302public:
303 using Op::Op;
304 using Op::print;
306 template <typename RangeT>
309 static constexpr int odsIndex_addr = 0;
310 static constexpr int odsIndex_val = 1;
312 static ::llvm::ArrayRef<::llvm::StringRef> getAttributeNames() {
313 return {};
314 }
315
316 static constexpr ::llvm::StringLiteral getOperationName() {
317 return ::llvm::StringLiteral("ram.store");
318 }
319
320 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index) {
321 return {index, 1};
322 }
323
324 ::mlir::Operation::operand_range getODSOperands(unsigned index) {
325 auto valueRange = getODSOperandIndexAndLength(index);
326 return {std::next(getOperation()->operand_begin(), valueRange.first),
327 std::next(getOperation()->operand_begin(), valueRange.first + valueRange.second)};
328 }
329
330 ::mlir::TypedValue<::mlir::IndexType> getAddr() {
331 return ::llvm::cast<::mlir::TypedValue<::mlir::IndexType>>(*getODSOperands(0).begin());
332 }
333
334 ::mlir::TypedValue<::llzk::felt::FeltType> getVal() {
335 return ::llvm::cast<::mlir::TypedValue<::llzk::felt::FeltType>>(*getODSOperands(1).begin());
336 }
337
338 ::mlir::OpOperand &getAddrMutable() {
339 auto range = getODSOperandIndexAndLength(0);
340 return getOperation()->getOpOperand(range.first);
341 }
342
343 ::mlir::OpOperand &getValMutable() {
344 auto range = getODSOperandIndexAndLength(1);
345 return getOperation()->getOpOperand(range.first);
346 }
347
348 std::pair<unsigned, unsigned> getODSResultIndexAndLength(unsigned index) {
349 return {index, 1};
350 }
351
352 ::mlir::Operation::result_range getODSResults(unsigned index) {
353 auto valueRange = getODSResultIndexAndLength(index);
354 return {std::next(getOperation()->result_begin(), valueRange.first),
355 std::next(getOperation()->result_begin(), valueRange.first + valueRange.second)};
356 }
357
358 static ::llvm::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
359 static ::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop);
360 static llvm::hash_code computePropertiesHash(const Properties &prop);
361 static std::optional<mlir::Attribute> getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name);
362 static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value);
363 static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs);
364 static ::llvm::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
365 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Value addr, ::mlir::Value val);
366 static StoreOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::Value addr, ::mlir::Value val);
367 static StoreOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::Value addr, ::mlir::Value val);
368 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value addr, ::mlir::Value val);
369 static StoreOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::Value addr, ::mlir::Value val);
370 static StoreOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::Value addr, ::mlir::Value val);
371 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
372 static StoreOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
373 static StoreOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
374 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute> discardableAttributes = {});
375 static StoreOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute> discardableAttributes = {});
376 static StoreOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute> discardableAttributes = {});
377 ::llvm::LogicalResult verifyInvariantsImpl();
378 ::llvm::LogicalResult verifyInvariants();
379 static ::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
380 void print(::mlir::OpAsmPrinter &_odsPrinter);
381 void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect>> &effects);
382public:
383};
384
385} // namespace llzk::ram
386MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::ram::StoreOp)
387
388
389#endif // GET_OP_CLASSES
390
LoadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
Definition Ops.h.inc:92
::llvm::LogicalResult verify(::mlir::Location loc)
Definition Ops.cpp.inc:60
LoadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr)
Definition Ops.h.inc:96
LoadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
Definition Ops.h.inc:92
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.h.inc:103
RangeT getODSOperands(unsigned index)
Definition Ops.h.inc:107
LoadOpGenericAdaptor(RangeT values, LateInst op)
Definition Ops.h.inc:101
LoadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::PropertyRef properties, ::mlir::RegionRange regions={})
Definition Ops.h.inc:94
LoadOpGenericAdaptor(RangeT values, const LoadOpGenericAdaptorBase &base)
Definition Ops.h.inc:98
static llvm::hash_code computePropertiesHash(const Properties &prop)
Definition Ops.cpp.inc:82
LoadOpGenericAdaptor< RangeT > GenericAdaptor
Definition Ops.h.inc:137
static LoadOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::Type val, ::mlir::Value addr)
Definition Ops.cpp.inc:106
::llvm::LogicalResult verifyInvariants()
Definition Ops.cpp.inc:199
GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > > FoldAdaptor
Definition Ops.h.inc:138
::llvm::LogicalResult verifyInvariantsImpl()
Definition Ops.cpp.inc:177
static std::optional< mlir::Attribute > getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name)
Definition Ops.cpp.inc:87
void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
Definition Ops.cpp.inc:254
::mlir::OpOperand & getAddrMutable()
Definition Ops.h.inc:163
void print(::mlir::OpAsmPrinter &_odsPrinter)
Definition Ops.cpp.inc:238
static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames()
Definition Ops.h.inc:141
static constexpr ::llvm::StringLiteral getOperationName()
Definition Ops.h.inc:145
::mlir::Operation::result_range getODSResults(unsigned index)
Definition Ops.h.inc:172
::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop)
Definition Ops.cpp.inc:73
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
Definition Ops.cpp.inc:203
FoldAdaptor::Properties Properties
Definition Ops.h.inc:140
static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs)
Definition Ops.cpp.inc:94
std::pair< unsigned, unsigned > getODSResultIndexAndLength(unsigned index)
Definition Ops.h.inc:168
::llvm::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
Definition Ops.cpp.inc:64
::mlir::TypedValue<::llzk::felt::FeltType > getVal()
Definition Ops.h.inc:178
LoadOpAdaptor Adaptor
Definition Ops.h.inc:135
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.h.inc:149
::mlir::TypedValue<::mlir::IndexType > getAddr()
Definition Ops.h.inc:159
::mlir::Operation::operand_range getODSOperands(unsigned index)
Definition Ops.h.inc:153
static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value)
Definition Ops.cpp.inc:91
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type val, ::mlir::Value addr)
Definition Ops.cpp.inc:101
::llvm::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
Definition Ops.cpp.inc:97
static constexpr int odsIndex_addr
Definition Ops.h.inc:139
::llvm::LogicalResult verify(::mlir::Location loc)
Definition Ops.cpp.inc:277
StoreOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
Definition Ops.h.inc:258
StoreOpGenericAdaptor(RangeT values, LateInst op)
Definition Ops.h.inc:267
StoreOpGenericAdaptor(RangeT values, const StoreOpGenericAdaptorBase &base)
Definition Ops.h.inc:264
StoreOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr)
Definition Ops.h.inc:262
StoreOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::PropertyRef properties, ::mlir::RegionRange regions={})
Definition Ops.h.inc:260
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.h.inc:269
RangeT getODSOperands(unsigned index)
Definition Ops.h.inc:273
StoreOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
Definition Ops.h.inc:258
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Value addr, ::mlir::Value val)
Definition Ops.cpp.inc:318
::llvm::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
Definition Ops.cpp.inc:281
static llvm::hash_code computePropertiesHash(const Properties &prop)
Definition Ops.cpp.inc:299
static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames()
Definition Ops.h.inc:312
std::pair< unsigned, unsigned > getODSResultIndexAndLength(unsigned index)
Definition Ops.h.inc:348
static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value)
Definition Ops.cpp.inc:308
::llvm::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
Definition Ops.cpp.inc:314
::mlir::TypedValue<::llzk::felt::FeltType > getVal()
Definition Ops.h.inc:334
static constexpr ::llvm::StringLiteral getOperationName()
Definition Ops.h.inc:316
static constexpr int odsIndex_addr
Definition Ops.h.inc:309
StoreOpGenericAdaptor< RangeT > GenericAdaptor
Definition Ops.h.inc:307
::mlir::OpOperand & getAddrMutable()
Definition Ops.h.inc:338
static std::optional< mlir::Attribute > getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name)
Definition Ops.cpp.inc:304
::mlir::Operation::operand_range getODSOperands(unsigned index)
Definition Ops.h.inc:324
static StoreOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::Value addr, ::mlir::Value val)
Definition Ops.cpp.inc:323
void print(::mlir::OpAsmPrinter &_odsPrinter)
Definition Ops.cpp.inc:463
::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop)
Definition Ops.cpp.inc:290
::mlir::OpOperand & getValMutable()
Definition Ops.h.inc:343
GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > > FoldAdaptor
Definition Ops.h.inc:308
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
Definition Ops.cpp.inc:418
::mlir::TypedValue<::mlir::IndexType > getAddr()
Definition Ops.h.inc:330
static constexpr int odsIndex_val
Definition Ops.h.inc:310
::llvm::LogicalResult verifyInvariants()
Definition Ops.cpp.inc:414
void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
Definition Ops.cpp.inc:482
FoldAdaptor::Properties Properties
Definition Ops.h.inc:311
static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs)
Definition Ops.cpp.inc:311
::llvm::LogicalResult verifyInvariantsImpl()
Definition Ops.cpp.inc:395
StoreOpAdaptor Adaptor
Definition Ops.h.inc:305
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.h.inc:320
::mlir::Operation::result_range getODSResults(unsigned index)
Definition Ops.h.inc:352
LoadOpGenericAdaptorBase(::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
Definition Ops.h.inc:65
::mlir::DictionaryAttr getAttributes()
Definition Ops.h.inc:79
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
Definition Ops.h.inc:71
::mlir::EmptyProperties Properties
Definition Ops.h.inc:58
::std::optional<::mlir::OperationName > odsOpName
Definition Ops.h.inc:61
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
Definition Ops.h.inc:236
::mlir::DictionaryAttr getAttributes()
Definition Ops.h.inc:244
::std::optional<::mlir::OperationName > odsOpName
Definition Ops.h.inc:226
StoreOpGenericAdaptorBase(::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
Definition Ops.h.inc:230