When developing backends, the translation from internal syntax to treeless syntax currently only exports toTreeless with a fixed pipeline of optimization passes (compilerPipeline).
This PR introduces toTreelessWith to allow backends to tweak that and use a custom pipeline (I already need that in agda2rust), while also exporting necessary utilities to build those pipelines.
When developing backends, the translation from internal syntax to treeless syntax currently only exports
toTreeless
with a fixed pipeline of optimization passes (compilerPipeline
).This PR introduces
toTreelessWith
to allow backends to tweak that and use a custom pipeline (I already need that in agda2rust), while also exporting necessary utilities to build those pipelines.