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. -- With best regards, Anton Korobeynikov. Faculty of Mathematics & Mechanics, Saint Petersburg State University.
-----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-----
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