LLZK 2.0.0
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_Variadic) {
234 auto testOp = createIndexOperation();
235
237 auto dummyValue = mlirOperationGetResult(testOp, 0);
238 MlirValue values[] = {dummyValue};
239 llzkStruct_MemberReadOpSetMapOperands(testOp, 1, values);
240 }
241
242 mlirOperationDestroy(testOp);
243}
244
245TEST_F(StructOperationLinkTests, llzk_MemberReadOp_GetMemberNameAttr) {
246 auto testOp = createIndexOperation();
247
250 }
251
252 mlirOperationDestroy(testOp);
253}
254
255TEST_F(StructOperationLinkTests, llzk_MemberReadOp_SetMemberNameAttr) {
256 auto testOp = createIndexOperation();
257
259 llzkStruct_MemberReadOpSetMemberName(testOp, createIndexAttribute());
260 }
261
262 mlirOperationDestroy(testOp);
263}
264
265TEST_F(StructOperationLinkTests, llzk_MemberReadOp_GetTableOffsetAttr) {
266 auto testOp = createIndexOperation();
267
270 }
271
272 mlirOperationDestroy(testOp);
273}
274
275TEST_F(StructOperationLinkTests, llzk_MemberReadOp_SetTableOffsetAttr) {
276 auto testOp = createIndexOperation();
277
279 llzkStruct_MemberReadOpSetTableOffset(testOp, createIndexAttribute());
280 }
281
282 mlirOperationDestroy(testOp);
283}
284
285TEST_F(StructOperationLinkTests, llzk_MemberReadOp_GetNumDimsPerMapAttr) {
286 auto testOp = createIndexOperation();
287
290 }
291
292 mlirOperationDestroy(testOp);
293}
294
295TEST_F(StructOperationLinkTests, llzk_MemberReadOp_SetNumDimsPerMapAttr) {
296 auto testOp = createIndexOperation();
297
299 llzkStruct_MemberReadOpSetNumDimsPerMap(testOp, createIndexAttribute());
300 }
301
302 mlirOperationDestroy(testOp);
303}
304
305TEST_F(StructOperationLinkTests, llzk_MemberReadOp_GetMapOpGroupSizesAttr) {
306 auto testOp = createIndexOperation();
307
310 }
311
312 mlirOperationDestroy(testOp);
313}
314
315TEST_F(StructOperationLinkTests, llzk_MemberReadOp_SetMapOpGroupSizesAttr) {
316 auto testOp = createIndexOperation();
317
319 llzkStruct_MemberReadOpSetMapOpGroupSizes(testOp, createIndexAttribute());
320 }
321
322 mlirOperationDestroy(testOp);
323}
324
325TEST_F(StructOperationLinkTests, llzk_MemberReadOp_GetVal) {
326 auto testOp = createIndexOperation();
327
329 (void)llzkStruct_MemberReadOpGetVal(testOp);
330 }
331
332 mlirOperationDestroy(testOp);
333}
334
336TEST_F(StructOperationLinkTests, IsA_Struct_MemberWriteOp) {
337 auto testOperation = createIndexOperation();
338
339 // This will always return false since `createIndex*` returns an MLIR builtin
340 EXPECT_FALSE(llzkOperationIsA_Struct_MemberWriteOp(testOperation));
341
342 mlirOperationDestroy(testOperation);
343}
344
346TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_Build) {
347 // Returns an `arith.constant` op, which will never match the MemberWriteOp dialect check.
348 auto testOp = createIndexOperation();
349
350 // This condition is always false, so the function is never actually called.
351 // We only verify it compiles and links correctly.
353 MlirOpBuilder builder = mlirOpBuilderCreate(context);
354 MlirLocation location = mlirLocationUnknownGet(context);
355 auto dummyValue = mlirOperationGetResult(testOp, 0);
356 auto member_nameAttr = createIndexAttribute();
357
358 (void)llzkStruct_MemberWriteOpBuild(builder, location, dummyValue, dummyValue, member_nameAttr);
359 // No need to destroy builder or op since this code never runs.
360 }
361
362 mlirOperationDestroy(testOp);
363}
364
365struct MemberWriteOpBuildFuncHelper : public TestAnyBuildFuncHelper<CAPITest> {
366 virtual bool callIsA(MlirOperation op) override { return llzkOperationIsA_Struct_MemberWriteOp(op); }
370 static std::unique_ptr<MemberWriteOpBuildFuncHelper> get();
371
372protected:
374};
375
378TEST_F(CAPITest, MemberWriteOp_build_pass) { MemberWriteOpBuildFuncHelper::get()->run(*this); }
379
380TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_GetComponent) {
381 auto testOp = createIndexOperation();
382
385 }
386
387 mlirOperationDestroy(testOp);
388}
389
390TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_SetComponent) {
391 auto testOp = createIndexOperation();
392
394 auto dummyValue = mlirOperationGetResult(testOp, 0);
395 llzkStruct_MemberWriteOpSetComponent(testOp, dummyValue);
396 }
397
398 mlirOperationDestroy(testOp);
399}
400
401TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_GetVal) {
402 auto testOp = createIndexOperation();
403
405 (void)llzkStruct_MemberWriteOpGetVal(testOp);
406 }
407
408 mlirOperationDestroy(testOp);
409}
410
411TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_SetVal) {
412 auto testOp = createIndexOperation();
413
415 auto dummyValue = mlirOperationGetResult(testOp, 0);
416 llzkStruct_MemberWriteOpSetVal(testOp, dummyValue);
417 }
418
419 mlirOperationDestroy(testOp);
420}
421
422TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_GetMemberNameAttr) {
423 auto testOp = createIndexOperation();
424
427 }
428
429 mlirOperationDestroy(testOp);
430}
431
432TEST_F(StructOperationLinkTests, llzk_MemberWriteOp_SetMemberNameAttr) {
433 auto testOp = createIndexOperation();
434
436 llzkStruct_MemberWriteOpSetMemberName(testOp, createIndexAttribute());
437 }
438
439 mlirOperationDestroy(testOp);
440}
441
443TEST_F(StructOperationLinkTests, IsA_Struct_StructDefOp) {
444 auto testOperation = createIndexOperation();
445
446 // This will always return false since `createIndex*` returns an MLIR builtin
447 EXPECT_FALSE(llzkOperationIsA_Struct_StructDefOp(testOperation));
448
449 mlirOperationDestroy(testOperation);
450}
451
453TEST_F(StructOperationLinkTests, llzk_StructDefOp_Build) {
454 // Returns an `arith.constant` op, which will never match the StructDefOp dialect check.
455 auto testOp = createIndexOperation();
456
457 // This condition is always false, so the function is never actually called.
458 // We only verify it compiles and links correctly.
460 MlirOpBuilder builder = mlirOpBuilderCreate(context);
461 MlirLocation location = mlirLocationUnknownGet(context);
462 auto dummyValue = mlirOperationGetResult(testOp, 0);
463 auto sym_nameAttr = mlirOperationGetName(testOp);
464
465 (void)llzkStruct_StructDefOpBuild(builder, location, sym_nameAttr);
466 // No need to destroy builder or op since this code never runs.
467 }
468
469 mlirOperationDestroy(testOp);
470}
471
472struct StructDefOpBuildFuncHelper : public TestAnyBuildFuncHelper<CAPITest> {
473 virtual bool callIsA(MlirOperation op) override { return llzkOperationIsA_Struct_StructDefOp(op); }
477 static std::unique_ptr<StructDefOpBuildFuncHelper> get();
478
479protected:
481};
482
485TEST_F(CAPITest, StructDefOp_build_pass) { StructDefOpBuildFuncHelper::get()->run(*this); }
486
487TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetSymNameAttr) {
488 auto testOp = createIndexOperation();
489
492 }
493
494 mlirOperationDestroy(testOp);
495}
496
497TEST_F(StructOperationLinkTests, llzk_StructDefOp_SetSymNameAttr) {
498 auto testOp = createIndexOperation();
499
501 llzkStruct_StructDefOpSetSymName(testOp, createIndexAttribute());
502 }
503
504 mlirOperationDestroy(testOp);
505}
506
507TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetBodyRegionRegion) {
508 auto testOp = createIndexOperation();
509
512 }
513
514 mlirOperationDestroy(testOp);
515}
516
518TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetComputeFuncOp) {
519 auto testOperation = createIndexOperation();
520
521 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
522
523 (void)llzkStruct_StructDefOpGetComputeFuncOp(testOperation);
524 }
525
526 mlirOperationDestroy(testOperation);
527}
528
530TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetProductFuncOp) {
531 auto testOperation = createIndexOperation();
532
533 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
534
535 (void)llzkStruct_StructDefOpGetProductFuncOp(testOperation);
536 }
537
538 mlirOperationDestroy(testOperation);
539}
540
542TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetMemberDef) {
543 auto testOperation = createIndexOperation();
544
545 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
546 MlirIdentifier memberName = {};
547
548 (void)llzkStruct_StructDefOpGetMemberDef(testOperation, memberName);
549 }
550
551 mlirOperationDestroy(testOperation);
552}
553
555TEST_F(StructOperationLinkTests, llzk_StructDefOp_HasColumns) {
556 auto testOperation = createIndexOperation();
557
558 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
559
560 (void)llzkStruct_StructDefOpHasColumns(testOperation);
561 }
562
563 mlirOperationDestroy(testOperation);
564}
565
567TEST_F(StructOperationLinkTests, llzk_StructDefOp_HasComputeConstrain) {
568 auto testOperation = createIndexOperation();
569
570 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
571
573 }
574
575 mlirOperationDestroy(testOperation);
576}
577
579TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetConstrainFuncOp) {
580 auto testOperation = createIndexOperation();
581
582 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
583
584 (void)llzkStruct_StructDefOpGetConstrainFuncOp(testOperation);
585 }
586
587 mlirOperationDestroy(testOperation);
588}
589
591TEST_F(StructOperationLinkTests, llzk_StructDefOp_HasTemplateSymbolBindings) {
592 auto testOperation = createIndexOperation();
593
594 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
595
597 }
598
599 mlirOperationDestroy(testOperation);
600}
601
603TEST_F(StructOperationLinkTests, llzk_StructDefOp_HasSignals) {
604 auto testOperation = createIndexOperation();
605
606 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
607
608 (void)llzkStruct_StructDefOpHasSignals(testOperation);
609 }
610
611 mlirOperationDestroy(testOperation);
612}
613
615TEST_F(StructOperationLinkTests, llzk_StructDefOp_IsMainComponent) {
616 auto testOperation = createIndexOperation();
617
618 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
619
620 (void)llzkStruct_StructDefOpIsMainComponent(testOperation);
621 }
622
623 mlirOperationDestroy(testOperation);
624}
625
627TEST_F(StructOperationLinkTests, llzk_StructDefOp_GetFullyQualifiedName) {
628 auto testOperation = createIndexOperation();
629
630 if (llzkOperationIsA_Struct_StructDefOp(testOperation)) {
631
633 }
634
635 mlirOperationDestroy(testOperation);
636}
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:62
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.
void llzkStruct_MemberReadOpSetMapOperands(MlirOperation op, intptr_t count, MlirValue const *values)
Set MapOperands operands of llzk::component::MemberReadOp Operation.
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.
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...
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