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
11MlirOperation llzkArray_ArrayLengthOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue arr_ref, MlirValue dim) {
12 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString("array.len"), location);
13 mlirOperationStateEnableResultTypeInference(&state);
14 mlirOperationStateAddOperands(&state, 1, &arr_ref);
15 mlirOperationStateAddOperands(&state, 1, &dim);
16
17 return mlirOpBuilderInsert(builder, mlirOperationCreate(&state));
18}
19
20bool llzkOperationIsA_Array_ArrayLengthOp(MlirOperation inp) {
21 return llvm::isa<ArrayLengthOp>(unwrap(inp));
22}
23
24MlirValue llzkArray_ArrayLengthOpGetArrRef(MlirOperation op) {
25 return mlirOperationGetOperand(op, 0);
26}
27
28void llzkArray_ArrayLengthOpSetArrRef(MlirOperation op, MlirValue value) {
29 mlirOperationSetOperand(op, 0, value);
30}
31
32MlirValue llzkArray_ArrayLengthOpGetDim(MlirOperation op) {
33 return mlirOperationGetOperand(op, 1);
34}
35
36void llzkArray_ArrayLengthOpSetDim(MlirOperation op, MlirValue value) {
37 mlirOperationSetOperand(op, 1, value);
38}
39
40MlirValue llzkArray_ArrayLengthOpGetLength(MlirOperation op) {
41 return mlirOperationGetResult(op, 0);
42}
43
44MlirType llzkArray_ArrayLengthOpGetArrRefType(MlirOperation inp) {
45 return wrap(llvm::cast<ArrayLengthOp>(unwrap(inp)).getArrRefType());
46}
47
48bool llzkOperationIsA_Array_CreateArrayOp(MlirOperation inp) {
49 return llvm::isa<CreateArrayOp>(unwrap(inp));
50}
51
52intptr_t llzkArray_CreateArrayOpGetElementsCount(MlirOperation op) {
53 intptr_t count = mlirOperationGetNumOperands(op);
54 assert(count >= 0 && "operand count less than start index");
55 return count - 0;
56}
57
58MlirValue llzkArray_CreateArrayOpGetElementsAt(MlirOperation op, intptr_t index) {
59 return mlirOperationGetOperand(op, 0 + index);
60}
61
62void llzkArray_CreateArrayOpSetElements(MlirOperation op, intptr_t count, MlirValue const *values) {
63 intptr_t numOperands = mlirOperationGetNumOperands(op);
64 intptr_t startIdx = 0;
65
66 // Validate bounds
67 if (startIdx < 0 || startIdx > numOperands) {
68 return;
69 }
70 if (count < 0 || count > (std::numeric_limits<intptr_t>::max() - startIdx)) {
71 return;
72 }
73
74 intptr_t oldCount = numOperands - startIdx;
75 intptr_t newNumOperands = startIdx + count;
76
77 std::vector<MlirValue> newOperands(newNumOperands);
78
79 // Copy operands before this variadic group
80 for (intptr_t i = 0; i < startIdx; ++i) {
81 newOperands[i] = mlirOperationGetOperand(op, i);
82 }
83
84 // Copy new variadic operands
85 for (intptr_t i = 0; i < count; ++i) {
86 newOperands[startIdx + i] = values[i];
87 }
88
89 // Copy operands after this variadic group
90 for (intptr_t i = startIdx + oldCount; i < numOperands; ++i) {
91 newOperands[i - oldCount + count] = mlirOperationGetOperand(op, i);
92 }
93
94 mlirOperationSetOperands(op, newNumOperands, newOperands.data());
95}
96
98 intptr_t count = mlirOperationGetNumOperands(op);
99 assert(count >= 1 && "operand count less than start index");
100 return count - 1;
101}
102
103MlirValue llzkArray_CreateArrayOpGetMapOperandsAt(MlirOperation op, intptr_t index) {
104 return mlirOperationGetOperand(op, 1 + index);
105}
106
107void llzkArray_CreateArrayOpSetMapOperands(MlirOperation op, intptr_t count, MlirValue const *values) {
108 intptr_t numOperands = mlirOperationGetNumOperands(op);
109 intptr_t startIdx = 1;
110
111 // Validate bounds
112 if (startIdx < 0 || startIdx > numOperands) {
113 return;
114 }
115 if (count < 0 || count > (std::numeric_limits<intptr_t>::max() - startIdx)) {
116 return;
117 }
118
119 intptr_t oldCount = numOperands - startIdx;
120 intptr_t newNumOperands = startIdx + count;
121
122 std::vector<MlirValue> newOperands(newNumOperands);
123
124 // Copy operands before this variadic group
125 for (intptr_t i = 0; i < startIdx; ++i) {
126 newOperands[i] = mlirOperationGetOperand(op, i);
127 }
128
129 // Copy new variadic operands
130 for (intptr_t i = 0; i < count; ++i) {
131 newOperands[startIdx + i] = values[i];
132 }
133
134 // Copy operands after this variadic group
135 for (intptr_t i = startIdx + oldCount; i < numOperands; ++i) {
136 newOperands[i - oldCount + count] = mlirOperationGetOperand(op, i);
137 }
138
139 mlirOperationSetOperands(op, newNumOperands, newOperands.data());
140}
141
142MlirAttribute llzkArray_CreateArrayOpGetNumDimsPerMap(MlirOperation op) {
143 return mlirOperationGetAttributeByName(op, mlirStringRefCreateFromCString("numDimsPerMap"));
144}
145
146void llzkArray_CreateArrayOpSetNumDimsPerMap(MlirOperation op, MlirAttribute attr) {
147 mlirOperationSetAttributeByName(op, mlirStringRefCreateFromCString("numDimsPerMap"), attr);
148}
149
150MlirAttribute llzkArray_CreateArrayOpGetMapOpGroupSizes(MlirOperation op) {
151 return mlirOperationGetAttributeByName(op, mlirStringRefCreateFromCString("mapOpGroupSizes"));
152}
153
154void llzkArray_CreateArrayOpSetMapOpGroupSizes(MlirOperation op, MlirAttribute attr) {
155 mlirOperationSetAttributeByName(op, mlirStringRefCreateFromCString("mapOpGroupSizes"), attr);
156}
157
158MlirValue llzkArray_CreateArrayOpGetResult(MlirOperation op) {
159 return mlirOperationGetResult(op, 0);
160}
161
162MlirOperation llzkArray_ExtractArrayOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue arr_ref, intptr_t indicesSize, MlirValue const *indices) {
163 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString("array.extract"), location);
164 mlirOperationStateAddResults(&state, 1, &resultType);
165 mlirOperationStateAddOperands(&state, 1, &arr_ref);
166 mlirOperationStateAddOperands(&state, indicesSize, indices);
167
168 return mlirOpBuilderInsert(builder, mlirOperationCreate(&state));
169}
170
172 return llvm::isa<ExtractArrayOp>(unwrap(inp));
173}
174
175MlirValue llzkArray_ExtractArrayOpGetArrRef(MlirOperation op) {
176 return mlirOperationGetOperand(op, 0);
177}
178
179void llzkArray_ExtractArrayOpSetArrRef(MlirOperation op, MlirValue value) {
180 mlirOperationSetOperand(op, 0, value);
181}
182
183intptr_t llzkArray_ExtractArrayOpGetIndicesCount(MlirOperation op) {
184 intptr_t count = mlirOperationGetNumOperands(op);
185 assert(count >= 1 && "operand count less than start index");
186 return count - 1;
187}
188
189MlirValue llzkArray_ExtractArrayOpGetIndicesAt(MlirOperation op, intptr_t index) {
190 return mlirOperationGetOperand(op, 1 + index);
191}
192
193void llzkArray_ExtractArrayOpSetIndices(MlirOperation op, intptr_t count, MlirValue const *values) {
194 intptr_t numOperands = mlirOperationGetNumOperands(op);
195 intptr_t startIdx = 1;
196
197 // Validate bounds
198 if (startIdx < 0 || startIdx > numOperands) {
199 return;
200 }
201 if (count < 0 || count > (std::numeric_limits<intptr_t>::max() - startIdx)) {
202 return;
203 }
204
205 intptr_t oldCount = numOperands - startIdx;
206 intptr_t newNumOperands = startIdx + count;
207
208 std::vector<MlirValue> newOperands(newNumOperands);
209
210 // Copy operands before this variadic group
211 for (intptr_t i = 0; i < startIdx; ++i) {
212 newOperands[i] = mlirOperationGetOperand(op, i);
213 }
214
215 // Copy new variadic operands
216 for (intptr_t i = 0; i < count; ++i) {
217 newOperands[startIdx + i] = values[i];
218 }
219
220 // Copy operands after this variadic group
221 for (intptr_t i = startIdx + oldCount; i < numOperands; ++i) {
222 newOperands[i - oldCount + count] = mlirOperationGetOperand(op, i);
223 }
224
225 mlirOperationSetOperands(op, newNumOperands, newOperands.data());
226}
227
228MlirValue llzkArray_ExtractArrayOpGetResult(MlirOperation op) {
229 return mlirOperationGetResult(op, 0);
230}
231
232MlirType llzkArray_ExtractArrayOpGetArrRefType(MlirOperation inp) {
233 return wrap(llvm::cast<ExtractArrayOp>(unwrap(inp)).getArrRefType());
234}
235
236MlirOperation llzkArray_InsertArrayOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue arr_ref, intptr_t indicesSize, MlirValue const *indices, MlirValue rvalue) {
237 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString("array.insert"), location);
238 mlirOperationStateAddOperands(&state, 1, &arr_ref);
239 mlirOperationStateAddOperands(&state, indicesSize, indices);
240 mlirOperationStateAddOperands(&state, 1, &rvalue);
241
242 return mlirOpBuilderInsert(builder, mlirOperationCreate(&state));
243}
244
246 return llvm::isa<InsertArrayOp>(unwrap(inp));
247}
248
249MlirValue llzkArray_InsertArrayOpGetArrRef(MlirOperation op) {
250 return mlirOperationGetOperand(op, 0);
251}
252
253void llzkArray_InsertArrayOpSetArrRef(MlirOperation op, MlirValue value) {
254 mlirOperationSetOperand(op, 0, value);
255}
256
257intptr_t llzkArray_InsertArrayOpGetIndicesCount(MlirOperation op) {
258 intptr_t count = mlirOperationGetNumOperands(op);
259 assert(count >= 1 && "operand count less than start index");
260 return count - 1;
261}
262
263MlirValue llzkArray_InsertArrayOpGetIndicesAt(MlirOperation op, intptr_t index) {
264 return mlirOperationGetOperand(op, 1 + index);
265}
266
267void llzkArray_InsertArrayOpSetIndices(MlirOperation op, intptr_t count, MlirValue const *values) {
268 intptr_t numOperands = mlirOperationGetNumOperands(op);
269 intptr_t startIdx = 1;
270
271 // Validate bounds
272 if (startIdx < 0 || startIdx > numOperands) {
273 return;
274 }
275 if (count < 0 || count > (std::numeric_limits<intptr_t>::max() - startIdx)) {
276 return;
277 }
278
279 intptr_t oldCount = numOperands - startIdx;
280 intptr_t newNumOperands = startIdx + count;
281
282 std::vector<MlirValue> newOperands(newNumOperands);
283
284 // Copy operands before this variadic group
285 for (intptr_t i = 0; i < startIdx; ++i) {
286 newOperands[i] = mlirOperationGetOperand(op, i);
287 }
288
289 // Copy new variadic operands
290 for (intptr_t i = 0; i < count; ++i) {
291 newOperands[startIdx + i] = values[i];
292 }
293
294 // Copy operands after this variadic group
295 for (intptr_t i = startIdx + oldCount; i < numOperands; ++i) {
296 newOperands[i - oldCount + count] = mlirOperationGetOperand(op, i);
297 }
298
299 mlirOperationSetOperands(op, newNumOperands, newOperands.data());
300}
301
302MlirValue llzkArray_InsertArrayOpGetRvalue(MlirOperation op) {
303 return mlirOperationGetOperand(op, 2);
304}
305
306void llzkArray_InsertArrayOpSetRvalue(MlirOperation op, MlirValue value) {
307 mlirOperationSetOperand(op, 2, value);
308}
309
310MlirType llzkArray_InsertArrayOpGetArrRefType(MlirOperation inp) {
311 return wrap(llvm::cast<InsertArrayOp>(unwrap(inp)).getArrRefType());
312}
313
314MlirOperation llzkArray_ReadArrayOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue arr_ref, intptr_t indicesSize, MlirValue const *indices) {
315 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString("array.read"), location);
316 mlirOperationStateAddResults(&state, 1, &resultType);
317 mlirOperationStateAddOperands(&state, 1, &arr_ref);
318 mlirOperationStateAddOperands(&state, indicesSize, indices);
319
320 return mlirOpBuilderInsert(builder, mlirOperationCreate(&state));
321}
322
323bool llzkOperationIsA_Array_ReadArrayOp(MlirOperation inp) {
324 return llvm::isa<ReadArrayOp>(unwrap(inp));
325}
326
327MlirValue llzkArray_ReadArrayOpGetArrRef(MlirOperation op) {
328 return mlirOperationGetOperand(op, 0);
329}
330
331void llzkArray_ReadArrayOpSetArrRef(MlirOperation op, MlirValue value) {
332 mlirOperationSetOperand(op, 0, value);
333}
334
335intptr_t llzkArray_ReadArrayOpGetIndicesCount(MlirOperation op) {
336 intptr_t count = mlirOperationGetNumOperands(op);
337 assert(count >= 1 && "operand count less than start index");
338 return count - 1;
339}
340
341MlirValue llzkArray_ReadArrayOpGetIndicesAt(MlirOperation op, intptr_t index) {
342 return mlirOperationGetOperand(op, 1 + index);
343}
344
345void llzkArray_ReadArrayOpSetIndices(MlirOperation op, intptr_t count, MlirValue const *values) {
346 intptr_t numOperands = mlirOperationGetNumOperands(op);
347 intptr_t startIdx = 1;
348
349 // Validate bounds
350 if (startIdx < 0 || startIdx > numOperands) {
351 return;
352 }
353 if (count < 0 || count > (std::numeric_limits<intptr_t>::max() - startIdx)) {
354 return;
355 }
356
357 intptr_t oldCount = numOperands - startIdx;
358 intptr_t newNumOperands = startIdx + count;
359
360 std::vector<MlirValue> newOperands(newNumOperands);
361
362 // Copy operands before this variadic group
363 for (intptr_t i = 0; i < startIdx; ++i) {
364 newOperands[i] = mlirOperationGetOperand(op, i);
365 }
366
367 // Copy new variadic operands
368 for (intptr_t i = 0; i < count; ++i) {
369 newOperands[startIdx + i] = values[i];
370 }
371
372 // Copy operands after this variadic group
373 for (intptr_t i = startIdx + oldCount; i < numOperands; ++i) {
374 newOperands[i - oldCount + count] = mlirOperationGetOperand(op, i);
375 }
376
377 mlirOperationSetOperands(op, newNumOperands, newOperands.data());
378}
379
380MlirValue llzkArray_ReadArrayOpGetResult(MlirOperation op) {
381 return mlirOperationGetResult(op, 0);
382}
383
384MlirType llzkArray_ReadArrayOpGetArrRefType(MlirOperation inp) {
385 return wrap(llvm::cast<ReadArrayOp>(unwrap(inp)).getArrRefType());
386}
387
388MlirOperation llzkArray_WriteArrayOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue arr_ref, intptr_t indicesSize, MlirValue const *indices, MlirValue rvalue) {
389 MlirOperationState state = mlirOperationStateGet(mlirStringRefCreateFromCString("array.write"), location);
390 mlirOperationStateAddOperands(&state, 1, &arr_ref);
391 mlirOperationStateAddOperands(&state, indicesSize, indices);
392 mlirOperationStateAddOperands(&state, 1, &rvalue);
393
394 return mlirOpBuilderInsert(builder, mlirOperationCreate(&state));
395}
396
397bool llzkOperationIsA_Array_WriteArrayOp(MlirOperation inp) {
398 return llvm::isa<WriteArrayOp>(unwrap(inp));
399}
400
401MlirValue llzkArray_WriteArrayOpGetArrRef(MlirOperation op) {
402 return mlirOperationGetOperand(op, 0);
403}
404
405void llzkArray_WriteArrayOpSetArrRef(MlirOperation op, MlirValue value) {
406 mlirOperationSetOperand(op, 0, value);
407}
408
409intptr_t llzkArray_WriteArrayOpGetIndicesCount(MlirOperation op) {
410 intptr_t count = mlirOperationGetNumOperands(op);
411 assert(count >= 1 && "operand count less than start index");
412 return count - 1;
413}
414
415MlirValue llzkArray_WriteArrayOpGetIndicesAt(MlirOperation op, intptr_t index) {
416 return mlirOperationGetOperand(op, 1 + index);
417}
418
419void llzkArray_WriteArrayOpSetIndices(MlirOperation op, intptr_t count, MlirValue const *values) {
420 intptr_t numOperands = mlirOperationGetNumOperands(op);
421 intptr_t startIdx = 1;
422
423 // Validate bounds
424 if (startIdx < 0 || startIdx > numOperands) {
425 return;
426 }
427 if (count < 0 || count > (std::numeric_limits<intptr_t>::max() - startIdx)) {
428 return;
429 }
430
431 intptr_t oldCount = numOperands - startIdx;
432 intptr_t newNumOperands = startIdx + count;
433
434 std::vector<MlirValue> newOperands(newNumOperands);
435
436 // Copy operands before this variadic group
437 for (intptr_t i = 0; i < startIdx; ++i) {
438 newOperands[i] = mlirOperationGetOperand(op, i);
439 }
440
441 // Copy new variadic operands
442 for (intptr_t i = 0; i < count; ++i) {
443 newOperands[startIdx + i] = values[i];
444 }
445
446 // Copy operands after this variadic group
447 for (intptr_t i = startIdx + oldCount; i < numOperands; ++i) {
448 newOperands[i - oldCount + count] = mlirOperationGetOperand(op, i);
449 }
450
451 mlirOperationSetOperands(op, newNumOperands, newOperands.data());
452}
453
454MlirValue llzkArray_WriteArrayOpGetRvalue(MlirOperation op) {
455 return mlirOperationGetOperand(op, 2);
456}
457
458void llzkArray_WriteArrayOpSetRvalue(MlirOperation op, MlirValue value) {
459 mlirOperationSetOperand(op, 2, value);
460}
461
462MlirType llzkArray_WriteArrayOpGetArrRefType(MlirOperation inp) {
463 return wrap(llvm::cast<WriteArrayOp>(unwrap(inp)).getArrRefType());
464}
bool llzkOperationIsA_Array_InsertArrayOp(MlirOperation inp)
Returns true if the Operation is a llzk::array::InsertArrayOp.
MlirValue llzkArray_InsertArrayOpGetIndicesAt(MlirOperation op, intptr_t index)
Get Indices operand at index from llzk::array::InsertArrayOp Operation.
MlirValue llzkArray_WriteArrayOpGetRvalue(MlirOperation op)
Get Rvalue operand from llzk::array::WriteArrayOp Operation.
void llzkArray_CreateArrayOpSetNumDimsPerMap(MlirOperation op, MlirAttribute attr)
Set NumDimsPerMap attribute of llzk::array::CreateArrayOp Operation.
MlirValue llzkArray_ReadArrayOpGetArrRef(MlirOperation op)
Get ArrRef operand from llzk::array::ReadArrayOp Operation.
MlirType llzkArray_WriteArrayOpGetArrRefType(MlirOperation inp)
Gets the type of the referenced base array.
void llzkArray_InsertArrayOpSetRvalue(MlirOperation op, MlirValue value)
Set Rvalue operand of llzk::array::InsertArrayOp Operation.
void llzkArray_ArrayLengthOpSetArrRef(MlirOperation op, MlirValue value)
Set ArrRef operand of llzk::array::ArrayLengthOp Operation.
intptr_t llzkArray_CreateArrayOpGetElementsCount(MlirOperation op)
Get number of Elements operands in llzk::array::CreateArrayOp Operation.
void llzkArray_ExtractArrayOpSetArrRef(MlirOperation op, MlirValue value)
Set ArrRef operand of llzk::array::ExtractArrayOp Operation.
bool llzkOperationIsA_Array_ExtractArrayOp(MlirOperation inp)
Returns true if the Operation is a llzk::array::ExtractArrayOp.
void llzkArray_ArrayLengthOpSetDim(MlirOperation op, MlirValue value)
Set Dim operand of llzk::array::ArrayLengthOp Operation.
void llzkArray_CreateArrayOpSetMapOperands(MlirOperation op, intptr_t count, MlirValue const *values)
Set MapOperands operands of llzk::array::CreateArrayOp Operation.
MlirOperation llzkArray_ArrayLengthOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue arr_ref, MlirValue dim)
Build a llzk::array::ArrayLengthOp Operation.
void llzkArray_CreateArrayOpSetElements(MlirOperation op, intptr_t count, MlirValue const *values)
Set Elements operands of llzk::array::CreateArrayOp Operation.
void llzkArray_WriteArrayOpSetRvalue(MlirOperation op, MlirValue value)
Set Rvalue operand of llzk::array::WriteArrayOp Operation.
MlirValue llzkArray_InsertArrayOpGetRvalue(MlirOperation op)
Get Rvalue operand from llzk::array::InsertArrayOp Operation.
bool llzkOperationIsA_Array_ReadArrayOp(MlirOperation inp)
Returns true if the Operation is a llzk::array::ReadArrayOp.
intptr_t llzkArray_WriteArrayOpGetIndicesCount(MlirOperation op)
Get number of Indices operands in llzk::array::WriteArrayOp Operation.
MlirType llzkArray_ReadArrayOpGetArrRefType(MlirOperation inp)
Gets the type of the referenced base array.
MlirValue llzkArray_CreateArrayOpGetResult(MlirOperation op)
Get Result result from llzk::array::CreateArrayOp Operation.
intptr_t llzkArray_ReadArrayOpGetIndicesCount(MlirOperation op)
Get number of Indices operands in llzk::array::ReadArrayOp Operation.
void llzkArray_ReadArrayOpSetIndices(MlirOperation op, intptr_t count, MlirValue const *values)
Set Indices operands of llzk::array::ReadArrayOp Operation.
MlirValue llzkArray_ArrayLengthOpGetLength(MlirOperation op)
Get Length result from llzk::array::ArrayLengthOp Operation.
void llzkArray_InsertArrayOpSetIndices(MlirOperation op, intptr_t count, MlirValue const *values)
Set Indices operands of llzk::array::InsertArrayOp Operation.
MlirValue llzkArray_ExtractArrayOpGetArrRef(MlirOperation op)
Get ArrRef operand from llzk::array::ExtractArrayOp Operation.
intptr_t llzkArray_ExtractArrayOpGetIndicesCount(MlirOperation op)
Get number of Indices operands in llzk::array::ExtractArrayOp Operation.
MlirType llzkArray_ArrayLengthOpGetArrRefType(MlirOperation inp)
Gets the type of the referenced base array.
MlirOperation llzkArray_InsertArrayOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue arr_ref, intptr_t indicesSize, MlirValue const *indices, MlirValue rvalue)
Build a llzk::array::InsertArrayOp Operation.
MlirOperation llzkArray_ExtractArrayOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue arr_ref, intptr_t indicesSize, MlirValue const *indices)
Build a llzk::array::ExtractArrayOp Operation.
MlirValue llzkArray_ExtractArrayOpGetResult(MlirOperation op)
Get Result result from llzk::array::ExtractArrayOp Operation.
void llzkArray_ExtractArrayOpSetIndices(MlirOperation op, intptr_t count, MlirValue const *values)
Set Indices operands of llzk::array::ExtractArrayOp Operation.
MlirType llzkArray_InsertArrayOpGetArrRefType(MlirOperation inp)
Gets the type of the referenced base array.
MlirValue llzkArray_CreateArrayOpGetMapOperandsAt(MlirOperation op, intptr_t index)
Get MapOperands operand at index from llzk::array::CreateArrayOp Operation.
intptr_t llzkArray_InsertArrayOpGetIndicesCount(MlirOperation op)
Get number of Indices operands in llzk::array::InsertArrayOp Operation.
MlirAttribute llzkArray_CreateArrayOpGetMapOpGroupSizes(MlirOperation op)
Get MapOpGroupSizes attribute from llzk::array::CreateArrayOp Operation.
void llzkArray_WriteArrayOpSetIndices(MlirOperation op, intptr_t count, MlirValue const *values)
Set Indices operands of llzk::array::WriteArrayOp Operation.
MlirValue llzkArray_ExtractArrayOpGetIndicesAt(MlirOperation op, intptr_t index)
Get Indices operand at index from llzk::array::ExtractArrayOp Operation.
MlirAttribute llzkArray_CreateArrayOpGetNumDimsPerMap(MlirOperation op)
Get NumDimsPerMap attribute from llzk::array::CreateArrayOp Operation.
bool llzkOperationIsA_Array_WriteArrayOp(MlirOperation inp)
Returns true if the Operation is a llzk::array::WriteArrayOp.
void llzkArray_ReadArrayOpSetArrRef(MlirOperation op, MlirValue value)
Set ArrRef operand of llzk::array::ReadArrayOp Operation.
intptr_t llzkArray_CreateArrayOpGetMapOperandsCount(MlirOperation op)
Get number of MapOperands operands in llzk::array::CreateArrayOp Operation.
MlirOperation llzkArray_ReadArrayOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType, MlirValue arr_ref, intptr_t indicesSize, MlirValue const *indices)
Build a llzk::array::ReadArrayOp Operation.
void llzkArray_WriteArrayOpSetArrRef(MlirOperation op, MlirValue value)
Set ArrRef operand of llzk::array::WriteArrayOp Operation.
MlirValue llzkArray_WriteArrayOpGetIndicesAt(MlirOperation op, intptr_t index)
Get Indices operand at index from llzk::array::WriteArrayOp Operation.
MlirOperation llzkArray_WriteArrayOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue arr_ref, intptr_t indicesSize, MlirValue const *indices, MlirValue rvalue)
Build a llzk::array::WriteArrayOp Operation.
MlirValue llzkArray_ArrayLengthOpGetArrRef(MlirOperation op)
Get ArrRef operand from llzk::array::ArrayLengthOp Operation.
MlirType llzkArray_ExtractArrayOpGetArrRefType(MlirOperation inp)
Gets the type of the referenced base array.
MlirValue llzkArray_WriteArrayOpGetArrRef(MlirOperation op)
Get ArrRef operand from llzk::array::WriteArrayOp Operation.
bool llzkOperationIsA_Array_CreateArrayOp(MlirOperation inp)
Returns true if the Operation is a llzk::array::CreateArrayOp.
void llzkArray_InsertArrayOpSetArrRef(MlirOperation op, MlirValue value)
Set ArrRef operand of llzk::array::InsertArrayOp Operation.
bool llzkOperationIsA_Array_ArrayLengthOp(MlirOperation inp)
Returns true if the Operation is a llzk::array::ArrayLengthOp.
MlirValue llzkArray_ReadArrayOpGetResult(MlirOperation op)
Get Result result from llzk::array::ReadArrayOp Operation.
MlirValue llzkArray_InsertArrayOpGetArrRef(MlirOperation op)
Get ArrRef operand from llzk::array::InsertArrayOp Operation.
void llzkArray_CreateArrayOpSetMapOpGroupSizes(MlirOperation op, MlirAttribute attr)
Set MapOpGroupSizes attribute of llzk::array::CreateArrayOp Operation.
MlirValue llzkArray_ReadArrayOpGetIndicesAt(MlirOperation op, intptr_t index)
Get Indices operand at index from llzk::array::ReadArrayOp Operation.
MlirValue llzkArray_CreateArrayOpGetElementsAt(MlirOperation op, intptr_t index)
Get Elements operand at index from llzk::array::CreateArrayOp Operation.
MlirValue llzkArray_ArrayLengthOpGetDim(MlirOperation op)
Get Dim operand from llzk::array::ArrayLengthOp Operation.
MlirOperation mlirOpBuilderInsert(MlirOpBuilder builder, MlirOperation op)
Inserts op at the current insertion point of builder and returns it.
Definition Builder.cpp:108