LLZK 2.1.1
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
Ops.capi.test.cpp.inc
Go to the documentation of this file.
1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* Op C API Tests *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* From: Ops.td *|
7|* *|
8\*===----------------------------------------------------------------------===*/
9
10class StructOperationLinkTests : public CAPITest {};
11
13TEST_F(StructOperationLinkTests, IsA_Struct_CreateStructOp) {
14 auto testOperation = createIndexOperation();
15
16 // This will always return false since `createIndex*` returns an MLIR builtin
17 EXPECT_FALSE(llzkOperationIsA_Struct_CreateStructOp(testOperation));
18
19 mlirOperationDestroy(testOperation);
20}
21
23TEST_F(StructOperationLinkTests, llzk_CreateStructOp_Build) {
24 // Returns an `arith.constant` op, which will never match the CreateStructOp dialect check.
25 auto testOp = createIndexOperation();
26
27 // This condition is always false, so the function is never actually called.
28 // We only verify it compiles and links correctly.
30 MlirOpBuilder builder = mlirOpBuilderCreate(context);
31 MlirLocation location = mlirLocationUnknownGet(context);
32 auto dummyValue = mlirOperationGetResult(testOp, 0);
33 auto resultType = createIndexType();
34
35 (void)llzkStruct_CreateStructOpBuild(builder, location, resultType);
36 // No need to destroy builder or op since this code never runs.
37 }
38
39 mlirOperationDestroy(testOp);
40}
41
42struct CreateStructOpBuildFuncHelper : public TestAnyBuildFuncHelper<CAPITest> {
43 virtual bool callIsA(MlirOperation op) override { return llzkOperationIsA_Struct_CreateStructOp(op); }
47 static std::unique_ptr<CreateStructOpBuildFuncHelper> get();
48
49protected:
51};
52
55TEST_F(CAPITest, CreateStructOp_build_pass) { CreateStructOpBuildFuncHelper::get()->run(*this); }
56
57TEST_F(StructOperationLinkTests, llzk_CreateStructOp_GetResult) {
58 auto testOp = createIndexOperation();
59
62 }
63
64 mlirOperationDestroy(testOp);
65}
66
68TEST_F(StructOperationLinkTests, IsA_Struct_MemberDefOp) {
69 auto testOperation = createIndexOperation();
70
71 // This will always return false since `createIndex*` returns an MLIR builtin
72 EXPECT_FALSE(llzkOperationIsA_Struct_MemberDefOp(testOperation));
73
74 mlirOperationDestroy(testOperation);
75}
76
77TEST_F(StructOperationLinkTests, llzk_MemberDefOp_GetSymNameAttr) {
78 auto testOp = createIndexOperation();
79
82 }
83
84 mlirOperationDestroy(testOp);
85}
86
87TEST_F(StructOperationLinkTests, llzk_MemberDefOp_SetSymNameAttr) {
88 auto testOp = createIndexOperation();
89
91 llzkStruct_MemberDefOpSetSymName(testOp, createIndexAttribute());
92 }
93
94 mlirOperationDestroy(testOp);
95}
96
97TEST_F(StructOperationLinkTests, llzk_MemberDefOp_GetTypeAttr) {
98 auto testOp = createIndexOperation();
99
101 (void)llzkStruct_MemberDefOpGetType(testOp);
102 }
103
104 mlirOperationDestroy(testOp);
105}
106
107TEST_F(StructOperationLinkTests, llzk_MemberDefOp_SetTypeAttr) {
108 auto testOp = createIndexOperation();
109
111 llzkStruct_MemberDefOpSetType(testOp, createIndexAttribute());
112 }
113
114 mlirOperationDestroy(testOp);
115}
116
117TEST_F(StructOperationLinkTests, llzk_MemberDefOp_GetColumnAttr) {
118 auto testOp = createIndexOperation();
119
122 }
123
124 mlirOperationDestroy(testOp);
125}
126
127TEST_F(StructOperationLinkTests, llzk_MemberDefOp_SetColumnAttr) {
128 auto testOp = createIndexOperation();
129
131 llzkStruct_MemberDefOpSetColumn(testOp, createIndexAttribute());
132 }
133
134 mlirOperationDestroy(testOp);
135}
136
137TEST_F(StructOperationLinkTests, llzk_MemberDefOp_GetSignalAttr) {
138 auto testOp = createIndexOperation();
139
142 }
143
144 mlirOperationDestroy(testOp);
145}
146
147TEST_F(StructOperationLinkTests, llzk_MemberDefOp_SetSignalAttr) {
148 auto testOp = createIndexOperation();
149
151 llzkStruct_MemberDefOpSetSignal(testOp, createIndexAttribute());
152 }
153
154 mlirOperationDestroy(testOp);
155}
156
158TEST_F(StructOperationLinkTests, llzk_MemberDefOp_SetPublicAttr) {
159 auto testOperation = createIndexOperation();
160
161 if (llzkOperationIsA_Struct_MemberDefOp(testOperation)) {
162 bool newValue = false;
163
164 (void)llzkStruct_MemberDefOpSetPublicAttr(testOperation, newValue);
165 }
166
167 mlirOperationDestroy(testOperation);
168}
169
171TEST_F(StructOperationLinkTests, llzk_MemberDefOp_HasPublicAttr) {
172 auto testOperation = createIndexOperation();
173
174 if (llzkOperationIsA_Struct_MemberDefOp(testOperation)) {
175
176 (void)llzkStruct_MemberDefOpHasPublicAttr(testOperation);
177 }
178
179 mlirOperationDestroy(testOperation);
180}
181
183TEST_F(StructOperationLinkTests, IsA_Struct_MemberReadOp) {
184 auto testOperation = createIndexOperation();
185
186 // This will always return false since `createIndex*` returns an MLIR builtin
187 EXPECT_FALSE(llzkOperationIsA_Struct_MemberReadOp(testOperation));
188
189 mlirOperationDestroy(testOperation);
190}
191
192TEST_F(StructOperationLinkTests, llzk_MemberReadOp_GetComponent) {
193 auto testOp = createIndexOperation();
194
197 }
198
199 mlirOperationDestroy(testOp);
200}
201
202TEST_F(StructOperationLinkTests, llzk_MemberReadOp_SetComponent) {
203 auto testOp = createIndexOperation();
204
206 auto dummyValue = mlirOperationGetResult(testOp, 0);
207 llzkStruct_MemberReadOpSetComponent(testOp, dummyValue);
208 }
209
210 mlirOperationDestroy(testOp);
211}
212
213TEST_F(StructOperationLinkTests, llzk_MemberReadOp_GetMapOperandsCount) {
214 auto testOp = createIndexOperation();
215
218 }
219
220 mlirOperationDestroy(testOp);
221}
222
223TEST_F(StructOperationLinkTests, llzk_MemberReadOp_GetMapOperandsAt) {
224 auto testOp = createIndexOperation();
225
228 }
229
230 mlirOperationDestroy(testOp);
231}
232
233TEST_F(StructOperationLinkTests, llzk_MemberReadOp_SetMapOperands_VariadicOfVariadic) {
234 auto testOp = createIndexOperation();
235
237 auto dummyValue = mlirOperationGetResult(testOp, 0);
238 MlirValueRange groups[1];
239 groups[0].values = &dummyValue;
240 groups[0].size = 1;
241 llzkStruct_MemberReadOpSetMapOperands(testOp, 1, groups);
242 }
243
244 mlirOperationDestroy(testOp);
245}
246
247TEST_F(StructOperationLinkTests, llzk_MemberReadOp_GetMemberNameAttr) {
248 auto testOp = createIndexOperation();
249
252 }
253
254 mlirOperationDestroy(testOp);
255}
256
257TEST_F(StructOperationLinkTests, llzk_MemberReadOp_SetMemberNameAttr) {
258 auto testOp = createIndexOperation();
259
261 llzkStruct_MemberReadOpSetMemberName(testOp, createIndexAttribute());
262 }
263
264 mlirOperationDestroy(testOp);
265}
266
267TEST_F(StructOperationLinkTests, llzk_MemberReadOp_GetTableOffsetAttr) {
268 auto testOp = createIndexOperation();
269
272 }
273
274 mlirOperationDestroy(testOp);
275}
276
277TEST_F(StructOperationLinkTests, llzk_MemberReadOp_SetTableOffsetAttr) {
278 auto testOp = createIndexOperation();
279
281 llzkStruct_MemberReadOpSetTableOffset(testOp, createIndexAttribute());
282 }
283
284 mlirOperationDestroy(testOp);
285}
286
287TEST_F(StructOperationLinkTests, llzk_MemberReadOp_GetNumDimsPerMapAttr) {
288 auto testOp = createIndexOperation();
289
292 }
293
294 mlirOperationDestroy(testOp);
295}
296
297TEST_F(StructOperationLinkTests, llzk_MemberReadOp_SetNumDimsPerMapAttr) {
298 auto testOp = createIndexOperation();
299
301 llzkStruct_MemberReadOpSetNumDimsPerMap(testOp, createIndexAttribute());
302 }
303
304 mlirOperationDestroy(testOp);
305}
306
307TEST_F(StructOperationLinkTests, llzk_MemberReadOp_GetMapOpGroupSizesAttr) {
308 auto testOp = createIndexOperation();
309
312 }
313
314 mlirOperationDestroy(testOp);
315}
316
317TEST_F(StructOperationLinkTests, llzk_MemberReadOp_SetMapOpGroupSizesAttr) {
318 auto testOp = createIndexOperation();
319
321 llzkStruct_MemberReadOpSetMapOpGroupSizes(testOp, createIndexAttribute());
322 }
323
324 mlirOperationDestroy(testOp);
325}
326
327TEST_F(StructOperationLinkTests, llzk_MemberReadOp_GetVal) {
328 auto testOp = createIndexOperation();
329
331 (void)llzkStruct_MemberReadOpGetVal(testOp);
332 }
333
334 mlirOperationDestroy(testOp);
335}
336
338TEST_F(StructOperationLinkTests, IsA_Struct_MemberWriteOp) {
339 auto testOperation = createIndexOperation();
340
341 // This will always return false since `createIndex*` returns an MLIR builtin
342 EXPECT_FALSE(llzkOperationIsA_Struct_MemberWriteOp(testOperation));
343
344 mlirOperationDestroy(testOperation);
345}
346
348TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_Build) {
349 // Returns an `arith.constant` op, which will never match the MemberWriteOp dialect check.
350 auto testOp = createIndexOperation();
351
352 // This condition is always false, so the function is never actually called.
353 // We only verify it compiles and links correctly.
355 MlirOpBuilder builder = mlirOpBuilderCreate(context);
356 MlirLocation location = mlirLocationUnknownGet(context);
357 auto dummyValue = mlirOperationGetResult(testOp, 0);
358 auto member_nameAttr = createIndexAttribute();
359
360 (void)llzkStruct_MemberWriteOpBuild(builder, location, dummyValue, dummyValue, member_nameAttr);
361 // No need to destroy builder or op since this code never runs.
362 }
363
364 mlirOperationDestroy(testOp);
365}
366
367struct MemberWriteOpBuildFuncHelper : public TestAnyBuildFuncHelper<CAPITest> {
368 virtual bool callIsA(MlirOperation op) override { return llzkOperationIsA_Struct_MemberWriteOp(op); }
372 static std::unique_ptr<MemberWriteOpBuildFuncHelper> get();
373
374protected:
376};
377
380TEST_F(CAPITest, MemberWriteOp_build_pass) { MemberWriteOpBuildFuncHelper::get()->run(*this); }
381
382TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_GetComponent) {
383 auto testOp = createIndexOperation();
384
387 }
388
389 mlirOperationDestroy(testOp);
390}
391
392TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_SetComponent) {
393 auto testOp = createIndexOperation();
394
396 auto dummyValue = mlirOperationGetResult(testOp, 0);
397 llzkStruct_MemberWriteOpSetComponent(testOp, dummyValue);
398 }
399
400 mlirOperationDestroy(testOp);
401}
402
403TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_GetVal) {
404 auto testOp = createIndexOperation();
405
407 (void)llzkStruct_MemberWriteOpGetVal(testOp);
408 }
409
410 mlirOperationDestroy(testOp);
411}
412
413TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_SetVal) {
414 auto testOp = createIndexOperation();
415
417 auto dummyValue = mlirOperationGetResult(testOp, 0);
418 llzkStruct_MemberWriteOpSetVal(testOp, dummyValue);
419 }
420
421 mlirOperationDestroy(testOp);
422}
423
424TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_GetMemberNameAttr) {
425 auto testOp = createIndexOperation();
426
429 }
430
431 mlirOperationDestroy(testOp);
432}
433
434TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_SetMemberNameAttr) {
435 auto testOp = createIndexOperation();
436
438 llzkStruct_MemberWriteOpSetMemberName(testOp, createIndexAttribute());
439 }
440
441 mlirOperationDestroy(testOp);
442}
443
445TEST_F(StructOperationLinkTests, IsA_Struct_StructDefOp) {
446 auto testOperation = createIndexOperation();
447
448 // This will always return false since `createIndex*` returns an MLIR builtin
449 EXPECT_FALSE(llzkOperationIsA_Struct_StructDefOp(testOperation));
450
451 mlirOperationDestroy(testOperation);
452}
453
455TEST_F(StructOperationLinkTests, llzk_StructDefOp_Build) {
456 // Returns an `arith.constant` op, which will never match the StructDefOp dialect check.
457 auto testOp = createIndexOperation();
458
459 // This condition is always false, so the function is never actually called.
460 // We only verify it compiles and links correctly.
462 MlirOpBuilder builder = mlirOpBuilderCreate(context);
463 MlirLocation location = mlirLocationUnknownGet(context);
464 auto dummyValue = mlirOperationGetResult(testOp, 0);
465 auto sym_nameAttr = mlirOperationGetName(testOp);
466
467 (void)llzkStruct_StructDefOpBuild(builder, location, sym_nameAttr);
468 // No need to destroy builder or op since this code never runs.
469 }
470
471 mlirOperationDestroy(testOp);
472}
473
474struct StructDefOpBuildFuncHelper : public TestAnyBuildFuncHelper<CAPITest> {
475 virtual bool callIsA(MlirOperation op) override { return llzkOperationIsA_Struct_StructDefOp(op); }
479 static std::unique_ptr<StructDefOpBuildFuncHelper> get();
480
481protected:
483};
484
487TEST_F(CAPITest, StructDefOp_build_pass) { StructDefOpBuildFuncHelper::get()->run(*this); }
488
489TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetSymNameAttr) {
490 auto testOp = createIndexOperation();
491
494 }
495
496 mlirOperationDestroy(testOp);
497}
498
499TEST_F(StructOperationLinkTests, llzk_StructDefOp_SetSymNameAttr) {
500 auto testOp = createIndexOperation();
501
503 llzkStruct_StructDefOpSetSymName(testOp, createIndexAttribute());
504 }
505
506 mlirOperationDestroy(testOp);
507}
508
509TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetBodyRegionRegion) {
510 auto testOp = createIndexOperation();
511
514 }
515
516 mlirOperationDestroy(testOp);
517}
518
520TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetComputeFuncOp) {
521 auto testOperation = createIndexOperation();
522
523 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
524
525 (void)llzkStruct_StructDefOpGetComputeFuncOp(testOperation);
526 }
527
528 mlirOperationDestroy(testOperation);
529}
530
532TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetProductFuncOp) {
533 auto testOperation = createIndexOperation();
534
535 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
536
537 (void)llzkStruct_StructDefOpGetProductFuncOp(testOperation);
538 }
539
540 mlirOperationDestroy(testOperation);
541}
542
544TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetMemberDef) {
545 auto testOperation = createIndexOperation();
546
547 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
548 MlirIdentifier memberName = {};
549
550 (void)llzkStruct_StructDefOpGetMemberDef(testOperation, memberName);
551 }
552
553 mlirOperationDestroy(testOperation);
554}
555
557TEST_F(StructOperationLinkTests, llzk_StructDefOp_HasColumns) {
558 auto testOperation = createIndexOperation();
559
560 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
561
562 (void)llzkStruct_StructDefOpHasColumns(testOperation);
563 }
564
565 mlirOperationDestroy(testOperation);
566}
567
569TEST_F(StructOperationLinkTests, llzk_StructDefOp_HasComputeConstrain) {
570 auto testOperation = createIndexOperation();
571
572 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
573
575 }
576
577 mlirOperationDestroy(testOperation);
578}
579
581TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetConstrainFuncOp) {
582 auto testOperation = createIndexOperation();
583
584 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
585
586 (void)llzkStruct_StructDefOpGetConstrainFuncOp(testOperation);
587 }
588
589 mlirOperationDestroy(testOperation);
590}
591
593TEST_F(StructOperationLinkTests, llzk_StructDefOp_HasTemplateSymbolBindings) {
594 auto testOperation = createIndexOperation();
595
596 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
597
599 }
600
601 mlirOperationDestroy(testOperation);
602}
603
605TEST_F(StructOperationLinkTests, llzk_StructDefOp_HasSignals) {
606 auto testOperation = createIndexOperation();
607
608 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
609
610 (void)llzkStruct_StructDefOpHasSignals(testOperation);
611 }
612
613 mlirOperationDestroy(testOperation);
614}
615
617TEST_F(StructOperationLinkTests, llzk_StructDefOp_IsMainComponent) {
618 auto testOperation = createIndexOperation();
619
620 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
621
622 (void)llzkStruct_StructDefOpIsMainComponent(testOperation);
623 }
624
625 mlirOperationDestroy(testOperation);
626}
627
629TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetFullyQualifiedName) {
630 auto testOperation = createIndexOperation();
631
632 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
633
635 }
636
637 mlirOperationDestroy(testOperation);
638}
TEST_F(ArrayOperationLinkTests, IsA_Array_ArrayLengthOp)
This test ensures llzkOperationIsA_Array_ArrayLengthOp links properly.
MlirOpBuilder mlirOpBuilderCreate(MlirContext ctx)
Creates a new OpBuilder for the given MLIR context.
Definition Builder.cpp:78
MlirAttribute llzkStruct_MemberReadOpGetNumDimsPerMap(MlirOperation op)
Get NumDimsPerMap attribute from llzk::component::MemberReadOp Operation.
MlirRegion llzkStruct_StructDefOpGetBodyRegion(MlirOperation op)
Get BodyRegion region from llzk::component::StructDefOp Operation.
MlirOperation llzkStruct_MemberWriteOpBuild(MlirOpBuilder builder, MlirLocation location, MlirValue component, MlirValue val, MlirAttribute member_name)
Build a llzk::component::MemberWriteOp Operation.
bool llzkOperationIsA_Struct_CreateStructOp(MlirOperation inp)
Returns true if the Operation is a llzk::component::CreateStructOp.
MlirOperation llzkStruct_StructDefOpBuild(MlirOpBuilder builder, MlirLocation location, MlirIdentifier sym_name)
Build a llzk::component::StructDefOp Operation.
MlirValue llzkStruct_MemberWriteOpGetVal(MlirOperation op)
Get Val operand from llzk::component::MemberWriteOp Operation.
MlirOperation llzkStruct_StructDefOpGetConstrainFuncOp(MlirOperation inp)
Gets the FuncDefOp that defines the constrain function in this structure, if present,...
bool llzkStruct_StructDefOpHasComputeConstrain(MlirOperation inp)
Returns true iff this structure defines compute and constrain functions.
void llzkStruct_MemberWriteOpSetVal(MlirOperation op, MlirValue value)
Set Val operand of llzk::component::MemberWriteOp Operation.
intptr_t llzkStruct_MemberReadOpGetMapOperandsCount(MlirOperation op)
Get number of MapOperands operands in llzk::component::MemberReadOp Operation.
MlirOperation llzkStruct_StructDefOpGetProductFuncOp(MlirOperation inp)
Gets the FuncDefOp that defines the product function in this structure, if present,...
bool llzkOperationIsA_Struct_MemberReadOp(MlirOperation inp)
Returns true if the Operation is a llzk::component::MemberReadOp.
MlirValue llzkStruct_MemberReadOpGetMapOperandsAt(MlirOperation op, intptr_t index)
Get MapOperands operand at index from llzk::component::MemberReadOp Operation.
void llzkStruct_MemberReadOpSetTableOffset(MlirOperation op, MlirAttribute attr)
Set TableOffset attribute of llzk::component::MemberReadOp Operation.
void llzkStruct_MemberDefOpSetSymName(MlirOperation op, MlirAttribute attr)
Set SymName attribute of llzk::component::MemberDefOp Operation.
void llzkStruct_MemberDefOpSetType(MlirOperation op, MlirAttribute attr)
Set Type attribute of llzk::component::MemberDefOp Operation.
void llzkStruct_MemberWriteOpSetComponent(MlirOperation op, MlirValue value)
Set Component operand of llzk::component::MemberWriteOp Operation.
MlirAttribute llzkStruct_StructDefOpGetSymName(MlirOperation op)
Get SymName attribute from llzk::component::StructDefOp Operation.
MlirValue llzkStruct_MemberWriteOpGetComponent(MlirOperation op)
Get Component operand from llzk::component::MemberWriteOp Operation.
void llzkStruct_MemberReadOpSetNumDimsPerMap(MlirOperation op, MlirAttribute attr)
Set NumDimsPerMap attribute of llzk::component::MemberReadOp Operation.
MlirAttribute llzkStruct_MemberReadOpGetMemberName(MlirOperation op)
Get MemberName attribute from llzk::component::MemberReadOp Operation.
bool llzkStruct_StructDefOpHasTemplateSymbolBindings(MlirOperation inp)
Return true iff the struct.def appears within a poly.template that defines constant parameters and/or...
MlirLogicalResult llzkStruct_StructDefOpHasSignals(MlirOperation inp)
Returns whether the struct defines members marked as signals.
MlirAttribute llzkStruct_MemberDefOpGetType(MlirOperation op)
Get Type attribute from llzk::component::MemberDefOp Operation.
void llzkStruct_MemberDefOpSetColumn(MlirOperation op, MlirAttribute attr)
Set Column attribute of llzk::component::MemberDefOp Operation.
void llzkStruct_MemberDefOpSetPublicAttr(MlirOperation inp, bool newValue)
setPublicAttr
bool llzkOperationIsA_Struct_MemberDefOp(MlirOperation inp)
Returns true if the Operation is a llzk::component::MemberDefOp.
MlirAttribute llzkStruct_MemberWriteOpGetMemberName(MlirOperation op)
Get MemberName attribute from llzk::component::MemberWriteOp Operation.
MlirAttribute llzkStruct_MemberReadOpGetTableOffset(MlirOperation op)
Get TableOffset attribute from llzk::component::MemberReadOp Operation.
void llzkStruct_MemberReadOpSetComponent(MlirOperation op, MlirValue value)
Set Component operand of llzk::component::MemberReadOp Operation.
MlirAttribute llzkStruct_MemberDefOpGetSignal(MlirOperation op)
Get Signal attribute from llzk::component::MemberDefOp Operation.
MlirValue llzkStruct_CreateStructOpGetResult(MlirOperation op)
Get Result result from llzk::component::CreateStructOp Operation.
MlirValue llzkStruct_MemberReadOpGetVal(MlirOperation op)
Get Val result from llzk::component::MemberReadOp Operation.
void llzkStruct_MemberDefOpSetSignal(MlirOperation op, MlirAttribute attr)
Set Signal attribute of llzk::component::MemberDefOp Operation.
void llzkStruct_MemberReadOpSetMapOpGroupSizes(MlirOperation op, MlirAttribute attr)
Set MapOpGroupSizes attribute of llzk::component::MemberReadOp Operation.
void llzkStruct_MemberWriteOpSetMemberName(MlirOperation op, MlirAttribute attr)
Set MemberName attribute of llzk::component::MemberWriteOp Operation.
MlirLogicalResult llzkStruct_StructDefOpHasColumns(MlirOperation inp)
Returns whether the struct defines members marked as columns.
bool llzkStruct_MemberDefOpHasPublicAttr(MlirOperation inp)
hasPublicAttr
bool llzkOperationIsA_Struct_MemberWriteOp(MlirOperation inp)
Returns true if the Operation is a llzk::component::MemberWriteOp.
bool llzkStruct_StructDefOpIsMainComponent(MlirOperation inp)
Return true iff this struct.def is the main struct. See llzk::MAIN_ATTR_NAME.
MlirOperation llzkStruct_CreateStructOpBuild(MlirOpBuilder builder, MlirLocation location, MlirType resultType)
Build a llzk::component::CreateStructOp Operation.
void llzkStruct_StructDefOpSetSymName(MlirOperation op, MlirAttribute attr)
Set SymName attribute of llzk::component::StructDefOp Operation.
MlirOperation llzkStruct_StructDefOpGetMemberDef(MlirOperation inp, MlirIdentifier memberName)
Gets the MemberDefOp that defines the member in this structure with the given name,...
void llzkStruct_MemberReadOpSetMemberName(MlirOperation op, MlirAttribute attr)
Set MemberName attribute of llzk::component::MemberReadOp Operation.
MlirAttribute llzkStruct_MemberDefOpGetColumn(MlirOperation op)
Get Column attribute from llzk::component::MemberDefOp Operation.
bool llzkOperationIsA_Struct_StructDefOp(MlirOperation inp)
Returns true if the Operation is a llzk::component::StructDefOp.
MlirValue llzkStruct_MemberReadOpGetComponent(MlirOperation op)
Get Component operand from llzk::component::MemberReadOp Operation.
MlirOperation llzkStruct_StructDefOpGetComputeFuncOp(MlirOperation inp)
Gets the FuncDefOp that defines the compute function in this structure, if present,...
MlirAttribute llzkStruct_StructDefOpGetFullyQualifiedName(MlirOperation inp)
Return the full name for this struct from the root module, including any surrounding module scopes.
MlirAttribute llzkStruct_MemberReadOpGetMapOpGroupSizes(MlirOperation op)
Get MapOpGroupSizes attribute from llzk::component::MemberReadOp Operation.
void llzkStruct_MemberReadOpSetMapOperands(MlirOperation op, intptr_t groupCount, MlirValueRange const *groups)
Set MapOperands operand groups of llzk::component::MemberReadOp Operation.
MlirAttribute llzkStruct_MemberDefOpGetSymName(MlirOperation op)
Get SymName attribute from llzk::component::MemberDefOp Operation.
static std::unique_ptr< CreateStructOpBuildFuncHelper > get()
This method must be implemented to return a subclass of CreateStructOpBuildFuncHelper that at least i...
virtual bool callIsA(MlirOperation op) override
virtual bool callIsA(MlirOperation op) override
static std::unique_ptr< MemberWriteOpBuildFuncHelper > get()
This method must be implemented to return a subclass of MemberWriteOpBuildFuncHelper that at least im...
Representation of an mlir::ValueRange
Definition Support.h:47
MlirValue const * values
Pointer to the first value in the range.
Definition Support.h:49
intptr_t size
Number of values in the range.
Definition Support.h:51
static std::unique_ptr< StructDefOpBuildFuncHelper > get()
This method must be implemented to return a subclass of StructDefOpBuildFuncHelper that at least impl...
virtual bool callIsA(MlirOperation op) override
StructDefOpBuildFuncHelper()=default