Open jyn514 opened 5 years ago
It may be more elegant to first implement alloca
as a builtin and then implement this in terms of alloca
.
Idea - always allocate the same space for a vla and at runtime check if you have enough static allocated space, yay, otherwise crash or something.
It's not ideal, but it's better than nothing.
Remind @jyn514 in 2 months to check for cranelift support.
Thanks to Tachyon