11MlirOperation
llzkFelt_AddFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs) {
12 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.add"), location);
13 mlirOperationStateAddResults(&state, 1, &resultType);
14 mlirOperationStateAddOperands(&state, 1, &lhs);
15 mlirOperationStateAddOperands(&state, 1, &rhs);
21 return llvm::isa<AddFeltOp>(unwrap(inp));
25 return mlirOperationGetOperand(op, 0);
29 mlirOperationSetOperand(op, 0, value);
33 return mlirOperationGetOperand(op, 1);
37 mlirOperationSetOperand(op, 1, value);
41 return mlirOperationGetResult(op, 0);
44MlirOperation
llzkFelt_AndFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs) {
45 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.bit_and"), location);
46 mlirOperationStateAddResults(&state, 1, &resultType);
47 mlirOperationStateAddOperands(&state, 1, &lhs);
48 mlirOperationStateAddOperands(&state, 1, &rhs);
54 return llvm::isa<AndFeltOp>(unwrap(inp));
58 return mlirOperationGetOperand(op, 0);
62 mlirOperationSetOperand(op, 0, value);
66 return mlirOperationGetOperand(op, 1);
70 mlirOperationSetOperand(op, 1, value);
74 return mlirOperationGetResult(op, 0);
77MlirOperation
llzkFelt_DivFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs) {
78 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.div"), location);
79 mlirOperationStateAddResults(&state, 1, &resultType);
80 mlirOperationStateAddOperands(&state, 1, &lhs);
81 mlirOperationStateAddOperands(&state, 1, &rhs);
87 return llvm::isa<DivFeltOp>(unwrap(inp));
91 return mlirOperationGetOperand(op, 0);
95 mlirOperationSetOperand(op, 0, value);
99 return mlirOperationGetOperand(op, 1);
103 mlirOperationSetOperand(op, 1, value);
107 return mlirOperationGetResult(op, 0);
111 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.const"), location);
112 mlirOperationStateAddResults(&state, 1, &resultType);
114 llvm::SmallVector<MlirNamedAttribute, 1> attributes;
115 if (!mlirAttributeIsNull(value)) {
116 attributes.push_back(mlirNamedAttributeGet(mlirIdentifierGet(ctx, mlirStringRefCreateFromCString(
"value")), value));
118 mlirOperationStateAddAttributes(&state, attributes.size(), attributes.data());
124 return llvm::isa<FeltConstantOp>(unwrap(inp));
128 return mlirOperationGetAttributeByName(op, mlirStringRefCreateFromCString(
"value"));
132 mlirOperationSetAttributeByName(op, mlirStringRefCreateFromCString(
"value"), attr);
136 return mlirOperationGetResult(op, 0);
140 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.inv"), location);
141 mlirOperationStateAddResults(&state, 1, &resultType);
142 mlirOperationStateAddOperands(&state, 1, &operand);
148 return llvm::isa<InvFeltOp>(unwrap(inp));
152 return mlirOperationGetOperand(op, 0);
156 mlirOperationSetOperand(op, 0, value);
160 return mlirOperationGetResult(op, 0);
163MlirOperation
llzkFelt_MulFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs) {
164 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.mul"), location);
165 mlirOperationStateAddResults(&state, 1, &resultType);
166 mlirOperationStateAddOperands(&state, 1, &lhs);
167 mlirOperationStateAddOperands(&state, 1, &rhs);
173 return llvm::isa<MulFeltOp>(unwrap(inp));
177 return mlirOperationGetOperand(op, 0);
181 mlirOperationSetOperand(op, 0, value);
185 return mlirOperationGetOperand(op, 1);
189 mlirOperationSetOperand(op, 1, value);
193 return mlirOperationGetResult(op, 0);
197 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.neg"), location);
198 mlirOperationStateAddResults(&state, 1, &resultType);
199 mlirOperationStateAddOperands(&state, 1, &operand);
205 return llvm::isa<NegFeltOp>(unwrap(inp));
209 return mlirOperationGetOperand(op, 0);
213 mlirOperationSetOperand(op, 0, value);
217 return mlirOperationGetResult(op, 0);
221 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.bit_not"), location);
222 mlirOperationStateAddResults(&state, 1, &resultType);
223 mlirOperationStateAddOperands(&state, 1, &operand);
229 return llvm::isa<NotFeltOp>(unwrap(inp));
233 return mlirOperationGetOperand(op, 0);
237 mlirOperationSetOperand(op, 0, value);
241 return mlirOperationGetResult(op, 0);
244MlirOperation
llzkFelt_OrFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs) {
245 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.bit_or"), location);
246 mlirOperationStateAddResults(&state, 1, &resultType);
247 mlirOperationStateAddOperands(&state, 1, &lhs);
248 mlirOperationStateAddOperands(&state, 1, &rhs);
254 return llvm::isa<OrFeltOp>(unwrap(inp));
258 return mlirOperationGetOperand(op, 0);
262 mlirOperationSetOperand(op, 0, value);
266 return mlirOperationGetOperand(op, 1);
270 mlirOperationSetOperand(op, 1, value);
274 return mlirOperationGetResult(op, 0);
277MlirOperation
llzkFelt_PowFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs) {
278 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.pow"), location);
279 mlirOperationStateAddResults(&state, 1, &resultType);
280 mlirOperationStateAddOperands(&state, 1, &lhs);
281 mlirOperationStateAddOperands(&state, 1, &rhs);
287 return llvm::isa<PowFeltOp>(unwrap(inp));
291 return mlirOperationGetOperand(op, 0);
295 mlirOperationSetOperand(op, 0, value);
299 return mlirOperationGetOperand(op, 1);
303 mlirOperationSetOperand(op, 1, value);
307 return mlirOperationGetResult(op, 0);
310MlirOperation
llzkFelt_ShlFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs) {
311 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.shl"), location);
312 mlirOperationStateAddResults(&state, 1, &resultType);
313 mlirOperationStateAddOperands(&state, 1, &lhs);
314 mlirOperationStateAddOperands(&state, 1, &rhs);
320 return llvm::isa<ShlFeltOp>(unwrap(inp));
324 return mlirOperationGetOperand(op, 0);
328 mlirOperationSetOperand(op, 0, value);
332 return mlirOperationGetOperand(op, 1);
336 mlirOperationSetOperand(op, 1, value);
340 return mlirOperationGetResult(op, 0);
343MlirOperation
llzkFelt_ShrFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs) {
344 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.shr"), location);
345 mlirOperationStateAddResults(&state, 1, &resultType);
346 mlirOperationStateAddOperands(&state, 1, &lhs);
347 mlirOperationStateAddOperands(&state, 1, &rhs);
353 return llvm::isa<ShrFeltOp>(unwrap(inp));
357 return mlirOperationGetOperand(op, 0);
361 mlirOperationSetOperand(op, 0, value);
365 return mlirOperationGetOperand(op, 1);
369 mlirOperationSetOperand(op, 1, value);
373 return mlirOperationGetResult(op, 0);
377 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.sintdiv"), location);
378 mlirOperationStateAddResults(&state, 1, &resultType);
379 mlirOperationStateAddOperands(&state, 1, &lhs);
380 mlirOperationStateAddOperands(&state, 1, &rhs);
386 return llvm::isa<SignedIntDivFeltOp>(unwrap(inp));
390 return mlirOperationGetOperand(op, 0);
394 mlirOperationSetOperand(op, 0, value);
398 return mlirOperationGetOperand(op, 1);
402 mlirOperationSetOperand(op, 1, value);
406 return mlirOperationGetResult(op, 0);
410 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.smod"), location);
411 mlirOperationStateAddResults(&state, 1, &resultType);
412 mlirOperationStateAddOperands(&state, 1, &lhs);
413 mlirOperationStateAddOperands(&state, 1, &rhs);
419 return llvm::isa<SignedModFeltOp>(unwrap(inp));
423 return mlirOperationGetOperand(op, 0);
427 mlirOperationSetOperand(op, 0, value);
431 return mlirOperationGetOperand(op, 1);
435 mlirOperationSetOperand(op, 1, value);
439 return mlirOperationGetResult(op, 0);
442MlirOperation
llzkFelt_SubFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs) {
443 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.sub"), location);
444 mlirOperationStateAddResults(&state, 1, &resultType);
445 mlirOperationStateAddOperands(&state, 1, &lhs);
446 mlirOperationStateAddOperands(&state, 1, &rhs);
452 return llvm::isa<SubFeltOp>(unwrap(inp));
456 return mlirOperationGetOperand(op, 0);
460 mlirOperationSetOperand(op, 0, value);
464 return mlirOperationGetOperand(op, 1);
468 mlirOperationSetOperand(op, 1, value);
472 return mlirOperationGetResult(op, 0);
476 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.uintdiv"), location);
477 mlirOperationStateAddResults(&state, 1, &resultType);
478 mlirOperationStateAddOperands(&state, 1, &lhs);
479 mlirOperationStateAddOperands(&state, 1, &rhs);
485 return llvm::isa<UnsignedIntDivFeltOp>(unwrap(inp));
489 return mlirOperationGetOperand(op, 0);
493 mlirOperationSetOperand(op, 0, value);
497 return mlirOperationGetOperand(op, 1);
501 mlirOperationSetOperand(op, 1, value);
505 return mlirOperationGetResult(op, 0);
509 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.umod"), location);
510 mlirOperationStateAddResults(&state, 1, &resultType);
511 mlirOperationStateAddOperands(&state, 1, &lhs);
512 mlirOperationStateAddOperands(&state, 1, &rhs);
518 return llvm::isa<UnsignedModFeltOp>(unwrap(inp));
522 return mlirOperationGetOperand(op, 0);
526 mlirOperationSetOperand(op, 0, value);
530 return mlirOperationGetOperand(op, 1);
534 mlirOperationSetOperand(op, 1, value);
538 return mlirOperationGetResult(op, 0);
541MlirOperation
llzkFelt_XorFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs) {
542 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"felt.bit_xor"), location);
543 mlirOperationStateAddResults(&state, 1, &resultType);
544 mlirOperationStateAddOperands(&state, 1, &lhs);
545 mlirOperationStateAddOperands(&state, 1, &rhs);
551 return llvm::isa<XorFeltOp>(unwrap(inp));
555 return mlirOperationGetOperand(op, 0);
559 mlirOperationSetOperand(op, 0, value);
563 return mlirOperationGetOperand(op, 1);
567 mlirOperationSetOperand(op, 1, value);
571 return mlirOperationGetResult(op, 0);
MlirContext mlirOpBuilderGetContext(MlirOpBuilder builder)
Returns the MLIR context associated with builder.
MlirOperation mlirOpBuilderInsert(MlirOpBuilder builder, MlirOperation op)
Inserts op at the current insertion point of builder and returns it.
MlirValue llzkFelt_AddFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::AddFeltOp Operation.
MlirValue llzkFelt_AndFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::AndFeltOp Operation.
MlirValue llzkFelt_XorFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::XorFeltOp Operation.
MlirOperation llzkFelt_SignedIntDivFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::SignedIntDivFeltOp Operation.
MlirValue llzkFelt_ShrFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::ShrFeltOp Operation.
void llzkFelt_UnsignedModFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::UnsignedModFeltOp Operation.
MlirValue llzkFelt_SubFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::SubFeltOp Operation.
bool llzkOperationIsA_Felt_SubFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::SubFeltOp.
bool llzkOperationIsA_Felt_ShlFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::ShlFeltOp.
void llzkFelt_SubFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::SubFeltOp Operation.
MlirOperation llzkFelt_PowFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::PowFeltOp Operation.
void llzkFelt_AddFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::AddFeltOp Operation.
MlirValue llzkFelt_PowFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::PowFeltOp Operation.
MlirOperation llzkFelt_AddFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::AddFeltOp Operation.
void llzkFelt_ShrFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::ShrFeltOp Operation.
MlirOperation llzkFelt_NegFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue operand)
Build a llzk::felt::NegFeltOp Operation.
void llzkFelt_UnsignedIntDivFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::UnsignedIntDivFeltOp Operation.
MlirValue llzkFelt_MulFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::MulFeltOp Operation.
MlirOperation llzkFelt_NotFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue operand)
Build a llzk::felt::NotFeltOp Operation.
MlirValue llzkFelt_FeltConstantOpGetResult(MlirOperation op)
Get Result result from llzk::felt::FeltConstantOp Operation.
bool llzkOperationIsA_Felt_MulFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::MulFeltOp.
bool llzkOperationIsA_Felt_SignedModFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::SignedModFeltOp.
MlirValue llzkFelt_ShrFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::ShrFeltOp Operation.
bool llzkOperationIsA_Felt_FeltConstantOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::FeltConstantOp.
MlirValue llzkFelt_PowFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::PowFeltOp Operation.
MlirValue llzkFelt_InvFeltOpGetOperand(MlirOperation op)
Get Operand operand from llzk::felt::InvFeltOp Operation.
MlirValue llzkFelt_DivFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::DivFeltOp Operation.
MlirValue llzkFelt_PowFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::PowFeltOp Operation.
MlirOperation llzkFelt_XorFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::XorFeltOp Operation.
MlirValue llzkFelt_InvFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::InvFeltOp Operation.
void llzkFelt_SignedIntDivFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::SignedIntDivFeltOp Operation.
void llzkFelt_DivFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::DivFeltOp Operation.
MlirValue llzkFelt_UnsignedModFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::UnsignedModFeltOp Operation.
MlirValue llzkFelt_SubFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::SubFeltOp Operation.
MlirValue llzkFelt_SignedModFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::SignedModFeltOp Operation.
void llzkFelt_OrFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::OrFeltOp Operation.
MlirValue llzkFelt_NegFeltOpGetOperand(MlirOperation op)
Get Operand operand from llzk::felt::NegFeltOp Operation.
MlirValue llzkFelt_OrFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::OrFeltOp Operation.
MlirValue llzkFelt_ShrFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::ShrFeltOp Operation.
MlirOperation llzkFelt_AndFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::AndFeltOp Operation.
void llzkFelt_InvFeltOpSetOperand(MlirOperation op, MlirValue value)
Set Operand operand of llzk::felt::InvFeltOp Operation.
void llzkFelt_SubFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::SubFeltOp Operation.
MlirValue llzkFelt_UnsignedIntDivFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::UnsignedIntDivFeltOp Operation.
MlirValue llzkFelt_DivFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::DivFeltOp Operation.
bool llzkOperationIsA_Felt_ShrFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::ShrFeltOp.
MlirValue llzkFelt_UnsignedIntDivFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::UnsignedIntDivFeltOp Operation.
MlirValue llzkFelt_ShlFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::ShlFeltOp Operation.
MlirValue llzkFelt_ShlFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::ShlFeltOp Operation.
void llzkFelt_MulFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::MulFeltOp Operation.
bool llzkOperationIsA_Felt_DivFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::DivFeltOp.
MlirValue llzkFelt_AddFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::AddFeltOp Operation.
MlirValue llzkFelt_NotFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::NotFeltOp Operation.
bool llzkOperationIsA_Felt_NegFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::NegFeltOp.
MlirOperation llzkFelt_SubFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::SubFeltOp Operation.
MlirValue llzkFelt_XorFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::XorFeltOp Operation.
MlirOperation llzkFelt_OrFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::OrFeltOp Operation.
MlirValue llzkFelt_AndFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::AndFeltOp Operation.
MlirValue llzkFelt_NegFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::NegFeltOp Operation.
MlirOperation llzkFelt_ShlFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::ShlFeltOp Operation.
MlirValue llzkFelt_SubFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::SubFeltOp Operation.
void llzkFelt_OrFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::OrFeltOp Operation.
MlirOperation llzkFelt_InvFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue operand)
Build a llzk::felt::InvFeltOp Operation.
void llzkFelt_SignedModFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::SignedModFeltOp Operation.
void llzkFelt_UnsignedModFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::UnsignedModFeltOp Operation.
void llzkFelt_SignedModFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::SignedModFeltOp Operation.
MlirValue llzkFelt_AddFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::AddFeltOp Operation.
MlirOperation llzkFelt_UnsignedIntDivFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::UnsignedIntDivFeltOp Operation.
bool llzkOperationIsA_Felt_AndFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::AndFeltOp.
MlirOperation llzkFelt_SignedModFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::SignedModFeltOp Operation.
MlirOperation llzkFelt_ShrFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::ShrFeltOp Operation.
MlirOperation llzkFelt_DivFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::DivFeltOp Operation.
void llzkFelt_FeltConstantOpSetValue(MlirOperation op, MlirAttribute attr)
Set Value attribute of llzk::felt::FeltConstantOp Operation.
bool llzkOperationIsA_Felt_XorFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::XorFeltOp.
MlirValue llzkFelt_SignedIntDivFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::SignedIntDivFeltOp Operation.
MlirValue llzkFelt_XorFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::XorFeltOp Operation.
void llzkFelt_PowFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::PowFeltOp Operation.
void llzkFelt_XorFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::XorFeltOp Operation.
void llzkFelt_NotFeltOpSetOperand(MlirOperation op, MlirValue value)
Set Operand operand of llzk::felt::NotFeltOp Operation.
MlirValue llzkFelt_SignedIntDivFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::SignedIntDivFeltOp Operation.
bool llzkOperationIsA_Felt_PowFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::PowFeltOp.
void llzkFelt_XorFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::XorFeltOp Operation.
MlirValue llzkFelt_MulFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::MulFeltOp Operation.
void llzkFelt_ShlFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::ShlFeltOp Operation.
void llzkFelt_SignedIntDivFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::SignedIntDivFeltOp Operation.
MlirValue llzkFelt_SignedModFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::SignedModFeltOp Operation.
void llzkFelt_UnsignedIntDivFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::UnsignedIntDivFeltOp Operation.
bool llzkOperationIsA_Felt_UnsignedModFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::UnsignedModFeltOp.
void llzkFelt_ShlFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::ShlFeltOp Operation.
MlirValue llzkFelt_UnsignedModFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::UnsignedModFeltOp Operation.
MlirValue llzkFelt_OrFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::OrFeltOp Operation.
bool llzkOperationIsA_Felt_InvFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::InvFeltOp.
bool llzkOperationIsA_Felt_OrFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::OrFeltOp.
MlirValue llzkFelt_UnsignedModFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::UnsignedModFeltOp Operation.
bool llzkOperationIsA_Felt_NotFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::NotFeltOp.
MlirAttribute llzkFelt_FeltConstantOpGetValue(MlirOperation op)
Get Value attribute from llzk::felt::FeltConstantOp Operation.
bool llzkOperationIsA_Felt_SignedIntDivFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::SignedIntDivFeltOp.
MlirValue llzkFelt_DivFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::DivFeltOp Operation.
void llzkFelt_AndFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::AndFeltOp Operation.
MlirValue llzkFelt_ShlFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::ShlFeltOp Operation.
void llzkFelt_AddFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::AddFeltOp Operation.
bool llzkOperationIsA_Felt_UnsignedIntDivFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::UnsignedIntDivFeltOp.
MlirValue llzkFelt_SignedModFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::SignedModFeltOp Operation.
void llzkFelt_DivFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::DivFeltOp Operation.
MlirValue llzkFelt_AndFeltOpGetResult(MlirOperation op)
Get Result result from llzk::felt::AndFeltOp Operation.
void llzkFelt_MulFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::MulFeltOp Operation.
MlirValue llzkFelt_OrFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::OrFeltOp Operation.
void llzkFelt_ShrFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::ShrFeltOp Operation.
MlirValue llzkFelt_NotFeltOpGetOperand(MlirOperation op)
Get Operand operand from llzk::felt::NotFeltOp Operation.
MlirValue llzkFelt_SignedIntDivFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::SignedIntDivFeltOp Operation.
MlirOperation llzkFelt_FeltConstantOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirAttribute value)
Build a llzk::felt::FeltConstantOp Operation.
MlirOperation llzkFelt_MulFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::MulFeltOp Operation.
MlirValue llzkFelt_UnsignedIntDivFeltOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::felt::UnsignedIntDivFeltOp Operation.
void llzkFelt_AndFeltOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::felt::AndFeltOp Operation.
MlirValue llzkFelt_MulFeltOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::felt::MulFeltOp Operation.
MlirOperation llzkFelt_UnsignedModFeltOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue lhs, MlirValue rhs)
Build a llzk::felt::UnsignedModFeltOp Operation.
bool llzkOperationIsA_Felt_AddFeltOp(MlirOperation inp)
Returns true if the Operation is a llzk::felt::AddFeltOp.
void llzkFelt_NegFeltOpSetOperand(MlirOperation op, MlirValue value)
Set Operand operand of llzk::felt::NegFeltOp Operation.
void llzkFelt_PowFeltOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::felt::PowFeltOp Operation.