Is there a way to output C code from MLIR?

This question is probably heretical around here, but I have to ask it - is there a way to re-generate C code out of MLIR code that uses dialects such as Linalg, Affine, Standard? I’m thinking of code that uses only standard integers and floats, tensors and memrefs.

So far, there is no way to emit C code from MLIR. However, there is a discussion regarding a Simple C++ emitter rev.

1 Like