Hi all,
I am doing a project in which I need Go compiler's intermediate representation(IR) (which is semantics preserving and I can get all all info like line number and data type and other features) (human readable) to convert to another IR of a tool.
I am new to Golang.
Can anybody tell me how can I generate it from the Go compiler.
I also tried this
blog but the new versions of go compiler doesn't support this.
I also tried llgo but was able to generate llvm-ir from llgo's docker image available and not able to build llgo myself.
Any help would be highly appreciated.
Thanks in advance.
Thanks,
Arpit