LLZK 2.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 {
11namespace cast {
12class FeltToIndexOp;
13} // namespace cast
14} // namespace llzk
15namespace llzk {
16namespace cast {
17class IntToFeltOp;
18} // namespace cast
19} // namespace llzk
20#ifdef GET_OP_CLASSES
21#undef GET_OP_CLASSES
22
23namespace llzk {
24namespace cast {
25
26//===----------------------------------------------------------------------===//
27// ::llzk::cast::FeltToIndexOp declarations
28//===----------------------------------------------------------------------===//
29
30namespace detail {
32public:
33protected:
34 ::mlir::DictionaryAttr odsAttrs;
35 ::std::optional<::mlir::OperationName> odsOpName;
36 ::mlir::RegionRange odsRegions;
37public:
38 FeltToIndexOpGenericAdaptorBase(::mlir::DictionaryAttr attrs = {}, const ::mlir::EmptyProperties &properties = {}, ::mlir::RegionRange regions = {}) : odsAttrs(attrs), odsRegions(regions) { if (odsAttrs)
39 odsOpName.emplace("cast.toindex", odsAttrs.getContext());
40 }
41
42 FeltToIndexOpGenericAdaptorBase(::mlir::Operation *op) : odsAttrs(op->getRawDictionaryAttrs()), odsOpName(op->getName()), odsRegions(op->getRegions()) {}
43
44 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize) {
45 return {index, 1};
46 }
47
48 ::mlir::DictionaryAttr getAttributes() {
49 return odsAttrs;
50 }
51
52};
53} // namespace detail
54template <typename RangeT>
56 using ValueT = ::llvm::detail::ValueOfRange<RangeT>;
58public:
59 FeltToIndexOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs = {}, const ::mlir::EmptyProperties &properties = {}, ::mlir::RegionRange regions = {}) : Base(attrs, properties, regions), odsOperands(values) {}
60
61 FeltToIndexOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions = {}) : FeltToIndexOpGenericAdaptor(values, attrs, (properties ? *properties.as<::mlir::EmptyProperties *>() : ::mlir::EmptyProperties{}), regions) {}
62
63 FeltToIndexOpGenericAdaptor(RangeT values, const FeltToIndexOpGenericAdaptorBase &base) : Base(base), odsOperands(values) {}
64
65 template <typename LateInst = FeltToIndexOp, typename = std::enable_if_t<std::is_same_v<LateInst, FeltToIndexOp>>>
66 FeltToIndexOpGenericAdaptor(RangeT values, LateInst op) : Base(op), odsOperands(values) {}
67
68 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index) {
69 return Base::getODSOperandIndexAndLength(index, odsOperands.size());
70 }
71
72 RangeT getODSOperands(unsigned index) {
73 auto valueRange = getODSOperandIndexAndLength(index);
74 return {std::next(odsOperands.begin(), valueRange.first),
75 std::next(odsOperands.begin(), valueRange.first + valueRange.second)};
76 }
77
78 ValueT getValue() {
79 return (*getODSOperands(0).begin());
80 }
81
82 RangeT getOperands() {
83 return odsOperands;
84 }
85
86private:
87 RangeT odsOperands;
88};
89class FeltToIndexOpAdaptor : public FeltToIndexOpGenericAdaptor<::mlir::ValueRange> {
90public:
93
94 ::llvm::LogicalResult verify(::mlir::Location loc);
95};
96class FeltToIndexOp : public ::mlir::Op<FeltToIndexOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::OneResult, ::mlir::OpTrait::OneTypedResult<::mlir::IndexType>::Impl, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::OneOperand, ::llzk::function::NotFieldNative, ::mlir::OpTrait::OpInvariants, ::mlir::ConditionallySpeculatable::Trait, ::mlir::OpTrait::AlwaysSpeculatableImplTrait, ::mlir::MemoryEffectOpInterface::Trait, ::mlir::InferTypeOpInterface::Trait> {
97public:
98 using Op::Op;
99 using Op::print;
101 template <typename RangeT>
104 static ::llvm::ArrayRef<::llvm::StringRef> getAttributeNames() {
105 return {};
106 }
107
108 static constexpr ::llvm::StringLiteral getOperationName() {
109 return ::llvm::StringLiteral("cast.toindex");
110 }
111
112 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index) {
113 return {index, 1};
114 }
115
116 ::mlir::Operation::operand_range getODSOperands(unsigned index) {
117 auto valueRange = getODSOperandIndexAndLength(index);
118 return {std::next(getOperation()->operand_begin(), valueRange.first),
119 std::next(getOperation()->operand_begin(), valueRange.first + valueRange.second)};
120 }
121
122 ::mlir::TypedValue<::llzk::felt::FeltType> getValue() {
123 return ::llvm::cast<::mlir::TypedValue<::llzk::felt::FeltType>>(*getODSOperands(0).begin());
124 }
125
126 ::mlir::OpOperand &getValueMutable() {
127 auto range = getODSOperandIndexAndLength(0);
128 return getOperation()->getOpOperand(range.first);
129 }
130
131 std::pair<unsigned, unsigned> getODSResultIndexAndLength(unsigned index) {
132 return {index, 1};
133 }
134
135 ::mlir::Operation::result_range getODSResults(unsigned index) {
136 auto valueRange = getODSResultIndexAndLength(index);
137 return {std::next(getOperation()->result_begin(), valueRange.first),
138 std::next(getOperation()->result_begin(), valueRange.first + valueRange.second)};
139 }
140
141 ::mlir::TypedValue<::mlir::IndexType> getResult() {
142 return ::llvm::cast<::mlir::TypedValue<::mlir::IndexType>>(*getODSResults(0).begin());
143 }
144
145 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type result, ::mlir::Value value);
146 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Value value);
147 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value value);
148 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
149 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
150 ::llvm::LogicalResult verifyInvariantsImpl();
151 ::llvm::LogicalResult verifyInvariants();
152 static ::llvm::LogicalResult inferReturnTypes(::mlir::MLIRContext *context, ::std::optional<::mlir::Location> location, ::mlir::ValueRange operands, ::mlir::DictionaryAttr attributes, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions, ::llvm::SmallVectorImpl<::mlir::Type>&inferredReturnTypes);
153 static ::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
154 void print(::mlir::OpAsmPrinter &_odsPrinter);
155 void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect>> &effects);
156public:
157 private:
158 static ::mlir::ParseResult parseInferredOrParsedType(
159 ::mlir::OpAsmParser &parser, ::mlir::Type &opType, bool isFirst
160 ) {
161 if (mlir::succeeded(isFirst ? parser.parseOptionalColon() : parser.parseOptionalComma())) {
162 // If there is a comma, parse the `opType`
163 mlir::Type type;
164 if (parser.parseCustomTypeWithFallback(type)) {
165 return mlir::failure();
166 }
167 opType = type;
168 } else {
169 // Otherwise, build the default type
170 opType =
171 ::llzk::felt::FeltType::get(parser.getBuilder().getContext());
172 }
173 return mlir::success();
174 }
175
176 static void printInferredOrParsedType(::mlir::OpAsmPrinter &printer,
177 ::mlir::Operation *op, ::mlir::Type opType, bool isFirst
178 ) {
179 printer << (isFirst ? " : " : ", ");
180 printer.printStrippedAttrOrType(opType);
181 }
182};
183} // namespace cast
184} // namespace llzk
185MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::cast::FeltToIndexOp)
186
187namespace llzk {
188namespace cast {
189
190//===----------------------------------------------------------------------===//
191// ::llzk::cast::IntToFeltOp declarations
192//===----------------------------------------------------------------------===//
193
194namespace detail {
196public:
197protected:
198 ::mlir::DictionaryAttr odsAttrs;
199 ::std::optional<::mlir::OperationName> odsOpName;
200 ::mlir::RegionRange odsRegions;
201public:
202 IntToFeltOpGenericAdaptorBase(::mlir::DictionaryAttr attrs = {}, const ::mlir::EmptyProperties &properties = {}, ::mlir::RegionRange regions = {}) : odsAttrs(attrs), odsRegions(regions) { if (odsAttrs)
203 odsOpName.emplace("cast.tofelt", odsAttrs.getContext());
204 }
205
206 IntToFeltOpGenericAdaptorBase(::mlir::Operation *op) : odsAttrs(op->getRawDictionaryAttrs()), odsOpName(op->getName()), odsRegions(op->getRegions()) {}
207
208 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize) {
209 return {index, 1};
210 }
211
212 ::mlir::DictionaryAttr getAttributes() {
213 return odsAttrs;
214 }
215
216};
217} // namespace detail
218template <typename RangeT>
220 using ValueT = ::llvm::detail::ValueOfRange<RangeT>;
222public:
223 IntToFeltOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs = {}, const ::mlir::EmptyProperties &properties = {}, ::mlir::RegionRange regions = {}) : Base(attrs, properties, regions), odsOperands(values) {}
224
225 IntToFeltOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions = {}) : IntToFeltOpGenericAdaptor(values, attrs, (properties ? *properties.as<::mlir::EmptyProperties *>() : ::mlir::EmptyProperties{}), regions) {}
226
227 IntToFeltOpGenericAdaptor(RangeT values, const IntToFeltOpGenericAdaptorBase &base) : Base(base), odsOperands(values) {}
228
229 template <typename LateInst = IntToFeltOp, typename = std::enable_if_t<std::is_same_v<LateInst, IntToFeltOp>>>
230 IntToFeltOpGenericAdaptor(RangeT values, LateInst op) : Base(op), odsOperands(values) {}
231
232 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index) {
233 return Base::getODSOperandIndexAndLength(index, odsOperands.size());
234 }
235
236 RangeT getODSOperands(unsigned index) {
237 auto valueRange = getODSOperandIndexAndLength(index);
238 return {std::next(odsOperands.begin(), valueRange.first),
239 std::next(odsOperands.begin(), valueRange.first + valueRange.second)};
240 }
241
242 ValueT getValue() {
243 return (*getODSOperands(0).begin());
244 }
245
246 RangeT getOperands() {
247 return odsOperands;
248 }
249
250private:
251 RangeT odsOperands;
252};
253class IntToFeltOpAdaptor : public IntToFeltOpGenericAdaptor<::mlir::ValueRange> {
254public:
257
258 ::llvm::LogicalResult verify(::mlir::Location loc);
259};
260class IntToFeltOp : public ::mlir::Op<IntToFeltOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::OneResult, ::mlir::OpTrait::OneTypedResult<::llzk::felt::FeltType>::Impl, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::OneOperand, ::mlir::OpTrait::OpInvariants, ::mlir::ConditionallySpeculatable::Trait, ::mlir::OpTrait::AlwaysSpeculatableImplTrait, ::mlir::MemoryEffectOpInterface::Trait, ::mlir::InferTypeOpInterface::Trait> {
261public:
262 using Op::Op;
263 using Op::print;
265 template <typename RangeT>
268 static ::llvm::ArrayRef<::llvm::StringRef> getAttributeNames() {
269 return {};
270 }
271
272 static constexpr ::llvm::StringLiteral getOperationName() {
273 return ::llvm::StringLiteral("cast.tofelt");
274 }
275
276 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index) {
277 return {index, 1};
278 }
279
280 ::mlir::Operation::operand_range getODSOperands(unsigned index) {
281 auto valueRange = getODSOperandIndexAndLength(index);
282 return {std::next(getOperation()->operand_begin(), valueRange.first),
283 std::next(getOperation()->operand_begin(), valueRange.first + valueRange.second)};
284 }
285
286 ::mlir::TypedValue<::mlir::Type> getValue() {
287 return ::llvm::cast<::mlir::TypedValue<::mlir::Type>>(*getODSOperands(0).begin());
288 }
289
290 ::mlir::OpOperand &getValueMutable() {
291 auto range = getODSOperandIndexAndLength(0);
292 return getOperation()->getOpOperand(range.first);
293 }
294
295 std::pair<unsigned, unsigned> getODSResultIndexAndLength(unsigned index) {
296 return {index, 1};
297 }
298
299 ::mlir::Operation::result_range getODSResults(unsigned index) {
300 auto valueRange = getODSResultIndexAndLength(index);
301 return {std::next(getOperation()->result_begin(), valueRange.first),
302 std::next(getOperation()->result_begin(), valueRange.first + valueRange.second)};
303 }
304
305 ::mlir::TypedValue<::llzk::felt::FeltType> getResult() {
306 return ::llvm::cast<::mlir::TypedValue<::llzk::felt::FeltType>>(*getODSResults(0).begin());
307 }
308
309 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type result, ::mlir::Value value);
310 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Value value);
311 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value value);
312 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
313 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
314 ::llvm::LogicalResult verifyInvariantsImpl();
315 ::llvm::LogicalResult verifyInvariants();
316 static ::llvm::LogicalResult inferReturnTypes(::mlir::MLIRContext *context, ::std::optional<::mlir::Location> location, ::mlir::ValueRange operands, ::mlir::DictionaryAttr attributes, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions, ::llvm::SmallVectorImpl<::mlir::Type>&inferredReturnTypes);
317 static ::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
318 void print(::mlir::OpAsmPrinter &_odsPrinter);
319 void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect>> &effects);
320public:
321 static bool isCompatibleReturnTypes(::mlir::TypeRange lhs, ::mlir::TypeRange rhs);
322
323 private:
324 static ::mlir::ParseResult parseInferredOrParsedType(
325 ::mlir::OpAsmParser &parser, ::mlir::Type &opType, bool isFirst
326 ) {
327 if (mlir::succeeded(isFirst ? parser.parseOptionalColon() : parser.parseOptionalComma())) {
328 // If there is a comma, parse the `opType`
329 mlir::Type type;
330 if (parser.parseCustomTypeWithFallback(type)) {
331 return mlir::failure();
332 }
333 opType = type;
334 } else {
335 // Otherwise, build the default type
336 opType =
337 ::llzk::felt::FeltType::get(parser.getBuilder().getContext());
338 }
339 return mlir::success();
340 }
341
342 static void printInferredOrParsedType(::mlir::OpAsmPrinter &printer,
343 ::mlir::Operation *op, ::mlir::Type opType, bool isFirst
344 ) {
345 printer << (isFirst ? " : " : ", ");
346 printer.printStrippedAttrOrType(opType);
347 }
348};
349} // namespace cast
350} // namespace llzk
351MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::cast::IntToFeltOp)
352
353
354#endif // GET_OP_CLASSES
355
::llvm::LogicalResult verify(::mlir::Location loc)
Definition Ops.cpp.inc:70
FeltToIndexOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs={}, const ::mlir::EmptyProperties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.h.inc:59
FeltToIndexOpAdaptor(FeltToIndexOp op)
Definition Ops.cpp.inc:68
FeltToIndexOpGenericAdaptor(RangeT values, LateInst op)
Definition Ops.h.inc:66
FeltToIndexOpGenericAdaptor(RangeT values, const FeltToIndexOpGenericAdaptorBase &base)
Definition Ops.h.inc:63
FeltToIndexOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs={}, const ::mlir::EmptyProperties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.h.inc:59
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.h.inc:68
FeltToIndexOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions={})
Definition Ops.h.inc:61
RangeT getODSOperands(unsigned index)
Definition Ops.h.inc:72
::llvm::LogicalResult verifyInvariants()
Definition Ops.cpp.inc:148
static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames()
Definition Ops.h.inc:104
void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
Definition Ops.cpp.inc:194
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type result, ::mlir::Value value)
Definition Ops.cpp.inc:74
std::pair< unsigned, unsigned > getODSResultIndexAndLength(unsigned index)
Definition Ops.h.inc:131
::mlir::OpOperand & getValueMutable()
Definition Ops.h.inc:126
::mlir::TypedValue<::llzk::felt::FeltType > getValue()
Definition Ops.h.inc:122
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.h.inc:112
void print(::mlir::OpAsmPrinter &_odsPrinter)
Definition Ops.cpp.inc:186
::mlir::TypedValue<::mlir::IndexType > getResult()
Definition Ops.h.inc:141
::mlir::Operation::result_range getODSResults(unsigned index)
Definition Ops.h.inc:135
FeltToIndexOpAdaptor Adaptor
Definition Ops.h.inc:100
FeltToIndexOpGenericAdaptor< RangeT > GenericAdaptor
Definition Ops.h.inc:102
GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > > FoldAdaptor
Definition Ops.h.inc:103
::llvm::LogicalResult inferReturnTypes(::mlir::MLIRContext *context, ::std::optional<::mlir::Location > location, ::mlir::ValueRange operands, ::mlir::DictionaryAttr attributes, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions, ::llvm::SmallVectorImpl<::mlir::Type > &inferredReturnTypes)
Definition Ops.cpp.inc:152
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
Definition Ops.cpp.inc:160
::mlir::Operation::operand_range getODSOperands(unsigned index)
Definition Ops.h.inc:116
::llvm::LogicalResult verifyInvariantsImpl()
Definition Ops.cpp.inc:126
static constexpr ::llvm::StringLiteral getOperationName()
Definition Ops.h.inc:108
::llvm::LogicalResult verify(::mlir::Location loc)
Definition Ops.cpp.inc:212
IntToFeltOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs={}, const ::mlir::EmptyProperties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.h.inc:223
IntToFeltOpAdaptor(IntToFeltOp op)
Definition Ops.cpp.inc:210
IntToFeltOpGenericAdaptor(RangeT values, LateInst op)
Definition Ops.h.inc:230
IntToFeltOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs={}, const ::mlir::EmptyProperties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.h.inc:223
IntToFeltOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions={})
Definition Ops.h.inc:225
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.h.inc:232
IntToFeltOpGenericAdaptor(RangeT values, const IntToFeltOpGenericAdaptorBase &base)
Definition Ops.h.inc:227
RangeT getODSOperands(unsigned index)
Definition Ops.h.inc:236
GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > > FoldAdaptor
Definition Ops.h.inc:267
void print(::mlir::OpAsmPrinter &_odsPrinter)
Definition Ops.cpp.inc:338
::llvm::LogicalResult verifyInvariantsImpl()
Definition Ops.cpp.inc:268
static constexpr ::llvm::StringLiteral getOperationName()
Definition Ops.h.inc:272
::llvm::LogicalResult inferReturnTypes(::mlir::MLIRContext *context, ::std::optional<::mlir::Location > location, ::mlir::ValueRange operands, ::mlir::DictionaryAttr attributes, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions, ::llvm::SmallVectorImpl<::mlir::Type > &inferredReturnTypes)
Definition Ops.cpp.inc:294
void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
Definition Ops.cpp.inc:355
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.h.inc:276
static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames()
Definition Ops.h.inc:268
std::pair< unsigned, unsigned > getODSResultIndexAndLength(unsigned index)
Definition Ops.h.inc:295
IntToFeltOpAdaptor Adaptor
Definition Ops.h.inc:264
::mlir::Operation::operand_range getODSOperands(unsigned index)
Definition Ops.h.inc:280
::mlir::TypedValue<::llzk::felt::FeltType > getResult()
Definition Ops.h.inc:305
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
Definition Ops.cpp.inc:302
IntToFeltOpGenericAdaptor< RangeT > GenericAdaptor
Definition Ops.h.inc:266
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type result, ::mlir::Value value)
Definition Ops.cpp.inc:216
static bool isCompatibleReturnTypes(::mlir::TypeRange lhs, ::mlir::TypeRange rhs)
Definition Ops.cpp:25
::mlir::Operation::result_range getODSResults(unsigned index)
Definition Ops.h.inc:299
::llvm::LogicalResult verifyInvariants()
Definition Ops.cpp.inc:290
::mlir::TypedValue<::mlir::Type > getValue()
Definition Ops.h.inc:286
::mlir::OpOperand & getValueMutable()
Definition Ops.h.inc:290
FeltToIndexOpGenericAdaptorBase(::mlir::DictionaryAttr attrs={}, const ::mlir::EmptyProperties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.h.inc:38
::std::optional<::mlir::OperationName > odsOpName
Definition Ops.h.inc:35
FeltToIndexOpGenericAdaptorBase(::mlir::Operation *op)
Definition Ops.h.inc:42
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
Definition Ops.h.inc:44
::std::optional<::mlir::OperationName > odsOpName
Definition Ops.h.inc:199
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
Definition Ops.h.inc:208
IntToFeltOpGenericAdaptorBase(::mlir::Operation *op)
Definition Ops.h.inc:206
IntToFeltOpGenericAdaptorBase(::mlir::DictionaryAttr attrs={}, const ::mlir::EmptyProperties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.h.inc:202
static FeltType get(::mlir::MLIRContext *context, ::mlir::StringAttr fieldName)
Definition Types.cpp.inc:67