Replies: 4 comments 1 reply
-
Your definitions look fine to me. The only issue I see is that you use names like
I'm not sure what you mean. Right now I see a Overall, what you have seems fine to me. But I must warn you, |
Beta Was this translation helpful? Give feedback.
-
|
I haven't implemented Printable yet, I mean it should be implemented as (func $add (param $a i32) (param $b i32) (result i32)
(i32.add (get_local $a) (get_local $b))
)or things like builtin.func @add: wasm.function <(wasm.i32) -> (wasm.i32)> {
entry():
l1 = local_get_i32 %1
l2 = local_get_i32 %2
result = i32_add %1 %2
wasm.return result
} |
Beta Was this translation helpful? Give feedback.
-
Probably should use |
Beta Was this translation helpful? Give feedback.
-
At a source level it may be anything. But as an IR, I don't see why names should allow |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to learn pliron by writing a wasm translator.
I have some questions about understanding.
1. Is there any problem with
Attr,Opbeing defined like this?2. Should
Printablebe implemented as the idiomatic form in this ir? (i.e. wat)Or should it be implemented as the idiomatic form in pliron?
Beta Was this translation helpful? Give feedback.
All reactions