Replies: 2 comments 1 reply
-
|
The PR by @greenhat is really old and I haven't looked at it in a long time. The other one I'm not sure. I don't recall seeing it. In general, regarding dialect conversions: I'm not entirely convinced that we need a framework (or rather how that framework should look like) for conversions. The pattern applicator in MLIR is super complex and I'm not convinced of its necessity. So my thoughts were that we should have a couple of dialects first, and conversions implemented using plain interfaces (for example, how we convert pliron's LLVM dialect to actual LLVM IR) and see how that goes. With a couple of concrete examples, it's easier to decide how an infrastructure for dialect conversion should look like. Regarding a pass manager, we don't have one at all, and we should have it. Some time ago, I wrote a pass manager for another compiler (https://github.com/FuelLabs/sway/blob/master/sway-ir/src/pass_manager.rs), but that's for a specific compiler, not an extensible infrastructure like |
Beta Was this translation helpful? Give feedback.
-
We could begin with a discussion thread, and when we have something concrete, create issues.
Yes, as long as they are general, written using interfaces and can be generally applied to any IR (the specific ops may or may not implement the interface to participate). At least that's how I've been looking at it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Where are we with supporting dialect conversions within
pliron?(1) I see an open PR by @greenhat here: #4 which has yet to be merged.
(2) I see a modified version of the PR by @zrr1999 here: zrr1999#1.
My questions are:
Beta Was this translation helpful? Give feedback.
All reactions