================
@@ -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");
----------------
AdityaSinha149 wrote:
This seems like a fairly large change, and since I'm still new to Clang, I'd
like to keep it as a future change. Could we merge these PRs with the current
design for the time being?
cc @vgvassilev @lhames
https://github.com/llvm/llvm-project/pull/235614
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits