aboutsummaryrefslogtreecommitdiff
path: root/clang/tools
diff options
context:
space:
mode:
authorYaxun (Sam) Liu <yaxun.liu@amd.com>2024-05-09 17:14:43 -0400
committerGitHub <noreply@github.com>2024-05-09 17:14:43 -0400
commitca3917538de1deeb0e51f11fbdbe295b6d3768d1 (patch)
treeebbe56b035a9d6046d9bbc18302854f6e19a0744 /clang/tools
parentdb9421381980cdf3d6914f8898a77d3237325019 (diff)
downloadllvm-ca3917538de1deeb0e51f11fbdbe295b6d3768d1.zip
llvm-ca3917538de1deeb0e51f11fbdbe295b6d3768d1.tar.gz
llvm-ca3917538de1deeb0e51f11fbdbe295b6d3768d1.tar.bz2
[ClangOffloadBundler] make hipv4 and hip compatible (#91637)
The distinction between the hip and hipv4 offload kinds is historically based. Originally, these designations might have indicated different versions of the code object ABI (Application Binary Interface). However, as the system has evolved, the ABI version is now embedded directly within the code object itself, making these historical distinctions irrelevant during the unbundling process. Consequently, hip and hipv4 are treated as compatible in current implementations, facilitating interchangeable handling of code objects without differentiation based on offload kind. This change streamlines code management within the ecosystem.
Diffstat (limited to 'clang/tools')
-rw-r--r--clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
index a1879fc..69d8cb4 100644
--- a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
+++ b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
@@ -413,7 +413,7 @@ fatbinary(ArrayRef<std::pair<StringRef, StringRef>> InputFiles,
SmallVector<StringRef> Targets = {"-targets=host-x86_64-unknown-linux"};
for (const auto &[File, Arch] : InputFiles)
- Targets.push_back(Saver.save("hipv4-amdgcn-amd-amdhsa--" + Arch));
+ Targets.push_back(Saver.save("hip-amdgcn-amd-amdhsa--" + Arch));
CmdArgs.push_back(Saver.save(llvm::join(Targets, ",")));
#ifdef _WIN32