I read in llvm docs its possible to very late selection of architecture
dependent code (i.e. after optimization)
How would I do this in practice, i have some C code I want to change
slightly depending on architecture. Preferably without having to re-run
With some care, it's possible for some languages to create portable
.bc files, but it's not possible for C.
Have you changed anything in the clang or llvm code to make this program possible?
Sorry I have not actually implemented this.
I was just hoping it was possible.
It appears that because sizes of (some) types in C depend on the
architecture's bit-width that its not possible to do this with C.
Other languages could get away with it however. As long as they don't