[clang] [clang-repl] Link HIP device object into an HSACO (PR #235614)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 26 08:00:59 PDT 2026
================
@@ -79,13 +85,63 @@ IncrementalHIPDeviceParser::GenerateDeviceObject() {
return llvm::StringRef(ObjectContent.data(), ObjectContent.size());
}
+llvm::Expected<llvm::StringRef>
+IncrementalHIPDeviceParser::GenerateHSACO(llvm::StringRef Object) {
+ std::string Exe = llvm::sys::fs::getMainExecutable(nullptr, nullptr);
----------------
yxsamliu wrote:
Could we use the linker path chosen by Clang? This search ignores `-B` and `--ld-path`, so it may miss the requested `ld.lld` or pick a different one.
https://github.com/llvm/llvm-project/pull/235614
More information about the cfe-commits
mailing list