Isn't this something Rust already does? Why do they need to touch codegen to make this happen in clang?
Looking at the description of the linked patch, it seems to use the same mechanism we use (probe-stack), just extended to use an inlined code sequence instead of a function call. I don't know why this is necessary, perhaps they can't assume that such a function is available? (e.g. if using clang with libgcc)
Reading the patch the author wants to avoid probing where unnecessary (i.e. where the otherwise generated code would probe by itself?)
I think Rust also only does this for arm and x86, but Serge eventually wants to reach at least all arches that Fedora uses
if they do, can Rust benefit from that as well? would be good to have more arches covered :D
Presumably, since AFAIK the limiting factor for rustc's stack probing is porting the assembly code that does the probing and backend support for inserting the probing in functions, both of which they would also have to solve for Clang.