[PATCH] D117048: [OpenMP] Link the bitcode library late for device LTO
Shilei Tian via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 31 19:01:09 PST 2022
tianshilei1992 accepted this revision.
tianshilei1992 added a comment.
This revision is now accepted and ready to land.
LGTM with two nits.
================
Comment at: clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp:75
+static cl::opt<std::string>
+ BitcodeLibrary("target-library",
+ cl::desc("Path for the target bitcode library"),
----------------
`target-library` is not the common name we call it. Maybe `device-runtime-library`?
================
Comment at: clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp:986
+ if (!BitcodeLibrary.empty()) {
+ // FIXME: Hacky workaround to avoid a backend crash at O0.
+ if (OptLevel[1] - '0' == 0)
----------------
Is this still needed now?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117048/new/
https://reviews.llvm.org/D117048
More information about the cfe-commits
mailing list