search for: iintptr

Displaying 5 results from an estimated 5 matches for "iintptr".

Did you mean: intptr
2008 May 07
2
[LLVMdev] How to handle size_t in front ends?
...e character vectors, because of the fact that the index spans depend on the address space size. I'm not clear whether it is a goal to have an IR that is capable of being a neutral representation w.r.t. address space size. If it *is* a goal, then I don't see how to do it without some form of iIntPtr or iWord type, but I'm still very new to all this. > > • Lowered to i32 or i64 for code generation. > > Ok > > > • Treated an ordinary integer for all operations except casts. > > Ok. What does this mean for add? This basically means that an intptr add > can...
2008 May 07
0
[LLVMdev] How to handle size_t in front ends?
...because of the fact that the index spans depend on the address > space size. I'm not clear whether it is a goal to have an IR that is > capable of being a neutral representation w.r.t. address space size. If > it *is* a goal, then I don't see how to do it without some form of > iIntPtr or iWord type, but I'm still very new to all this. i64 should be big enough for this. Just use i64. >> > �� Treated an ordinary integer for all operations except casts. >> >> Ok. What does this mean for add? This basically means that an intptr add >> cannot hav...
2008 May 07
0
[LLVMdev] How to handle size_t in front ends?
On Wed, 7 May 2008, Gordon Henriksen wrote: >> What would this be used for? How is it defined? How does >> arithmetic work on it? > > Looking up the intptr type via TargetData is not a significant issue > for me, but I can see the appeal, and how its absence could constitute > a significant barrier to generating portable IR (provided, of course, > a portable language).
2008 May 07
5
[LLVMdev] How to handle size_t in front ends?
On 2008-05-07, at 03:05, Chris Lattner wrote: > On May 6, 2008, at 11:49 PM, Jonathan S. Shapiro wrote: > >> There are other languages that specify a "word" type along these >> lines. Would it be worth considering adding such a type to the IR, >> or is there a reason not to do so that I am failing to see? > > What would this be used for? How is it
2008 May 07
2
[LLVMdev] How to handle size_t in front ends?
...that the index spans depend on the address > > space size. I'm not clear whether it is a goal to have an IR that is > > capable of being a neutral representation w.r.t. address space size. If > > it *is* a goal, then I don't see how to do it without some form of > > iIntPtr or iWord type, but I'm still very new to all this. > > i64 should be big enough for this. Just use i64. On a 32-bit platform, doesn't one want to use i32? That was the point that I was trying to make -- on a 32-bit platform one wants to use i32, while on a 64-bit platform one want...