<div dir="ltr">Thanks, David.<div><br></div><div>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.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 31, 2015 at 1:18 AM, David Chisnall <span dir="ltr"><<a href="mailto:David.Chisnall@cl.cam.ac.uk" target="_blank">David.Chisnall@cl.cam.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<br>
<br>
David<br>
<div><div class="h5"><br>
> On 31 Mar 2015, at 08:13, Hayden Livingston <<a href="mailto:halivingston@gmail.com">halivingston@gmail.com</a>> wrote:<br>
><br>
> I'm trying to add gcoot functionality to my code and I'm confused by why gcroot is assuming to be an i8**<br>
><br>
> I'm using i32 as object and array pointers and if I make them i8 things seem to work.<br>
><br>
> I'm generating IR much like <a href="http://llvm.org/docs/GarbageCollection.html#llvm-ir-features" target="_blank">http://llvm.org/docs/GarbageCollection.html#llvm-ir-features</a><br>
> void @llvm.gcroot(i8** %ptrloc, i8* %metadata)<br>
</div></div>> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br>
</blockquote></div><br></div>