14 auto testOperation = createIndexOperation();
19 mlirOperationDestroy(testOperation);
25 auto testOp = createIndexOperation();
31 MlirLocation location = mlirLocationUnknownGet(context);
32 auto dummyValue = mlirOperationGetResult(testOp, 0);
38 mlirOperationDestroy(testOp);
46 static std::unique_ptr<ArrayLengthOpBuildFuncHelper>
get();
57 auto testOp = createIndexOperation();
63 mlirOperationDestroy(testOp);
67 auto testOp = createIndexOperation();
70 auto dummyValue = mlirOperationGetResult(testOp, 0);
74 mlirOperationDestroy(testOp);
78 auto testOp = createIndexOperation();
84 mlirOperationDestroy(testOp);
88 auto testOp = createIndexOperation();
91 auto dummyValue = mlirOperationGetResult(testOp, 0);
95 mlirOperationDestroy(testOp);
99 auto testOp = createIndexOperation();
105 mlirOperationDestroy(testOp);
110 auto testOperation = createIndexOperation();
117 mlirOperationDestroy(testOperation);
122 auto testOperation = createIndexOperation();
127 mlirOperationDestroy(testOperation);
131 auto testOp = createIndexOperation();
137 mlirOperationDestroy(testOp);
141 auto testOp = createIndexOperation();
147 mlirOperationDestroy(testOp);
151 auto testOp = createIndexOperation();
154 auto dummyValue = mlirOperationGetResult(testOp, 0);
155 MlirValue values[] = {dummyValue};
159 mlirOperationDestroy(testOp);
163 auto testOp = createIndexOperation();
169 mlirOperationDestroy(testOp);
173 auto testOp = createIndexOperation();
179 mlirOperationDestroy(testOp);
183 auto testOp = createIndexOperation();
186 auto dummyValue = mlirOperationGetResult(testOp, 0);
187 MlirValue values[] = {dummyValue};
191 mlirOperationDestroy(testOp);
195 auto testOp = createIndexOperation();
201 mlirOperationDestroy(testOp);
205 auto testOp = createIndexOperation();
211 mlirOperationDestroy(testOp);
215 auto testOp = createIndexOperation();
221 mlirOperationDestroy(testOp);
225 auto testOp = createIndexOperation();
231 mlirOperationDestroy(testOp);
235 auto testOp = createIndexOperation();
241 mlirOperationDestroy(testOp);
246 auto testOperation = createIndexOperation();
251 mlirOperationDestroy(testOperation);
257 auto testOp = createIndexOperation();
263 MlirLocation location = mlirLocationUnknownGet(context);
264 auto dummyValue = mlirOperationGetResult(testOp, 0);
265 auto resultType = createIndexType();
266 MlirValue indicesValues[] = {dummyValue};
267 intptr_t indicesSize = 0;
273 mlirOperationDestroy(testOp);
281 static std::unique_ptr<ExtractArrayOpBuildFuncHelper>
get();
292 auto testOp = createIndexOperation();
298 mlirOperationDestroy(testOp);
302 auto testOp = createIndexOperation();
305 auto dummyValue = mlirOperationGetResult(testOp, 0);
309 mlirOperationDestroy(testOp);
313 auto testOp = createIndexOperation();
319 mlirOperationDestroy(testOp);
323 auto testOp = createIndexOperation();
329 mlirOperationDestroy(testOp);
333 auto testOp = createIndexOperation();
336 auto dummyValue = mlirOperationGetResult(testOp, 0);
337 MlirValue values[] = {dummyValue};
341 mlirOperationDestroy(testOp);
345 auto testOp = createIndexOperation();
351 mlirOperationDestroy(testOp);
356 auto testOperation = createIndexOperation();
363 mlirOperationDestroy(testOperation);
368 auto testOperation = createIndexOperation();
373 mlirOperationDestroy(testOperation);
379 auto testOp = createIndexOperation();
385 MlirLocation location = mlirLocationUnknownGet(context);
386 auto dummyValue = mlirOperationGetResult(testOp, 0);
387 MlirValue indicesValues[] = {dummyValue};
388 intptr_t indicesSize = 0;
394 mlirOperationDestroy(testOp);
402 static std::unique_ptr<InsertArrayOpBuildFuncHelper>
get();
413 auto testOp = createIndexOperation();
419 mlirOperationDestroy(testOp);
423 auto testOp = createIndexOperation();
426 auto dummyValue = mlirOperationGetResult(testOp, 0);
430 mlirOperationDestroy(testOp);
434 auto testOp = createIndexOperation();
440 mlirOperationDestroy(testOp);
444 auto testOp = createIndexOperation();
450 mlirOperationDestroy(testOp);
454 auto testOp = createIndexOperation();
457 auto dummyValue = mlirOperationGetResult(testOp, 0);
458 MlirValue values[] = {dummyValue};
462 mlirOperationDestroy(testOp);
466 auto testOp = createIndexOperation();
472 mlirOperationDestroy(testOp);
476 auto testOp = createIndexOperation();
479 auto dummyValue = mlirOperationGetResult(testOp, 0);
483 mlirOperationDestroy(testOp);
488 auto testOperation = createIndexOperation();
495 mlirOperationDestroy(testOperation);
500 auto testOperation = createIndexOperation();
505 mlirOperationDestroy(testOperation);
511 auto testOp = createIndexOperation();
517 MlirLocation location = mlirLocationUnknownGet(context);
518 auto dummyValue = mlirOperationGetResult(testOp, 0);
519 auto resultType = createIndexType();
520 MlirValue indicesValues[] = {dummyValue};
521 intptr_t indicesSize = 0;
527 mlirOperationDestroy(testOp);
535 static std::unique_ptr<ReadArrayOpBuildFuncHelper>
get();
546 auto testOp = createIndexOperation();
552 mlirOperationDestroy(testOp);
556 auto testOp = createIndexOperation();
559 auto dummyValue = mlirOperationGetResult(testOp, 0);
563 mlirOperationDestroy(testOp);
567 auto testOp = createIndexOperation();
573 mlirOperationDestroy(testOp);
577 auto testOp = createIndexOperation();
583 mlirOperationDestroy(testOp);
587 auto testOp = createIndexOperation();
590 auto dummyValue = mlirOperationGetResult(testOp, 0);
591 MlirValue values[] = {dummyValue};
595 mlirOperationDestroy(testOp);
599 auto testOp = createIndexOperation();
605 mlirOperationDestroy(testOp);
610 auto testOperation = createIndexOperation();
617 mlirOperationDestroy(testOperation);
622 auto testOperation = createIndexOperation();
627 mlirOperationDestroy(testOperation);
633 auto testOp = createIndexOperation();
639 MlirLocation location = mlirLocationUnknownGet(context);
640 auto dummyValue = mlirOperationGetResult(testOp, 0);
641 MlirValue indicesValues[] = {dummyValue};
642 intptr_t indicesSize = 0;
648 mlirOperationDestroy(testOp);
656 static std::unique_ptr<WriteArrayOpBuildFuncHelper>
get();
667 auto testOp = createIndexOperation();
673 mlirOperationDestroy(testOp);
677 auto testOp = createIndexOperation();
680 auto dummyValue = mlirOperationGetResult(testOp, 0);
684 mlirOperationDestroy(testOp);
688 auto testOp = createIndexOperation();
694 mlirOperationDestroy(testOp);
698 auto testOp = createIndexOperation();
704 mlirOperationDestroy(testOp);
708 auto testOp = createIndexOperation();
711 auto dummyValue = mlirOperationGetResult(testOp, 0);
712 MlirValue values[] = {dummyValue};
716 mlirOperationDestroy(testOp);
720 auto testOp = createIndexOperation();
726 mlirOperationDestroy(testOp);
730 auto testOp = createIndexOperation();
733 auto dummyValue = mlirOperationGetResult(testOp, 0);
737 mlirOperationDestroy(testOp);
742 auto testOperation = createIndexOperation();
749 mlirOperationDestroy(testOperation);
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.
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.
virtual bool callIsA(MlirOperation op) override
static std::unique_ptr< ArrayLengthOpBuildFuncHelper > get()
This method must be implemented to return a subclass of ArrayLengthOpBuildFuncHelper that at least im...
ArrayLengthOpBuildFuncHelper()=default
InsertArrayOpBuildFuncHelper()=default
static std::unique_ptr< InsertArrayOpBuildFuncHelper > get()
This method must be implemented to return a subclass of InsertArrayOpBuildFuncHelper that at least im...
virtual bool callIsA(MlirOperation op) override
static std::unique_ptr< ReadArrayOpBuildFuncHelper > get()
This method must be implemented to return a subclass of ReadArrayOpBuildFuncHelper that at least impl...
virtual bool callIsA(MlirOperation op) override
ReadArrayOpBuildFuncHelper()=default
virtual bool callIsA(MlirOperation op) override
static std::unique_ptr< WriteArrayOpBuildFuncHelper > get()
This method must be implemented to return a subclass of WriteArrayOpBuildFuncHelper that at least imp...
WriteArrayOpBuildFuncHelper()=default