Hi all,

After running RewriteStatepointsForGC pass in llvm (using opt-11 
--rewrite-statepoints-for-gc), we can see live pointers are added to the 
go.statepoint intrinsic as 
shown https://llvm.org/docs/Statepoints.html#rewritestatepointsforgc. 

But for the below example, if I run the command *llvm-goc -S -emit-llvm 
-enable-gc=1, *I expect to add live pointers to go.statepoint intrinsic 
because there are heap references which are roots to GC(*new(emp)*).

Can you explain to me why live pointers are not available in go.statepoint 
intrinsic?
Is go-statepoints pass in gollvm different from llvm RS4GC pass?

*package main*

*type emp struct {*
* name string*
*}*
*func main() {*
*emp1 := new(emp)*
*emp1.name = "XYZ"*
*}*

Thank you,
Kavindu

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/210c2d8f-33c2-4c5d-aa9c-c02319e011d9n%40googlegroups.com.

Reply via email to