LLZK 2.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
Ops.capi.cpp.inc
Go to the documentation of this file.
1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* Op C API Definitions *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* From: Ops.td *|
7|* *|
8\*===----------------------------------------------------------------------===*/
9
10
11bool llzkOperationIsA_Function_CallOp(MlirOperation inp) {
12 return llvm::isa<CallOp>(unwrap(inp));
13}
14
15intptr_t llzkFunction_CallOpGetArgOperandsCount(MlirOperation op) {
16 intptr_t count = mlirOperationGetNumOperands(op);
17 assert(count >= 0 && "operand count less than start index");
18 return count - 0;
19}
20
21MlirValue llzkFunction_CallOpGetArgOperandsAt(MlirOperation op, intptr_t index) {
22 return mlirOperationGetOperand(op, 0 + index);
23}
24
25void llzkFunction_CallOpSetArgOperands(MlirOperation op, intptr_t count, MlirValue const *values) {
26 intptr_t numOperands = mlirOperationGetNumOperands(op);
27 intptr_t startIdx = 0;
28
29 // Validate bounds
30 if (startIdx < 0 || startIdx > numOperands) {
31 return;
32 }
33 if (count < 0 || count > (std::numeric_limits<intptr_t>::max() - startIdx)) {
34 return;
35 }
36
37 intptr_t oldCount = numOperands - startIdx;
38 intptr_t newNumOperands = startIdx + count;
39
40 std::vector<MlirValue> newOperands(newNumOperands);
41
42 // Copy operands before this variadic group
43 for (intptr_t i = 0; i < startIdx; ++i) {
44 newOperands[i] = mlirOperationGetOperand(op, i);
45 }
46
47 // Copy new variadic operands
48 for (intptr_t i = 0; i < count; ++i) {
49 newOperands[startIdx + i] = values[i];
50 }
51
52 // Copy operands after this variadic group
53 for (intptr_t i = startIdx + oldCount; i < numOperands; ++i) {
54 newOperands[i - oldCount + count] = mlirOperationGetOperand(op, i);
55 }
56
57 mlirOperationSetOperands(op, newNumOperands, newOperands.data());
58}
59
60intptr_t llzkFunction_CallOpGetMapOperandsCount(MlirOperation op) {
61 intptr_t count = mlirOperationGetNumOperands(op);
62 assert(count >= 1 && "operand count less than start index");
63 return count - 1;
64}
65
66MlirValue llzkFunction_CallOpGetMapOperandsAt(MlirOperation op, intptr_t index) {
67 return mlirOperationGetOperand(op, 1 + index);
68}
69
70void llzkFunction_CallOpSetMapOperands(MlirOperation op, intptr_t count, MlirValue const *values) {
71 intptr_t numOperands = mlirOperationGetNumOperands(op);
72 intptr_t startIdx = 1;
73
74 // Validate bounds
75 if (startIdx < 0 || startIdx > numOperands) {
76 return;
77 }
78 if (count < 0 || count > (std::numeric_limits<intptr_t>::max() - startIdx)) {
79 return;
80 }
81
82 intptr_t oldCount = numOperands - startIdx;
83 intptr_t newNumOperands = startIdx + count;
84
85 std::vector<MlirValue> newOperands(newNumOperands);
86
87 // Copy operands before this variadic group
88 for (intptr_t i = 0; i < startIdx; ++i) {
89 newOperands[i] = mlirOperationGetOperand(op, i);
90 }
91
92 // Copy new variadic operands
93 for (intptr_t i = 0; i < count; ++i) {
94 newOperands[startIdx + i] = values[i];
95 }
96
97 // Copy operands after this variadic group
98 for (intptr_t i = startIdx + oldCount; i < numOperands; ++i) {
99 newOperands[i - oldCount + count] = mlirOperationGetOperand(op, i);
100 }
101
102 mlirOperationSetOperands(op, newNumOperands, newOperands.data());
103}
104
105MlirAttribute llzkFunction_CallOpGetCallee(MlirOperation op) {
106 return mlirOperationGetAttributeByName(op, mlirStringRefCreateFromCString("callee"));
107}
108
109void llzkFunction_CallOpSetCallee(MlirOperation op, MlirAttribute attr) {
110 mlirOperationSetAttributeByName(op, mlirStringRefCreateFromCString("callee"), attr);
111}
112
113MlirAttribute llzkFunction_CallOpGetTemplateParams(MlirOperation op) {
114 return mlirOperationGetAttributeByName(op, mlirStringRefCreateFromCString("templateParams"));
115}
116
117void llzkFunction_CallOpSetTemplateParams(MlirOperation op, MlirAttribute attr) {
118 mlirOperationSetAttributeByName(op, mlirStringRefCreateFromCString("templateParams"), attr);
119}
120
121MlirAttribute llzkFunction_CallOpGetNumDimsPerMap(MlirOperation op) {
122 return mlirOperationGetAttributeByName(op, mlirStringRefCreateFromCString("numDimsPerMap"));
123}
124
125void llzkFunction_CallOpSetNumDimsPerMap(MlirOperation op, MlirAttribute attr) {
126 mlirOperationSetAttributeByName(op, mlirStringRefCreateFromCString("numDimsPerMap"), attr);
127}
128
129MlirAttribute llzkFunction_CallOpGetMapOpGroupSizes(MlirOperation op) {
130 return mlirOperationGetAttributeByName(op, mlirStringRefCreateFromCString("mapOpGroupSizes"));
131}
132
133void llzkFunction_CallOpSetMapOpGroupSizes(MlirOperation op, MlirAttribute attr) {
134 mlirOperationSetAttributeByName(op, mlirStringRefCreateFromCString("mapOpGroupSizes"), attr);
135}
136
137intptr_t llzkFunction_CallOpGetResult0Count(MlirOperation op) {
138 intptr_t count = mlirOperationGetNumResults(op);
139 assert(count >= 0 && "result count less than start index");
140 return count - 0;
141}
142
143MlirValue llzkFunction_CallOpGetResult0At(MlirOperation op, intptr_t index) {
144 return mlirOperationGetResult(op, 0 + index);
145}
146
148 return llvm::cast<CallOp>(unwrap(inp)).calleeContainsWitnessGen();
149}
150
152 return llvm::cast<CallOp>(unwrap(inp)).calleeIsStructCompute();
153}
154
156 return wrap(llvm::cast<CallOp>(unwrap(inp)).getSingleResultTypeOfCompute());
157}
158
160 return llvm::cast<CallOp>(unwrap(inp)).calleeIsStructConstrain();
161}
162
164 return wrap(llvm::cast<CallOp>(unwrap(inp)).getSelfValueFromConstrain());
165}
166
167MlirType llzkFunction_CallOpGetTypeSignature(MlirOperation inp) {
168 return wrap(llvm::cast<CallOp>(unwrap(inp)).getTypeSignature());
169}
170
171bool llzkFunction_CallOpCalleeIsCompute(MlirOperation inp) {
172 return llvm::cast<CallOp>(unwrap(inp)).calleeIsCompute();
173}
174
176 return llvm::cast<CallOp>(unwrap(inp)).calleeIsConstrain();
177}
178
179MlirOperation llzkFunction_CallOpResolveCallable(MlirOperation inp) {
180 return wrap(llvm::cast<CallOp>(unwrap(inp)).resolveCallable());
181}
182
183MlirValue llzkFunction_CallOpGetSelfValueFromCompute(MlirOperation inp) {
184 return wrap(llvm::cast<CallOp>(unwrap(inp)).getSelfValueFromCompute());
185}
186
188 return wrap(llvm::cast<CallOp>(unwrap(inp)).getSingleResultTypeOfWitnessGen());
189}
190
191MlirOperation llzkFunction_FuncDefOpBuild(MlirOpBuilder builder, MlirLocation location, MlirIdentifier sym_name, MlirAttribute function_type, MlirAttribute arg_attrs, MlirAttribute res_attrs) {
192 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString("function.def"), location);
193 MlirContext ctx = mlirOpBuilderGetContext(builder);
194 llvm::SmallVector<MlirNamedAttribute, 4> attributes;
195 if (!mlirAttributeIsNull(reinterpret_cast<MlirAttribute&>(sym_name))) {
196 attributes.push_back(mlirNamedAttributeGet(mlirIdentifierGet(ctx, mlirStringRefCreateFromCString("sym_name")), reinterpret_cast<MlirAttribute&>(sym_name)));
197 }
198 if (!mlirAttributeIsNull(function_type)) {
199 attributes.push_back(mlirNamedAttributeGet(mlirIdentifierGet(ctx, mlirStringRefCreateFromCString("function_type")), function_type));
200 }
201 if (!mlirAttributeIsNull(arg_attrs)) {
202 attributes.push_back(mlirNamedAttributeGet(mlirIdentifierGet(ctx, mlirStringRefCreateFromCString("arg_attrs")), arg_attrs));
203 }
204 if (!mlirAttributeIsNull(res_attrs)) {
205 attributes.push_back(mlirNamedAttributeGet(mlirIdentifierGet(ctx, mlirStringRefCreateFromCString("res_attrs")), res_attrs));
206 }
207 mlirOperationStateAddAttributes(&state, attributes.size(), attributes.data());
208 llvm::SmallVector<MlirRegion, 1> regions;
209 regions.push_back(mlirRegionCreate());
210 mlirOperationStateAddOwnedRegions(&state, regions.size(), regions.data());
211
212 return mlirOpBuilderInsert(builder, mlirOperationCreate(&state));
213}
214
215bool llzkOperationIsA_Function_FuncDefOp(MlirOperation inp) {
216 return llvm::isa<FuncDefOp>(unwrap(inp));
217}
218
219MlirAttribute llzkFunction_FuncDefOpGetSymName(MlirOperation op) {
220 return mlirOperationGetAttributeByName(op, mlirStringRefCreateFromCString("sym_name"));
221}
222
223void llzkFunction_FuncDefOpSetSymName(MlirOperation op, MlirAttribute attr) {
224 mlirOperationSetAttributeByName(op, mlirStringRefCreateFromCString("sym_name"), attr);
225}
226
227MlirAttribute llzkFunction_FuncDefOpGetFunctionType(MlirOperation op) {
228 return mlirOperationGetAttributeByName(op, mlirStringRefCreateFromCString("function_type"));
229}
230
231void llzkFunction_FuncDefOpSetFunctionType(MlirOperation op, MlirAttribute attr) {
232 mlirOperationSetAttributeByName(op, mlirStringRefCreateFromCString("function_type"), attr);
233}
234
235MlirAttribute llzkFunction_FuncDefOpGetArgAttrs(MlirOperation op) {
236 return mlirOperationGetAttributeByName(op, mlirStringRefCreateFromCString("arg_attrs"));
237}
238
239void llzkFunction_FuncDefOpSetArgAttrs(MlirOperation op, MlirAttribute attr) {
240 mlirOperationSetAttributeByName(op, mlirStringRefCreateFromCString("arg_attrs"), attr);
241}
242
243MlirAttribute llzkFunction_FuncDefOpGetResAttrs(MlirOperation op) {
244 return mlirOperationGetAttributeByName(op, mlirStringRefCreateFromCString("res_attrs"));
245}
246
247void llzkFunction_FuncDefOpSetResAttrs(MlirOperation op, MlirAttribute attr) {
248 mlirOperationSetAttributeByName(op, mlirStringRefCreateFromCString("res_attrs"), attr);
249}
250
251MlirRegion llzkFunction_FuncDefOpGetBody(MlirOperation op) {
252 return mlirOperationGetRegion(op, 0);
253}
254
255MlirAttribute llzkFunction_FuncDefOpGetFullyQualifiedName(MlirOperation inp, bool requireParent) {
256 return wrap(llvm::cast<FuncDefOp>(unwrap(inp)).getFullyQualifiedName(requireParent));
257}
258
259void llzkFunction_FuncDefOpSetAllowNonNativeFieldOpsAttr(MlirOperation inp, bool newValue) {
260 llvm::cast<FuncDefOp>(unwrap(inp)).setAllowNonNativeFieldOpsAttr(newValue);
261}
262
263bool llzkFunction_FuncDefOpIsDeclaration(MlirOperation inp) {
264 return llvm::cast<FuncDefOp>(unwrap(inp)).isDeclaration();
265}
266
268 return llvm::cast<FuncDefOp>(unwrap(inp)).hasAllowNonNativeFieldOpsAttr();
269}
270
271bool llzkFunction_FuncDefOpNameIsProduct(MlirOperation inp) {
272 return llvm::cast<FuncDefOp>(unwrap(inp)).nameIsProduct();
273}
274
275bool llzkFunction_FuncDefOpHasArgPublicAttr(MlirOperation inp, unsigned index) {
276 return llvm::cast<FuncDefOp>(unwrap(inp)).hasArgPublicAttr(index);
277}
278
280 return llvm::cast<FuncDefOp>(unwrap(inp)).isStructProduct();
281}
282
284 return wrap(llvm::cast<FuncDefOp>(unwrap(inp)).getSelfValueFromConstrain());
285}
286
288 return wrap(llvm::cast<FuncDefOp>(unwrap(inp)).getSingleResultTypeOfCompute());
289}
290
292 return llvm::cast<FuncDefOp>(unwrap(inp)).hasAllowWitnessAttr();
293}
294
296 return llvm::cast<FuncDefOp>(unwrap(inp)).nameIsConstrain();
297}
298
299MlirRegion llzkFunction_FuncDefOpGetCallableRegion(MlirOperation inp) {
300 return wrap(llvm::cast<FuncDefOp>(unwrap(inp)).getCallableRegion());
301}
302
303void llzkFunction_FuncDefOpSetAllowConstraintAttr(MlirOperation inp, bool newValue) {
304 llvm::cast<FuncDefOp>(unwrap(inp)).setAllowConstraintAttr(newValue);
305}
306
308 return wrap(llvm::cast<FuncDefOp>(unwrap(inp)).getSelfValueFromCompute());
309}
310
312 return llvm::cast<FuncDefOp>(unwrap(inp)).hasAllowConstraintAttr();
313}
314
315bool llzkFunction_FuncDefOpIsInStruct(MlirOperation inp) {
316 return llvm::cast<FuncDefOp>(unwrap(inp)).isInStruct();
317}
318
319void llzkFunction_FuncDefOpSetAllowWitnessAttr(MlirOperation inp, bool newValue) {
320 llvm::cast<FuncDefOp>(unwrap(inp)).setAllowWitnessAttr(newValue);
321}
322
323bool llzkFunction_FuncDefOpNameIsCompute(MlirOperation inp) {
324 return llvm::cast<FuncDefOp>(unwrap(inp)).nameIsCompute();
325}
326
328 return llvm::cast<FuncDefOp>(unwrap(inp)).isStructConstrain();
329}
330
332 return llvm::cast<FuncDefOp>(unwrap(inp)).isStructCompute();
333}
334
335MlirOperation llzkFunction_ReturnOpBuild(MlirOpBuilder builder, MlirLocation location, intptr_t operandsSize, MlirValue const *operands) {
336 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString("function.return"), location);
337 mlirOperationStateAddOperands(&state, operandsSize, operands);
338
339 return mlirOpBuilderInsert(builder, mlirOperationCreate(&state));
340}
341
342bool llzkOperationIsA_Function_ReturnOp(MlirOperation inp) {
343 return llvm::isa<ReturnOp>(unwrap(inp));
344}
345
346intptr_t llzkFunction_ReturnOpGetOperandsCount(MlirOperation op) {
347 intptr_t count = mlirOperationGetNumOperands(op);
348 assert(count >= 0 && "operand count less than start index");
349 return count - 0;
350}
351
352MlirValue llzkFunction_ReturnOpGetOperandsAt(MlirOperation op, intptr_t index) {
353 return mlirOperationGetOperand(op, 0 + index);
354}
355
356void llzkFunction_ReturnOpSetOperands(MlirOperation op, intptr_t count, MlirValue const *values) {
357 intptr_t numOperands = mlirOperationGetNumOperands(op);
358 intptr_t startIdx = 0;
359
360 // Validate bounds
361 if (startIdx < 0 || startIdx > numOperands) {
362 return;
363 }
364 if (count < 0 || count > (std::numeric_limits<intptr_t>::max() - startIdx)) {
365 return;
366 }
367
368 intptr_t oldCount = numOperands - startIdx;
369 intptr_t newNumOperands = startIdx + count;
370
371 std::vector<MlirValue> newOperands(newNumOperands);
372
373 // Copy operands before this variadic group
374 for (intptr_t i = 0; i < startIdx; ++i) {
375 newOperands[i] = mlirOperationGetOperand(op, i);
376 }
377
378 // Copy new variadic operands
379 for (intptr_t i = 0; i < count; ++i) {
380 newOperands[startIdx + i] = values[i];
381 }
382
383 // Copy operands after this variadic group
384 for (intptr_t i = startIdx + oldCount; i < numOperands; ++i) {
385 newOperands[i - oldCount + count] = mlirOperationGetOperand(op, i);
386 }
387
388 mlirOperationSetOperands(op, newNumOperands, newOperands.data());
389}
MlirContext mlirOpBuilderGetContext(MlirOpBuilder builder)
Returns the MLIR context associated with builder.
Definition Builder.cpp:79
MlirOperation mlirOpBuilderInsert(MlirOpBuilder builder, MlirOperation op)
Inserts op at the current insertion point of builder and returns it.
Definition Builder.cpp:108
bool llzkFunction_FuncDefOpNameIsProduct(MlirOperation inp)
Return true iff the function name is FUNC_NAME_PRODUCT (if needed, a check that this FuncDefOp is loc...
MlirRegion llzkFunction_FuncDefOpGetCallableRegion(MlirOperation inp)
Required by FunctionOpInterface.
void llzkFunction_FuncDefOpSetResAttrs(MlirOperation op, MlirAttribute attr)
Set ResAttrs attribute of llzk::function::FuncDefOp Operation.
MlirOperation llzkFunction_FuncDefOpBuild(MlirOpBuilder builder, MlirLocation location, MlirIdentifier sym_name, MlirAttribute function_type, MlirAttribute arg_attrs, MlirAttribute res_attrs)
Build a llzk::function::FuncDefOp Operation.
void llzkFunction_CallOpSetMapOperands(MlirOperation op, intptr_t count, MlirValue const *values)
Set MapOperands operands of llzk::function::CallOp Operation.
MlirValue llzkFunction_ReturnOpGetOperandsAt(MlirOperation op, intptr_t index)
Get Operands operand at index from llzk::function::ReturnOp Operation.
bool llzkFunction_FuncDefOpIsStructProduct(MlirOperation inp)
Return true iff the function is within a StructDefOp and named FUNC_NAME_PRODUCT.
intptr_t llzkFunction_CallOpGetResult0Count(MlirOperation op)
Get number of Result0 results in llzk::function::CallOp Operation.
MlirAttribute llzkFunction_FuncDefOpGetFullyQualifiedName(MlirOperation inp, bool requireParent)
Return the full name for this function from the root module, including all surrounding symbol table n...
bool llzkFunction_CallOpCalleeIsStructConstrain(MlirOperation inp)
Return true iff the callee function name is FUNC_NAME_CONSTRAIN within a StructDefOp.
void llzkFunction_FuncDefOpSetFunctionType(MlirOperation op, MlirAttribute attr)
Set FunctionType attribute of llzk::function::FuncDefOp Operation.
MlirAttribute llzkFunction_CallOpGetMapOpGroupSizes(MlirOperation op)
Get MapOpGroupSizes attribute from llzk::function::CallOp Operation.
bool llzkFunction_CallOpCalleeIsCompute(MlirOperation inp)
Return true iff the callee function name is FUNC_NAME_COMPUTE (this does not check if the callee func...
MlirAttribute llzkFunction_CallOpGetTemplateParams(MlirOperation op)
Get TemplateParams attribute from llzk::function::CallOp Operation.
intptr_t llzkFunction_CallOpGetMapOperandsCount(MlirOperation op)
Get number of MapOperands operands in llzk::function::CallOp Operation.
intptr_t llzkFunction_CallOpGetArgOperandsCount(MlirOperation op)
Get number of ArgOperands operands in llzk::function::CallOp Operation.
void llzkFunction_ReturnOpSetOperands(MlirOperation op, intptr_t count, MlirValue const *values)
Set Operands operands of llzk::function::ReturnOp Operation.
bool llzkFunction_FuncDefOpHasAllowWitnessAttr(MlirOperation inp)
Return true iff the function def has the allow_witness attribute.
MlirValue llzkFunction_FuncDefOpGetSelfValueFromConstrain(MlirOperation inp)
Return the "self" value (i.e.
MlirAttribute llzkFunction_FuncDefOpGetResAttrs(MlirOperation op)
Get ResAttrs attribute from llzk::function::FuncDefOp Operation.
MlirType llzkFunction_CallOpGetSingleResultTypeOfCompute(MlirOperation inp)
Assuming the callee is FUNC_NAME_COMPUTE, return the single StructType result.
MlirOperation llzkFunction_ReturnOpBuild(MlirOpBuilder builder, MlirLocation location, intptr_t operandsSize, MlirValue const *operands)
Build a llzk::function::ReturnOp Operation.
bool llzkFunction_FuncDefOpIsDeclaration(MlirOperation inp)
Required by SymbolOpInterface.
void llzkFunction_CallOpSetCallee(MlirOperation op, MlirAttribute attr)
Set Callee attribute of llzk::function::CallOp Operation.
bool llzkFunction_CallOpCalleeContainsWitnessGen(MlirOperation inp)
Return true iff the callee function can contain witness generation code (this does not check if the c...
bool llzkFunction_FuncDefOpHasAllowConstraintAttr(MlirOperation inp)
Return true iff the function def has the allow_constraint attribute.
bool llzkFunction_FuncDefOpIsInStruct(MlirOperation inp)
Return true iff the function is within a StructDefOp.
void llzkFunction_FuncDefOpSetArgAttrs(MlirOperation op, MlirAttribute attr)
Set ArgAttrs attribute of llzk::function::FuncDefOp Operation.
void llzkFunction_FuncDefOpSetAllowConstraintAttr(MlirOperation inp, bool newValue)
Add (resp. remove) the allow_constraint attribute to (resp. from) the function def.
void llzkFunction_CallOpSetArgOperands(MlirOperation op, intptr_t count, MlirValue const *values)
Set ArgOperands operands of llzk::function::CallOp Operation.
MlirValue llzkFunction_CallOpGetSelfValueFromConstrain(MlirOperation inp)
Return the "self" value (i.e.
bool llzkFunction_FuncDefOpHasArgPublicAttr(MlirOperation inp, unsigned index)
Return true iff the argument at the given index has pub attribute.
void llzkFunction_FuncDefOpSetAllowNonNativeFieldOpsAttr(MlirOperation inp, bool newValue)
Add (resp. remove) the allow_non_native_field_ops attribute to (resp. from) the function def.
bool llzkFunction_FuncDefOpIsStructConstrain(MlirOperation inp)
Return true iff the function is within a StructDefOp and named FUNC_NAME_CONSTRAIN.
MlirValue llzkFunction_CallOpGetArgOperandsAt(MlirOperation op, intptr_t index)
Get ArgOperands operand at index from llzk::function::CallOp Operation.
MlirType llzkFunction_FuncDefOpGetSingleResultTypeOfCompute(MlirOperation inp)
Assuming the name is FUNC_NAME_COMPUTE, return the single StructType result.
void llzkFunction_CallOpSetTemplateParams(MlirOperation op, MlirAttribute attr)
Set TemplateParams attribute of llzk::function::CallOp Operation.
void llzkFunction_CallOpSetNumDimsPerMap(MlirOperation op, MlirAttribute attr)
Set NumDimsPerMap attribute of llzk::function::CallOp Operation.
bool llzkOperationIsA_Function_ReturnOp(MlirOperation inp)
Returns true if the Operation is a llzk::function::ReturnOp.
bool llzkOperationIsA_Function_CallOp(MlirOperation inp)
Returns true if the Operation is a llzk::function::CallOp.
MlirAttribute llzkFunction_CallOpGetCallee(MlirOperation op)
Get Callee attribute from llzk::function::CallOp Operation.
MlirType llzkFunction_CallOpGetSingleResultTypeOfWitnessGen(MlirOperation inp)
Assuming the callee contains witness generation code, return the single StructType result.
MlirAttribute llzkFunction_FuncDefOpGetArgAttrs(MlirOperation op)
Get ArgAttrs attribute from llzk::function::FuncDefOp Operation.
bool llzkFunction_FuncDefOpNameIsConstrain(MlirOperation inp)
Return true iff the function name is FUNC_NAME_CONSTRAIN (if needed, a check that this FuncDefOp is l...
MlirValue llzkFunction_FuncDefOpGetSelfValueFromCompute(MlirOperation inp)
Return the "self" value (i.e.
bool llzkFunction_FuncDefOpIsStructCompute(MlirOperation inp)
Return true iff the function is within a StructDefOp and named FUNC_NAME_COMPUTE.
void llzkFunction_FuncDefOpSetAllowWitnessAttr(MlirOperation inp, bool newValue)
Add (resp. remove) the allow_witness attribute to (resp. from) the function def.
intptr_t llzkFunction_ReturnOpGetOperandsCount(MlirOperation op)
Get number of Operands operands in llzk::function::ReturnOp Operation.
MlirValue llzkFunction_CallOpGetMapOperandsAt(MlirOperation op, intptr_t index)
Get MapOperands operand at index from llzk::function::CallOp Operation.
bool llzkFunction_FuncDefOpHasAllowNonNativeFieldOpsAttr(MlirOperation inp)
Return true iff the function def has the allow_non_native_field_ops attribute.
void llzkFunction_FuncDefOpSetSymName(MlirOperation op, MlirAttribute attr)
Set SymName attribute of llzk::function::FuncDefOp Operation.
MlirRegion llzkFunction_FuncDefOpGetBody(MlirOperation op)
Get Body region from llzk::function::FuncDefOp Operation.
MlirType llzkFunction_CallOpGetTypeSignature(MlirOperation inp)
Return the FunctionType inferred from the arg operands and result types of this CallOp.
MlirValue llzkFunction_CallOpGetSelfValueFromCompute(MlirOperation inp)
Return the "self" value (i.e.
bool llzkFunction_CallOpCalleeIsStructCompute(MlirOperation inp)
Return true iff the callee function name is FUNC_NAME_COMPUTE within a StructDefOp.
MlirAttribute llzkFunction_FuncDefOpGetFunctionType(MlirOperation op)
Get FunctionType attribute from llzk::function::FuncDefOp Operation.
MlirValue llzkFunction_CallOpGetResult0At(MlirOperation op, intptr_t index)
Get Result0 result at index from llzk::function::CallOp Operation.
MlirOperation llzkFunction_CallOpResolveCallable(MlirOperation inp)
Required by CallOpInterface.
bool llzkFunction_FuncDefOpNameIsCompute(MlirOperation inp)
Return true iff the function name is FUNC_NAME_COMPUTE (if needed, a check that this FuncDefOp is loc...
bool llzkOperationIsA_Function_FuncDefOp(MlirOperation inp)
Returns true if the Operation is a llzk::function::FuncDefOp.
void llzkFunction_CallOpSetMapOpGroupSizes(MlirOperation op, MlirAttribute attr)
Set MapOpGroupSizes attribute of llzk::function::CallOp Operation.
MlirAttribute llzkFunction_CallOpGetNumDimsPerMap(MlirOperation op)
Get NumDimsPerMap attribute from llzk::function::CallOp Operation.
MlirAttribute llzkFunction_FuncDefOpGetSymName(MlirOperation op)
Get SymName attribute from llzk::function::FuncDefOp Operation.
bool llzkFunction_CallOpCalleeIsConstrain(MlirOperation inp)
Return true iff the callee function name is FUNC_NAME_CONSTRAIN (this does not check if the callee fu...