[llvm] [llvm-exegesis] Debug generated disassembly (PR #142540)
Lakshay Kumar via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 3 02:00:43 PDT 2025
================
@@ -655,6 +660,96 @@ BenchmarkRunner::getRunnableConfiguration(
if (Error E = Snippet.takeError())
return std::move(E);
RC.ObjectFile = getObjectFromBuffer(*Snippet);
+
+ // Print the assembled snippet by disassembling the binary data
+ // Extract the actual function bytes from the object file
+ std::vector<uint8_t> FunctionBytes;
+ if (auto Err = getBenchmarkFunctionBytes(*Snippet, FunctionBytes)) {
+ dbgs() << "Failed to extract function bytes: " << toString(std::move(Err))
----------------
lakshayk-nv wrote:
Reverting previous reasoning.
Introduced ExitWithError(...) instead of soft failure, because i guess if there is problem in generated snippet we can figure it out here rather than at execution of snippet.
https://github.com/llvm/llvm-project/pull/142540
More information about the llvm-commits
mailing list