[llvm] [llvm-exegesis] Add in snippet address annotation (PR #74218)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 17:57:59 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);
----------------
boomanaiden154 wrote:

Thanks for the suggestion! Added error handling in the latest revision.

https://github.com/llvm/llvm-project/pull/74218


More information about the llvm-commits mailing list