[PATCH] D115038: [runtimes][VE] Change to compile crtbegin/end before compiler-rt
Kazushi Marukawa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 3 05:16:14 PST 2021
kaz7 added a comment.
This patch add mechanism to compile crtbegin/end before other libraries which is similar to a mechanism to compile builtins before compile-rt.
The crtbegin/end files are not available for VE freely. Those are distributed as a part of propariatary libraries. Therefore, we need to compile crtbegin/end before other libraries. This patch modifies building mechanism to compile crtbegin/end (and builtins) without other libraries. Then, compile compiler-rt again in the middle of compilation. This patch is useful for not only for SX-Aurora VE, but also other architectures which has no crtbegin/end freely.
However, I'm not sure what kind of mechanism is good for other architectures. For example, I can define LLVM_BUILTIN_CRTBEGIN_TARGETS variable to enable this feature. However, I'm not sure what is the best. So, this time, I send this patch for only crtbegin/end before other libraies for only VE at the moment. I appreciate any comments and requests for changes. Thanks!!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115038/new/
https://reviews.llvm.org/D115038
More information about the llvm-commits
mailing list