[LLVMdev] pointer-sized integer type
Benjamin Smedberg
benjamin at smedbergs.us
Sat Dec 1 17:26:04 PST 2007
-----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"?
- --BDS
- --
Benjamin Smedberg
Platform Guru
Mozilla Corporation
benjamin at smedbergs.us
http://benjamin.smedbergs.us/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHUgmsSSwGp5sTYNkRAu9DAJ9Y7zEkJieYwLXu+IuBsyAQmWhEAwCePdMt
KUztxE51Y7H/1Qa9H6t+Xf0=
=+w6x
-----END PGP SIGNATURE-----
More information about the llvm-dev
mailing list