3 ms·
> Right now the LLVM IR isn't platform-agnostic, e.g. when it comes to calling conventions. But it does give you the same benefits in terms of CPU capabilities
by rwallace 11y ago
> Right now the LLVM IR isn't platform-agnostic, e.g. when it comes to calling conventions.
But it does give you the same benefits in terms of CPU capabilities. You can't ship intermediate code that's agnostic about e.g. x86 vs x64 (C and C++ just aren't amenable to that, no matter what your intermediate representation looks like), but you can ship intermediate code that expects some form of x64 but postpones instruction selection until the program is installed, so you can take advantage of new instructions just when they are available. As I understand it, Apple is going to use it for that purpose.