[LLVMdev] why is gc.root 8 bits?
halivingston at gmail.com
Tue Mar 31 02:16:41 PDT 2015
I see. So if I do bitcast i32** to i8** .. I should NOT lose any
information or cause an error? It seems like that's what you're implying
which is what I was hoping for.
On Tue, Mar 31, 2015 at 1:18 AM, David Chisnall <David.Chisnall at cl.cam.ac.uk
> LLVM currently lacks a void* equivalent, so i8* is frequently used to mean
> 'pointer to something'. There's work currently underway to remove types
> from pointers, so this will become just a generic pointer.
> > On 31 Mar 2015, at 08:13, Hayden Livingston <halivingston at gmail.com>
> > I'm trying to add gcoot functionality to my code and I'm confused by why
> gcroot is assuming to be an i8**
> > I'm using i32 as object and array pointers and if I make them i8 things
> seem to work.
> > I'm generating IR much like
> > void @llvm.gcroot(i8** %ptrloc, i8* %metadata)
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev