opencompl / Quidditch

IREE compiler and runtime for Snitch
Apache License 2.0
6 stars 3 forks source link

[SnitchDMA] Split transfer legalization out of `DMAToLLVM` #131

Closed zero9178 closed 2 months ago

zero9178 commented 2 months ago

It is up to the target, in this case snitch, to dictate which DMA transfers are directly legal or not. This logic previously lived in DMAToLLVM and due to being part of the "one-shot-to-llvm" pass, difficult to test and implement.

This PR therefore splits the logic into a dedicated legalization pass with the lowering to LLVM greatly simplified.