Idiomatic Linking, Optimization, and Compilation of LLVM Bitcode (.bc) Files #11370
Unanswered
scienceplease
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm hoping to get pointed in the right direction for the most idiomatic way to link and compile LLVM bitcode (.bc) files generated by different compilers.
In a nutshell:
The purpose is to facilitate inlining and cross-function optimizations in code compiled with Intel's ISPC compiler and vanilla clang.
I've found examples of defining a
generator
for ISPC, the gap in knowledge is how to best link/optimize/compile LLVM bitcode (.bc) files using LLVM's bitcode linker (llvm-link
), optimizer (opt
), and static compiler (llc
). I cannot find any meson build scripts in the wild that achieve this.I can see that assembler (.S) and LLVM IR (.ll) files are supported by
library()
andexecutable()
, but cannot find references to LLVM bitcode in the docs nor the source.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions