[LLVMdev] GC questions.

Chris Lattner sabre at nondot.org
Wed Jul 21 10:34:07 PDT 2004

On Wed, 21 Jul 2004, Tobias Nurmiranta wrote:

> Hi, I'm thinking out loud, please give me some feedback.
> Regarding llvm.gcread and llvm.gcwrite, wouldn't it be nicer if they are
> implemented as:
>  llvm.gcread(sbyte** object, uint offset)
>  llvm.gcwrite(sbyte* data, sbyte** object, uint offset)
> Where you also have the offset into the object. In this way the GC would
> know where the header of the object we are reading/writing to is. Also it
> would mean less traffic to the pointers on the stack, and in some
> languages you only want to allow pointers to the header of the objects,
> which makes object traversal easier.

Yes, this makes a tremendous amount of sense.  Do you think you could
prepare some patches to make this happen?  If you have any questions, feel
free to ask :)



More information about the llvm-dev mailing list