-
I'm trying to learn Virgil by writing an Extism PDK for it here: I've got the "greet" Virgil PDK example working, but am running into a problem with the
I poked around in https://github.com/gmlewis/virgil/blob/89aefcdcae2eb044b47a5fc2a022075c07fccd5e/aeneas/src/ssa/VstSsaGen.v3#L1179 but am wondering why Ssa is involved at all when generating a Any help would be greatly appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Ah ha, looks like you have a nested function here: https://github.com/gmlewis/virgil/blob/extism-pdk/apps/Extism/count-vowels/CountVowels.v3#L51 That feature is a work-in-progress. I should probably put it behind a flag. |
Beta Was this translation helpful? Give feedback.
-
All code goes from source -> VST -> SSA, and then backends for each target process SSA a little differently. E.g. the Wasm backend goes through machine lowering (SSA -> SSA transformation) and then translates SSA into Wasm. The above error occurred at the VST -> SSA translation stage (thus the |
Beta Was this translation helpful? Give feedback.
-
Awesome, thank you, @titzer ! I'll move it. 😄 |
Beta Was this translation helpful? Give feedback.
Ah ha, looks like you have a nested function here: https://github.com/gmlewis/virgil/blob/extism-pdk/apps/Extism/count-vowels/CountVowels.v3#L51
That feature is a work-in-progress. I should probably put it behind a flag.