4 ms·
"LLVM IR is quite portable over the various architectures we run on (GPU, x86-64, ARM)." I wonder what they mean by "portable" in this context.
by Joky 10y ago
"LLVM IR is quite portable over the various architectures we run on (GPU, x86-64, ARM)."
I wonder what they mean by "portable" in this context.
- tmostak 10y agoMeaning LLVM has backends that target these various architectures, with very few (if any) changes required to the IR.
- Someone 10y agohttp://llvm.org/docs/FAQ.html#can-i-compile-c-or-c-code-to-platform-independent-llvm-bitcode http://llvm.org/docs/FAQ.html#can-i-compile-c-or-c-code-to-p... has a question "Can I compile C or C++ code to platform-independent LLVM bitcode?". Its answer contains: "Also, since many platforms define their ABIs in terms of C, and since LLVM is lower-level than C, front-ends currently must emit platform-specific IR in order to have the result conform to the platform ABI." That part applies to any front end, not just C and C++ compilers.