[llvm] Extend llvm objdump fatbin (PR #114834)
David Salinas via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 13:54:15 PST 2025
================
@@ -183,11 +210,160 @@ class OffloadFile : public OwningBinary<OffloadBinary> {
}
};
+/// Bundle entry in binary clang-offload-bundler format.
+struct OffloadBundleEntry {
+ uint64_t Offset = 0u;
+ uint64_t Size = 0u;
+ uint64_t IDLength = 0u;
+ StringRef ID;
+ OffloadBundleEntry(uint64_t O, uint64_t S, uint64_t I, StringRef T)
+ : Offset(O), Size(S), IDLength(I), ID(T) {}
+ void dumpInfo(raw_ostream &OS) {
+ OS << "Offset = " << Offset << ", Size = " << Size
+ << ", ID Length = " << IDLength << ", ID = " << ID;
+ }
+ void dumpURI(raw_ostream &OS, StringRef filePath) {
+ OS << ID.data() << "\tfile:\/\/" << filePath << "#offset=" << Offset
----------------
david-salinas wrote:
will correct
https://github.com/llvm/llvm-project/pull/114834
More information about the llvm-commits
mailing list