Tosa to emitC conversion

I found this mlir-emitc repo which contains the conversion pass from the tosa dialect to emitC.
The repo is archived and states that the code has been integrated upstream, however I can’t find any conversion from tosa to emitC there.

I assume that it is anyways better to split this over multiple passes, probably something like tosa → linalg → arith → emitC.

Are there any examples available?
I can’t find any conversions from linalg to arith or emitC either.

2 Likes

There are several XXXToEmitC conversions like ArithToEmitC. You can find more under mlir/lib/Conversion/.

yeah I had a look already, the tests are quite useful as examples but not everything is there. I’m currently trying to bring some linalg operations down to emitC and it’s not so straightforward.