Implementing GC: Custom stackmaps for statepoints

Hi,
I’m trying to build a GC for my language and have some issues there, in particular with stack maps. I’m using the statepoints approach and need custom stackmap format (for AOT compiled code), which is basically just offsets of pointers on the stack. I’ve read the doc https://llvm.org/docs/StackMaps.html, but I can’t understand how to use it to get just offsets of pointers on the stack. Could you please help?

Another question is about value types with pointers. Consider
%String = type {i32, i8*}
Does stackmap also records pointer within this value type?

Anton,

It sounds like you have general getting started type questions. If you reach out to me directly, I’m happy to jump on a call and help answer any questions you’ve got. I strongly prefer spoken conversation over email for this type of thing, so please don’t send me a list of detailed questions.

Philip