[LLVMdev] Initializing GC roots

Yiannis Tsiouris yiannis.tsiouris at gmail.com
Thu Oct 6 14:19:42 PDT 2011

Hello all,

I set: InitRoots = true; in my gc plugin as i want the roots to be
initialized to the "null" value.
Is there a way to define which value should be the initial one? For
example, i would like to initialize my roots to -5 (tagged, null value
for the GC in my runtime system) instead of 0.

Ofcourse, i could do it in the frontend (storing -5 to all GC roots),
but i was wondering if there is another way e.g. by modifying the GC
plugin and implementing custom lowering for the gcroot intrinsic.


More information about the llvm-dev mailing list