[llvm] Extend llvm objdump fatbin (PR #114834)
David Salinas via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 13:53:44 PST 2025
================
@@ -379,3 +622,223 @@ bool object::areTargetsCompatible(const OffloadFile::TargetID &LHS,
return false;
return true;
}
+
+// Utility function to format numbers with commas
+static std::string formatWithCommas(unsigned long long Value) {
+ std::string Num = std::to_string(Value);
+ int InsertPosition = Num.length() - 3;
+ while (InsertPosition > 0) {
+ Num.insert(InsertPosition, ",");
+ InsertPosition -= 3;
+ }
+ return Num;
+}
+
+llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>>
+CompressedOffloadBundle::decompress(llvm::MemoryBufferRef &Input,
+
----------------
david-salinas wrote:
ok
https://github.com/llvm/llvm-project/pull/114834
More information about the llvm-commits
mailing list