[llvm] [llvm-exegesis] Add in snippet address annotation (PR #74218)
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 4 02:13:09 PST 2023
================
@@ -131,6 +131,12 @@ class BenchmarkCodeStreamer : public MCStreamer, public AsmCommentConsumer {
Result->Key.MemoryMappings.push_back(std::move(MemMap));
return;
}
+ if (CommentText.consume_front("SNIPPET-ADDRESS")) {
+ // LLVM-EXEGESIS-SNIPPET-ADDRESS <address>
+ Result->Key.SnippetAddress =
+ std::stol(CommentText.trim().str(), nullptr, 16);
----------------
legrosbuffle wrote:
Please use `llvm::to_integer` so that we can diagnose a bad value.
https://github.com/llvm/llvm-project/pull/74218
More information about the llvm-commits
mailing list