<div dir="ltr"><div>Hi All,</div><div><br></div><div>I am currently working on evaluating the support of the LLVM GC framework in order to design a garbage collector. </div><div><br></div><div>I have followed the below docs.</div><div><a href="https://releases.llvm.org/11.0.0/docs/GarbageCollection.html">https://releases.llvm.org/11.0.0/docs/GarbageCollection.html</a><br></div><div><a href="https://releases.llvm.org/11.0.0/docs/Statepoints.html">https://releases.llvm.org/11.0.0/docs/Statepoints.html</a><br></div><div><a href="https://releases.llvm.org/11.0.0/docs/StackMaps.html">https://releases.llvm.org/11.0.0/docs/StackMaps.html</a><br></div><div><br></div><div>I am trying to generate the llvm IR with safepoints for the given C code. This repository contains relevant source files. </div><div><a href="https://github.com/KavinduZoysa/test-GCs/tree/master/statepoints">https://github.com/KavinduZoysa/test-GCs/tree/master/statepoints</a><br></div><div><br></div><div>I generated statepoints for main.ll file I used the command <b>opt-11 --rewrite-statepoints-for-gc main.ll -S -o main-statepoints.ll</b></div><div><br></div><div>I want to know the way I followed to generate statepoints is correct? If not the what is the best practice of generating statepoints(for give LLVM IR) for a garbage collector?</div><div><br></div><div>Thank you,</div><div>Kavindu</div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Kavindu Gimhan Zoysa,</div><div>BSc(Hons) | ENTC | UoM,<br></div><div dir="ltr">SSE | WSO2<div><br></div><div><a href="https://github.com/KavinduZoysa" target="_blank">GitHub</a> <a href="https://www.linkedin.com/in/kavindu-gimhan-zoysa-85939a122/" target="_blank">LinkedIn</a> <a href="https://medium.com/@kavindugimhanzoysa" target="_blank">Medium</a></div></div></div></div></div></div></div></div></div>