[LLVMdev] Documentation of malloc/free
Jon Harrop
jon at ffconsultancy.com
Mon Dec 7 13:46:38 PST 2009
On Monday 07 December 2009 18:43:01 Chris Lattner wrote:
> On Dec 7, 2009, at 11:24 AM, Jon Harrop wrote:
> > BTW, what is the state of having to index into structs using i32 and
> > not i64
> > even on a 64-bit platform? Is that due to be changed as well or is
> > there some
> > reason for requiring an i32?
>
> The index into a struct is a field index, not a byte offset. Are you
> looking to support more than 4 billion fields in a struct?
Not yet. :-)
I'd just like to have GEPs indices be homogeneous on all platforms to simplify
things, i.e. use homogeneous containers of indices in statically-typed
languages.
--
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e
More information about the llvm-dev
mailing list