Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个 LLVM 位码文件,我链接这些文件llvm-link以创建一个位码文件。但是,llvm-link不执行整个程序优化 (WPO)。如何链接位码,以便链接器还执行 WPO 以生成最终的位码文件。
llvm-link
使用llc编译 bitcode 文件时将执行优化。或者,使用opt直接调用优化器。
仅使用 clang 也应该做正确的事情。