I am currently working on evaluating the support of the LLVM GC framework in order to design a garbage collector.
I have followed the below docs.
I am trying to generate the llvm IR with safepoints for the given C code. This repository contains relevant source files.
I generated statepoints for main.ll file I used the command opt-11 --rewrite-statepoints-for-gc main.ll -S -o main-statepoints.ll
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?