17 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"bool.exists"), location);
18 mlirOperationStateEnableResultTypeInference(&state);
19 mlirOperationStateAddOperands(&state, 1, &sort);
20 llvm::SmallVector<MlirRegion, 1> regions;
21 regions.push_back(mlirRegionCreate());
22 mlirOperationStateAddOwnedRegions(&state, regions.size(), regions.data());
28 return llvm::isa<ExistsOp>(unwrap(inp));
32 auto range = llvm::cast<ExistsOp>(unwrap(op)).getODSOperandIndexAndLength(0);
33 assert(range.second == 1 &&
"expected fixed operand segment size");
35 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
36 "operand index exceeds intptr_t range"
38 return mlirOperationGetOperand(op,
static_cast<intptr_t
>(range.first));
42 auto range = llvm::cast<ExistsOp>(unwrap(op)).getODSOperandIndexAndLength(0);
43 assert(range.second == 1 &&
"expected fixed operand segment size");
45 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
46 "operand index exceeds intptr_t range"
48 mlirOperationSetOperand(op,
static_cast<intptr_t
>(range.first), value);
52 return mlirOperationGetResult(op, 0);
56 return mlirOperationGetRegion(op, 0);
60 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"bool.forall"), location);
61 mlirOperationStateEnableResultTypeInference(&state);
62 mlirOperationStateAddOperands(&state, 1, &sort);
63 llvm::SmallVector<MlirRegion, 1> regions;
64 regions.push_back(mlirRegionCreate());
65 mlirOperationStateAddOwnedRegions(&state, regions.size(), regions.data());
71 return llvm::isa<ForAllOp>(unwrap(inp));
75 auto range = llvm::cast<ForAllOp>(unwrap(op)).getODSOperandIndexAndLength(0);
76 assert(range.second == 1 &&
"expected fixed operand segment size");
78 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
79 "operand index exceeds intptr_t range"
81 return mlirOperationGetOperand(op,
static_cast<intptr_t
>(range.first));
85 auto range = llvm::cast<ForAllOp>(unwrap(op)).getODSOperandIndexAndLength(0);
86 assert(range.second == 1 &&
"expected fixed operand segment size");
88 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
89 "operand index exceeds intptr_t range"
91 mlirOperationSetOperand(op,
static_cast<intptr_t
>(range.first), value);
95 return mlirOperationGetResult(op, 0);
99 return mlirOperationGetRegion(op, 0);
103 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"bool.and"), location);
104 mlirOperationStateEnableResultTypeInference(&state);
105 mlirOperationStateAddOperands(&state, 1, &lhs);
106 mlirOperationStateAddOperands(&state, 1, &rhs);
112 return llvm::isa<AndBoolOp>(unwrap(inp));
116 auto range = llvm::cast<AndBoolOp>(unwrap(op)).getODSOperandIndexAndLength(0);
117 assert(range.second == 1 &&
"expected fixed operand segment size");
119 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
120 "operand index exceeds intptr_t range"
122 return mlirOperationGetOperand(op,
static_cast<intptr_t
>(range.first));
126 auto range = llvm::cast<AndBoolOp>(unwrap(op)).getODSOperandIndexAndLength(0);
127 assert(range.second == 1 &&
"expected fixed operand segment size");
129 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
130 "operand index exceeds intptr_t range"
132 mlirOperationSetOperand(op,
static_cast<intptr_t
>(range.first), value);
136 auto range = llvm::cast<AndBoolOp>(unwrap(op)).getODSOperandIndexAndLength(1);
137 assert(range.second == 1 &&
"expected fixed operand segment size");
139 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
140 "operand index exceeds intptr_t range"
142 return mlirOperationGetOperand(op,
static_cast<intptr_t
>(range.first));
146 auto range = llvm::cast<AndBoolOp>(unwrap(op)).getODSOperandIndexAndLength(1);
147 assert(range.second == 1 &&
"expected fixed operand segment size");
149 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
150 "operand index exceeds intptr_t range"
152 mlirOperationSetOperand(op,
static_cast<intptr_t
>(range.first), value);
156 return mlirOperationGetResult(op, 0);
159MlirOperation
llzkBool_AssertOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue condition, MlirIdentifier msg) {
160 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"bool.assert"), location);
161 mlirOperationStateAddOperands(&state, 1, &condition);
163 llvm::SmallVector<MlirNamedAttribute, 1> attributes;
164 if (!mlirAttributeIsNull(
reinterpret_cast<MlirAttribute&
>(msg))) {
165 attributes.push_back(mlirNamedAttributeGet(mlirIdentifierGet(ctx, mlirStringRefCreateFromCString(
"msg")),
reinterpret_cast<MlirAttribute&
>(msg)));
167 mlirOperationStateAddAttributes(&state, attributes.size(), attributes.data());
173 return llvm::isa<AssertOp>(unwrap(inp));
177 auto range = llvm::cast<AssertOp>(unwrap(op)).getODSOperandIndexAndLength(0);
178 assert(range.second == 1 &&
"expected fixed operand segment size");
180 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
181 "operand index exceeds intptr_t range"
183 return mlirOperationGetOperand(op,
static_cast<intptr_t
>(range.first));
187 auto range = llvm::cast<AssertOp>(unwrap(op)).getODSOperandIndexAndLength(0);
188 assert(range.second == 1 &&
"expected fixed operand segment size");
190 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
191 "operand index exceeds intptr_t range"
193 mlirOperationSetOperand(op,
static_cast<intptr_t
>(range.first), value);
197 return mlirOperationGetAttributeByName(op, mlirStringRefCreateFromCString(
"msg"));
201 mlirOperationSetAttributeByName(op, mlirStringRefCreateFromCString(
"msg"), attr);
204MlirOperation
llzkBool_CmpOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue lhs, MlirValue rhs, MlirAttribute predicate) {
205 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"bool.cmp"), location);
206 mlirOperationStateEnableResultTypeInference(&state);
207 mlirOperationStateAddOperands(&state, 1, &lhs);
208 mlirOperationStateAddOperands(&state, 1, &rhs);
210 llvm::SmallVector<MlirNamedAttribute, 1> attributes;
211 if (!mlirAttributeIsNull(predicate)) {
212 attributes.push_back(mlirNamedAttributeGet(mlirIdentifierGet(ctx, mlirStringRefCreateFromCString(
"predicate")), predicate));
214 mlirOperationStateAddAttributes(&state, attributes.size(), attributes.data());
220 return llvm::isa<CmpOp>(unwrap(inp));
224 auto range = llvm::cast<CmpOp>(unwrap(op)).getODSOperandIndexAndLength(0);
225 assert(range.second == 1 &&
"expected fixed operand segment size");
227 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
228 "operand index exceeds intptr_t range"
230 return mlirOperationGetOperand(op,
static_cast<intptr_t
>(range.first));
234 auto range = llvm::cast<CmpOp>(unwrap(op)).getODSOperandIndexAndLength(0);
235 assert(range.second == 1 &&
"expected fixed operand segment size");
237 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
238 "operand index exceeds intptr_t range"
240 mlirOperationSetOperand(op,
static_cast<intptr_t
>(range.first), value);
244 auto range = llvm::cast<CmpOp>(unwrap(op)).getODSOperandIndexAndLength(1);
245 assert(range.second == 1 &&
"expected fixed operand segment size");
247 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
248 "operand index exceeds intptr_t range"
250 return mlirOperationGetOperand(op,
static_cast<intptr_t
>(range.first));
254 auto range = llvm::cast<CmpOp>(unwrap(op)).getODSOperandIndexAndLength(1);
255 assert(range.second == 1 &&
"expected fixed operand segment size");
257 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
258 "operand index exceeds intptr_t range"
260 mlirOperationSetOperand(op,
static_cast<intptr_t
>(range.first), value);
264 return mlirOperationGetAttributeByName(op, mlirStringRefCreateFromCString(
"predicate"));
268 mlirOperationSetAttributeByName(op, mlirStringRefCreateFromCString(
"predicate"), attr);
272 return mlirOperationGetResult(op, 0);
276 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"bool.not"), location);
277 mlirOperationStateEnableResultTypeInference(&state);
278 mlirOperationStateAddOperands(&state, 1, &operand);
284 return llvm::isa<NotBoolOp>(unwrap(inp));
288 auto range = llvm::cast<NotBoolOp>(unwrap(op)).getODSOperandIndexAndLength(0);
289 assert(range.second == 1 &&
"expected fixed operand segment size");
291 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
292 "operand index exceeds intptr_t range"
294 return mlirOperationGetOperand(op,
static_cast<intptr_t
>(range.first));
298 auto range = llvm::cast<NotBoolOp>(unwrap(op)).getODSOperandIndexAndLength(0);
299 assert(range.second == 1 &&
"expected fixed operand segment size");
301 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
302 "operand index exceeds intptr_t range"
304 mlirOperationSetOperand(op,
static_cast<intptr_t
>(range.first), value);
308 return mlirOperationGetResult(op, 0);
312 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"bool.or"), location);
313 mlirOperationStateEnableResultTypeInference(&state);
314 mlirOperationStateAddOperands(&state, 1, &lhs);
315 mlirOperationStateAddOperands(&state, 1, &rhs);
321 return llvm::isa<OrBoolOp>(unwrap(inp));
325 auto range = llvm::cast<OrBoolOp>(unwrap(op)).getODSOperandIndexAndLength(0);
326 assert(range.second == 1 &&
"expected fixed operand segment size");
328 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
329 "operand index exceeds intptr_t range"
331 return mlirOperationGetOperand(op,
static_cast<intptr_t
>(range.first));
335 auto range = llvm::cast<OrBoolOp>(unwrap(op)).getODSOperandIndexAndLength(0);
336 assert(range.second == 1 &&
"expected fixed operand segment size");
338 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
339 "operand index exceeds intptr_t range"
341 mlirOperationSetOperand(op,
static_cast<intptr_t
>(range.first), value);
345 auto range = llvm::cast<OrBoolOp>(unwrap(op)).getODSOperandIndexAndLength(1);
346 assert(range.second == 1 &&
"expected fixed operand segment size");
348 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
349 "operand index exceeds intptr_t range"
351 return mlirOperationGetOperand(op,
static_cast<intptr_t
>(range.first));
355 auto range = llvm::cast<OrBoolOp>(unwrap(op)).getODSOperandIndexAndLength(1);
356 assert(range.second == 1 &&
"expected fixed operand segment size");
358 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
359 "operand index exceeds intptr_t range"
361 mlirOperationSetOperand(op,
static_cast<intptr_t
>(range.first), value);
365 return mlirOperationGetResult(op, 0);
369 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"bool.xor"), location);
370 mlirOperationStateEnableResultTypeInference(&state);
371 mlirOperationStateAddOperands(&state, 1, &lhs);
372 mlirOperationStateAddOperands(&state, 1, &rhs);
378 return llvm::isa<XorBoolOp>(unwrap(inp));
382 auto range = llvm::cast<XorBoolOp>(unwrap(op)).getODSOperandIndexAndLength(0);
383 assert(range.second == 1 &&
"expected fixed operand segment size");
385 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
386 "operand index exceeds intptr_t range"
388 return mlirOperationGetOperand(op,
static_cast<intptr_t
>(range.first));
392 auto range = llvm::cast<XorBoolOp>(unwrap(op)).getODSOperandIndexAndLength(0);
393 assert(range.second == 1 &&
"expected fixed operand segment size");
395 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
396 "operand index exceeds intptr_t range"
398 mlirOperationSetOperand(op,
static_cast<intptr_t
>(range.first), value);
402 auto range = llvm::cast<XorBoolOp>(unwrap(op)).getODSOperandIndexAndLength(1);
403 assert(range.second == 1 &&
"expected fixed operand segment size");
405 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
406 "operand index exceeds intptr_t range"
408 return mlirOperationGetOperand(op,
static_cast<intptr_t
>(range.first));
412 auto range = llvm::cast<XorBoolOp>(unwrap(op)).getODSOperandIndexAndLength(1);
413 assert(range.second == 1 &&
"expected fixed operand segment size");
415 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
416 "operand index exceeds intptr_t range"
418 mlirOperationSetOperand(op,
static_cast<intptr_t
>(range.first), value);
422 return mlirOperationGetResult(op, 0);
426 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString(
"bool.yield"), location);
427 mlirOperationStateAddOperands(&state, 1, &value);
433 return llvm::isa<YieldOp>(unwrap(inp));
437 auto range = llvm::cast<YieldOp>(unwrap(op)).getODSOperandIndexAndLength(0);
438 assert(range.second == 1 &&
"expected fixed operand segment size");
440 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
441 "operand index exceeds intptr_t range"
443 return mlirOperationGetOperand(op,
static_cast<intptr_t
>(range.first));
447 auto range = llvm::cast<YieldOp>(unwrap(op)).getODSOperandIndexAndLength(0);
448 assert(range.second == 1 &&
"expected fixed operand segment size");
450 static_cast<uintptr_t
>(range.first) <=
static_cast<uintptr_t
>(std::numeric_limits<intptr_t>::max()) &&
451 "operand index exceeds intptr_t range"
453 mlirOperationSetOperand(op,
static_cast<intptr_t
>(range.first), value);
void llzkBool_YieldOpSetValue(MlirOperation op, MlirValue value)
Set Value operand of llzk::boolean::YieldOp Operation.
MlirOperation llzkBool_AssertOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue condition, MlirIdentifier msg)
Build a llzk::boolean::AssertOp Operation.
void llzkBool_ExistsOpSetSort(MlirOperation op, MlirValue value)
Set Sort operand of llzk::boolean::ExistsOp Operation.
MlirOperation llzkBool_XorBoolOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue lhs, MlirValue rhs)
Build a llzk::boolean::XorBoolOp Operation.
MlirOperation llzkBool_ExistsOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue sort)
Build a llzk::boolean::ExistsOp Operation.
void llzkBool_XorBoolOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::boolean::XorBoolOp Operation.
MlirValue llzkBool_NotBoolOpGetOperand(MlirOperation op)
Get Operand operand from llzk::boolean::NotBoolOp Operation.
MlirValue llzkBool_ExistsOpGetSort(MlirOperation op)
Get Sort operand from llzk::boolean::ExistsOp Operation.
MlirValue llzkBool_ForAllOpGetSort(MlirOperation op)
Get Sort operand from llzk::boolean::ForAllOp Operation.
bool llzkOperationIsA_Bool_CmpOp(MlirOperation inp)
Returns true if the Operation is a llzk::boolean::CmpOp.
MlirValue llzkBool_OrBoolOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::boolean::OrBoolOp Operation.
MlirValue llzkBool_AssertOpGetCondition(MlirOperation op)
Get Condition operand from llzk::boolean::AssertOp Operation.
bool llzkOperationIsA_Bool_AssertOp(MlirOperation inp)
Returns true if the Operation is a llzk::boolean::AssertOp.
MlirValue llzkBool_XorBoolOpGetResult(MlirOperation op)
Get Result result from llzk::boolean::XorBoolOp Operation.
MlirValue llzkBool_CmpOpGetResult(MlirOperation op)
Get Result result from llzk::boolean::CmpOp Operation.
MlirOperation llzkBool_OrBoolOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue lhs, MlirValue rhs)
Build a llzk::boolean::OrBoolOp Operation.
void llzkBool_XorBoolOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::boolean::XorBoolOp Operation.
bool llzkOperationIsA_Bool_ExistsOp(MlirOperation inp)
Returns true if the Operation is a llzk::boolean::ExistsOp.
MlirValue llzkBool_AndBoolOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::boolean::AndBoolOp Operation.
MlirOperation llzkBool_ForAllOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue sort)
Build a llzk::boolean::ForAllOp Operation.
bool llzkOperationIsA_Bool_XorBoolOp(MlirOperation inp)
Returns true if the Operation is a llzk::boolean::XorBoolOp.
MlirOperation llzkBool_CmpOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue lhs, MlirValue rhs, MlirAttribute predicate)
Build a llzk::boolean::CmpOp Operation.
void llzkBool_CmpOpSetPredicate(MlirOperation op, MlirAttribute attr)
Set Predicate attribute of llzk::boolean::CmpOp Operation.
bool llzkOperationIsA_Bool_NotBoolOp(MlirOperation inp)
Returns true if the Operation is a llzk::boolean::NotBoolOp.
void llzkBool_NotBoolOpSetOperand(MlirOperation op, MlirValue value)
Set Operand operand of llzk::boolean::NotBoolOp Operation.
bool llzkOperationIsA_Bool_ForAllOp(MlirOperation inp)
Returns true if the Operation is a llzk::boolean::ForAllOp.
MlirAttribute llzkBool_AssertOpGetMsg(MlirOperation op)
Get Msg attribute from llzk::boolean::AssertOp Operation.
MlirValue llzkBool_OrBoolOpGetResult(MlirOperation op)
Get Result result from llzk::boolean::OrBoolOp Operation.
MlirValue llzkBool_OrBoolOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::boolean::OrBoolOp Operation.
void llzkBool_AndBoolOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::boolean::AndBoolOp Operation.
void llzkBool_AndBoolOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::boolean::AndBoolOp Operation.
MlirOperation llzkBool_NotBoolOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue operand)
Build a llzk::boolean::NotBoolOp Operation.
bool llzkOperationIsA_Bool_YieldOp(MlirOperation inp)
Returns true if the Operation is a llzk::boolean::YieldOp.
MlirValue llzkBool_AndBoolOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::boolean::AndBoolOp Operation.
void llzkBool_OrBoolOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::boolean::OrBoolOp Operation.
MlirValue llzkBool_ExistsOpGetResult(MlirOperation op)
Get Result result from llzk::boolean::ExistsOp Operation.
void llzkBool_ForAllOpSetSort(MlirOperation op, MlirValue value)
Set Sort operand of llzk::boolean::ForAllOp Operation.
void llzkBool_AssertOpSetCondition(MlirOperation op, MlirValue value)
Set Condition operand of llzk::boolean::AssertOp Operation.
MlirValue llzkBool_CmpOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::boolean::CmpOp Operation.
MlirRegion llzkBool_ForAllOpGetRegion(MlirOperation op)
Get Region region from llzk::boolean::ForAllOp Operation.
MlirRegion llzkBool_ExistsOpGetRegion(MlirOperation op)
Get Region region from llzk::boolean::ExistsOp Operation.
MlirValue llzkBool_XorBoolOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::boolean::XorBoolOp Operation.
MlirValue llzkBool_AndBoolOpGetResult(MlirOperation op)
Get Result result from llzk::boolean::AndBoolOp Operation.
void llzkBool_OrBoolOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::boolean::OrBoolOp Operation.
MlirAttribute llzkBool_CmpOpGetPredicate(MlirOperation op)
Get Predicate attribute from llzk::boolean::CmpOp Operation.
MlirValue llzkBool_NotBoolOpGetResult(MlirOperation op)
Get Result result from llzk::boolean::NotBoolOp Operation.
void llzkBool_AssertOpSetMsg(MlirOperation op, MlirAttribute attr)
Set Msg attribute of llzk::boolean::AssertOp Operation.
bool llzkOperationIsA_Bool_OrBoolOp(MlirOperation inp)
Returns true if the Operation is a llzk::boolean::OrBoolOp.
MlirValue llzkBool_ForAllOpGetResult(MlirOperation op)
Get Result result from llzk::boolean::ForAllOp Operation.
MlirValue llzkBool_CmpOpGetRhs(MlirOperation op)
Get Rhs operand from llzk::boolean::CmpOp Operation.
MlirValue llzkBool_XorBoolOpGetLhs(MlirOperation op)
Get Lhs operand from llzk::boolean::XorBoolOp Operation.
bool llzkOperationIsA_Bool_AndBoolOp(MlirOperation inp)
Returns true if the Operation is a llzk::boolean::AndBoolOp.
MlirOperation llzkBool_YieldOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue value)
Build a llzk::boolean::YieldOp Operation.
MlirOperation llzkBool_AndBoolOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue lhs, MlirValue rhs)
Build a llzk::boolean::AndBoolOp Operation.
void llzkBool_CmpOpSetRhs(MlirOperation op, MlirValue value)
Set Rhs operand of llzk::boolean::CmpOp Operation.
MlirValue llzkBool_YieldOpGetValue(MlirOperation op)
Get Value operand from llzk::boolean::YieldOp Operation.
void llzkBool_CmpOpSetLhs(MlirOperation op, MlirValue value)
Set Lhs operand of llzk::boolean::CmpOp Operation.
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.