aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-offload-binary/llvm-offload-binary.ll
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2025-10-07 10:52:45 -0500
committerGitHub <noreply@github.com>2025-10-07 10:52:45 -0500
commit2499fe1ac40f7a50e71bf93c26921f93df2bcc52 (patch)
tree9394448a3f152b77c822e05c640f7e225fd54ca7 /llvm/test/tools/llvm-offload-binary/llvm-offload-binary.ll
parent5960f5cf550cfd5376a18d0f2c551422d302f919 (diff)
downloadllvm-2499fe1ac40f7a50e71bf93c26921f93df2bcc52.zip
llvm-2499fe1ac40f7a50e71bf93c26921f93df2bcc52.tar.gz
llvm-2499fe1ac40f7a50e71bf93c26921f93df2bcc52.tar.bz2
[Offload] Rename and move 'clang-offload-packager' -> 'llvm-offload-binary' (#161438)
Summary: This tool is pretty much a generic interface into creating and managing the offloading binary format. The binary format itself is just a fat binary block used to create heterogeneous objects. This should be made more general than just `clang` since it's likely going to be used for larger offloading projects and is the expected way to extract heterogeneous objects from offloading code. Relatively straightforward rename, a few tweaks and documentation changes. Kept in `clang-offload-packager` for legacy compatibility as we looked this tool up by name in places, will probably delete it next release.
Diffstat (limited to 'llvm/test/tools/llvm-offload-binary/llvm-offload-binary.ll')
-rw-r--r--llvm/test/tools/llvm-offload-binary/llvm-offload-binary.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-offload-binary/llvm-offload-binary.ll b/llvm/test/tools/llvm-offload-binary/llvm-offload-binary.ll
new file mode 100644
index 0000000..b196c24
--- /dev/null
+++ b/llvm/test/tools/llvm-offload-binary/llvm-offload-binary.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-offload-binary -o %t --image=file=%s,arch=abc,triple=x-y-z
+; RUN: llvm-objdump --offloading %t | FileCheck %s
+; RUN: llvm-offload-binary %t --image=file=%t2,arch=abc,triple=x-y-z
+; RUN: diff %s %t2
+
+; CHECK: OFFLOADING IMAGE [0]:
+; CHECK-NEXT: kind <none>
+; CHECK-NEXT: arch abc
+; CHECK-NEXT: triple x-y-z
+; CHECK-NEXT: producer none