================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to