[llvm] Extend llvm objdump fatbin (PR #114834)
Jan Patrick Lehr via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 01:51:07 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,
+
----------------
jplehr wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/114834
More information about the llvm-commits
mailing list