[llvm-dev] How to use stack maps

River Riddle via llvm-dev llvm-dev at lists.llvm.org
Sat Jan 13 17:48:00 PST 2018


Hi,
  I implemented a garbage collector for a language I wrote in college using
the llvm gc statepoint infrastructure.

Information for statepoints:
https://llvm.org/docs/Statepoints.html

Example usage of parsing the llvm stackmap can be found at:
 https://github.com/dotnet/llilc/blob/master/lib/GcInfo/GcInfo.cpp
 https://llvm.org/docs/StackMaps.html#stackmap-format

https://github.com/llvm-mirror/llvm/blob/4604874612fa292ab4c49f96aedefdf8be1ff27e/include/llvm/Object/StackMapParser.h

Thanks,
 River Riddle


On Sat, Jan 13, 2018 at 10:02 AM, benzrf via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Is there an explanation anywhere of what code that uses a stack map looks
> like? I'm interested in writing a garbage collector, but it's not clear to
> me how my code should make use of the stack map format to actually locate
> roots in memory.
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180113/1cfd727e/attachment.html>


More information about the llvm-dev mailing list