[clang] [clang-repl] Link HIP device object into an HSACO (PR #235614)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 26 02:29:03 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);
+ llvm::ErrorOr<std::string> LLDPath = llvm::sys::findProgramByName(
+ "ld.lld", {llvm::sys::path::parent_path(Exe)});
+ if (!LLDPath)
+ LLDPath = llvm::sys::findProgramByName("ld.lld");
----------------
vgvassilev wrote:
Why can’t the orc infrastructure do that in-memory? Is it feasible porting this functionality there or in a common place? cc: @lhames.
https://github.com/llvm/llvm-project/pull/235614
More information about the cfe-commits
mailing list