[LLVMdev] How to handle size_t in front ends?
Chris Lattner
sabre at nondot.org
Wed May 7 00:05:19 PDT 2008
On May 6, 2008, at 11:49 PM, Jonathan S. Shapiro wrote:
> On Tue, 2008-05-06 at 23:18 -0700, Chris Lattner wrote:
>>> 1) Is there a way to declare an integer type in the IR that
>>> represents
>>> "an int the same size as a pointer" without specifying exactly the
>>> size
>>> of a pointer?
>>
>> No.
>
> Chris:
>
> 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 defined? How does arithmetic
work on it?
-Chris
More information about the llvm-dev
mailing list