Skip to content

Add sparse_tensor based lowering and codegen#999

Merged
philipportner merged 4 commits intomainfrom
sparse_pipeline
Dec 22, 2025
Merged

Add sparse_tensor based lowering and codegen#999
philipportner merged 4 commits intomainfrom
sparse_pipeline

Conversation

@philipportner
Copy link
Copy Markdown
Collaborator

Adds codegen capabilities for the daphne.Matrix IR type and the CSRMatrix runtime object.
Moves the ManageObjRefsPass to before the MLIR-based codegen pipeline.
Adjusts a couple edge cases in ManageObjRefsPass that are not longer
necessary as the InsertDaphneContextPass now runs after the
ManageObjRefsPass.

Adds a test case for sparse_tensor codegen.
Adds necessary infrastructure to DaphneIrExecutor.

The codegen pipeline converts the `daphne::ReturnOp` to
the `func::ReturnOp` as some upstream MLIR passes expect a
`func::ReturnOp`. We may want to remove `daphne::ReturnOp`
completely, TBD.
Moves the `ManageObjRefsPass` to before the MLIR-based codegen pipeline.
Adjusts a couple edge cases in `ManageObjRefsPass` that are not longer
neccessary as the `InsertDaphneContextPass` now runs after the
`ManageObjRefsPass`.
@philipportner philipportner merged commit dd3eb84 into main Dec 22, 2025
3 checks passed
@philipportner philipportner deleted the sparse_pipeline branch December 22, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant