[LLVMdev] pointer-sized integer type

Chris Lattner sabre at nondot.org
Sat Dec 1 17:30:39 PST 2007


On Dec 1, 2007, at 5:26 PM, Benjamin Smedberg wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Anton Korobeynikov wrote:
>> Benjamin,
>>
>>> It seems that LLVM bytecode doesn't have a builtin type for  
>>> "pointer-sized
>>> integer".
>> You should use TargetData to provide a size of pointer.
>
> Sorry, perhaps I was not clear. When JITting code it's not hard to  
> figure
> out the size of a pointer and use the equivalent integer type. I  
> mean, is it
> possible to create architecture-independent LLVM assembly/bytecode  
> that has
> an "integer that's the same size as a pointer"?

No, not currently.

-Chris



More information about the llvm-dev mailing list