-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[llvm-exegesis] Minor changes for downstream consumers #74211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[llvm-exegesis] Minor changes for downstream consumers #74211
Conversation
This patch adjust the runConfiguration function to allow passing a parameter to force returning SnippetCrashes as errors rather than serializing them as strings in the returned Benchmark object. In addition, this patch adds a getter for the signal information address in the SnippetCrash object. These are both needed to allow for downstream consumption of the exegesis library within Gematria.
@llvm/pr-subscribers-tools-llvm-exegesis Author: Aiden Grossman (boomanaiden154) ChangesThis patch adjust the runConfiguration function to allow passing a parameter to force returning SnippetCrashes as errors rather than serializing them as strings in the returned Benchmark object. In addition, this patch adds a getter for the signal information address in the SnippetCrash object. These are both needed to allow for downstream consumption of the exegesis library within Gematria. Full diff: https://github.com/llvm/llvm-project/pull/74211.diff 3 Files Affected:
|
This seemed to be the most minimally invasive set of changes to achieve what I needed to be able to use things downstream. I tried a couple alternatives, but couldn't get them to work or they weren't as clean. Happy if there are other suggestions that make things cleaner however. |
Bump on this when reviewers have a chance. Thanks! |
…ndling. Returns an error *and* a benchmark rather than an error *or* a benchmark. This allows users to have custom error handling while still being able to inspect the benchmark. Apart from this small API change, this is an NFC. This is an alternative to llvm#74211.
This patch adjust the runConfiguration function to allow passing a parameter to force returning SnippetCrashes as errors rather than serializing them as strings in the returned Benchmark object. In addition, this patch adds a getter for the signal information address in the SnippetCrash object.
These are both needed to allow for downstream consumption of the exegesis library within Gematria.