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);
188 groups[0].
values = &dummyValue;
193 mlirOperationDestroy(testOp);
197 auto testOp = createIndexOperation();
203 mlirOperationDestroy(testOp);
207 auto testOp = createIndexOperation();
213 mlirOperationDestroy(testOp);
217 auto testOp = createIndexOperation();
223 mlirOperationDestroy(testOp);
227 auto testOp = createIndexOperation();
233 mlirOperationDestroy(testOp);
237 auto testOp = createIndexOperation();
243 mlirOperationDestroy(testOp);
248 auto testOperation = createIndexOperation();
253 mlirOperationDestroy(testOperation);
259 auto testOp = createIndexOperation();
265 MlirLocation location = mlirLocationUnknownGet(context);
266 auto dummyValue = mlirOperationGetResult(testOp, 0);
267 auto resultType = createIndexType();
268 MlirValue indicesValues[] = {dummyValue};
269 intptr_t indicesSize = 0;
275 mlirOperationDestroy(testOp);
283 static std::unique_ptr<ExtractArrayOpBuildFuncHelper>
get();
294 auto testOp = createIndexOperation();
300 mlirOperationDestroy(testOp);
304 auto testOp = createIndexOperation();
307 auto dummyValue = mlirOperationGetResult(testOp, 0);
311 mlirOperationDestroy(testOp);
315 auto testOp = createIndexOperation();
321 mlirOperationDestroy(testOp);
325 auto testOp = createIndexOperation();
331 mlirOperationDestroy(testOp);
335 auto testOp = createIndexOperation();
338 auto dummyValue = mlirOperationGetResult(testOp, 0);
339 MlirValue values[] = {dummyValue};
343 mlirOperationDestroy(testOp);
347 auto testOp = createIndexOperation();
353 mlirOperationDestroy(testOp);
358 auto testOperation = createIndexOperation();
365 mlirOperationDestroy(testOperation);
370 auto testOperation = createIndexOperation();
375 mlirOperationDestroy(testOperation);
381 auto testOp = createIndexOperation();
387 MlirLocation location = mlirLocationUnknownGet(context);
388 auto dummyValue = mlirOperationGetResult(testOp, 0);
389 MlirValue indicesValues[] = {dummyValue};
390 intptr_t indicesSize = 0;
396 mlirOperationDestroy(testOp);
404 static std::unique_ptr<InsertArrayOpBuildFuncHelper>
get();
415 auto testOp = createIndexOperation();
421 mlirOperationDestroy(testOp);
425 auto testOp = createIndexOperation();
428 auto dummyValue = mlirOperationGetResult(testOp, 0);
432 mlirOperationDestroy(testOp);
436 auto testOp = createIndexOperation();
442 mlirOperationDestroy(testOp);
446 auto testOp = createIndexOperation();
452 mlirOperationDestroy(testOp);
456 auto testOp = createIndexOperation();
459 auto dummyValue = mlirOperationGetResult(testOp, 0);
460 MlirValue values[] = {dummyValue};
464 mlirOperationDestroy(testOp);
468 auto testOp = createIndexOperation();
474 mlirOperationDestroy(testOp);
478 auto testOp = createIndexOperation();
481 auto dummyValue = mlirOperationGetResult(testOp, 0);
485 mlirOperationDestroy(testOp);
490 auto testOperation = createIndexOperation();
497 mlirOperationDestroy(testOperation);
502 auto testOperation = createIndexOperation();
507 mlirOperationDestroy(testOperation);
513 auto testOp = createIndexOperation();
519 MlirLocation location = mlirLocationUnknownGet(context);
520 auto dummyValue = mlirOperationGetResult(testOp, 0);
521 auto resultType = createIndexType();
522 MlirValue indicesValues[] = {dummyValue};
523 intptr_t indicesSize = 0;
529 mlirOperationDestroy(testOp);
537 static std::unique_ptr<ReadArrayOpBuildFuncHelper>
get();
548 auto testOp = createIndexOperation();
554 mlirOperationDestroy(testOp);
558 auto testOp = createIndexOperation();
561 auto dummyValue = mlirOperationGetResult(testOp, 0);
565 mlirOperationDestroy(testOp);
569 auto testOp = createIndexOperation();
575 mlirOperationDestroy(testOp);
579 auto testOp = createIndexOperation();
585 mlirOperationDestroy(testOp);
589 auto testOp = createIndexOperation();
592 auto dummyValue = mlirOperationGetResult(testOp, 0);
593 MlirValue values[] = {dummyValue};
597 mlirOperationDestroy(testOp);
601 auto testOp = createIndexOperation();
607 mlirOperationDestroy(testOp);
612 auto testOperation = createIndexOperation();
619 mlirOperationDestroy(testOperation);
624 auto testOperation = createIndexOperation();
629 mlirOperationDestroy(testOperation);
635 auto testOp = createIndexOperation();
641 MlirLocation location = mlirLocationUnknownGet(context);
642 auto dummyValue = mlirOperationGetResult(testOp, 0);
643 MlirValue indicesValues[] = {dummyValue};
644 intptr_t indicesSize = 0;
650 mlirOperationDestroy(testOp);
658 static std::unique_ptr<WriteArrayOpBuildFuncHelper>
get();
669 auto testOp = createIndexOperation();
675 mlirOperationDestroy(testOp);
679 auto testOp = createIndexOperation();
682 auto dummyValue = mlirOperationGetResult(testOp, 0);
686 mlirOperationDestroy(testOp);
690 auto testOp = createIndexOperation();
696 mlirOperationDestroy(testOp);
700 auto testOp = createIndexOperation();
706 mlirOperationDestroy(testOp);
710 auto testOp = createIndexOperation();
713 auto dummyValue = mlirOperationGetResult(testOp, 0);
714 MlirValue values[] = {dummyValue};
718 mlirOperationDestroy(testOp);
722 auto testOp = createIndexOperation();
728 mlirOperationDestroy(testOp);
732 auto testOp = createIndexOperation();
735 auto dummyValue = mlirOperationGetResult(testOp, 0);
739 mlirOperationDestroy(testOp);
744 auto testOperation = createIndexOperation();
751 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.
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.
void llzkArray_CreateArrayOpSetMapOperands(MlirOperation op, intptr_t groupCount, MlirValueRange const *groups)
Set MapOperands operand groups 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
Representation of an mlir::ValueRange
MlirValue const * values
Pointer to the first value in the range.
intptr_t size
Number of values in the range.
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