Hi I’m new to mlir and my team using mlir c++ framework to transfer from ast to m
As a beginner I do not know what is the mechanism of this.
From toy example, it seems that:
1, I need to define a dialect,
2, I need to register it
3, I need to analyze the ast, create blocks, set insertion point and call build method to add stuff in.
But what is the logic of all of these, most of the build functions are created from tablegen, what are the parameters mean??
Actually so many questions in my head and I do not know how to organize them, can anyone make a simple example to illustrate the mechanism of this??
Thanks a lot!!