LLVM provides something called patch points where one can obtain register information and inject machine code at runtime.
I wonder if there is some way to obtain the stack frame size?
I am interested in the possibilty of using patchpoints for suspension (async) and use a split stack. So if you have a static call tree you compute the stack size you need at all supension points. When you call functions that cannot suspend you use the system stack. When you call functions that can suspend you use the stack for the async task.
Is it possible?