News for hackers. Stuff that matters.
Re:Apple’s Bitcode Telegraphs Future CPU Plans by DannyBee on Tuesday June 16, 2015 @05:40PM (#9728871)
"Does substitution of platform-dependent types, for example, i64 for size_t on x86_64, happen prior to generating the LLVM IR? "

In LLVM world, Clang is performing most of the ABI lowering.

For C and C++, the answer is "yes", and "it must happen this way", because struct layout/etc will depend on it. Not to mention what you want is at some level, impossible in the LLVM IR. LLVM types are not C/C++ types. This leaves you with no type system capable to do the kind of thing you want to do :)

There are no comments on this comment yet.