-
Notifications
You must be signed in to change notification settings - Fork 129
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] Add utility functions to split and merge benchmarks. #772
Merged
ChrisCummins
merged 4 commits into
facebookresearch:development
from
ChrisCummins:feature/llvm-extract-one
Nov 3, 2022
Merged
[llvm] Add utility functions to split and merge benchmarks. #772
ChrisCummins
merged 4 commits into
facebookresearch:development
from
ChrisCummins:feature/llvm-extract-one
Nov 3, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
facebook-github-bot
added
the
CLA Signed
This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
label
Oct 31, 2022
ChrisCummins
force-pushed
the
feature/llvm-extract-one
branch
2 times, most recently
from
November 2, 2022 06:05
e1bea2d
to
edc5348
Compare
ChrisCummins
force-pushed
the
feature/llvm-extract-one
branch
from
November 2, 2022 06:33
edc5348
to
f0a8170
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## development #772 +/- ##
===============================================
+ Coverage 88.56% 88.88% +0.32%
===============================================
Files 131 131
Lines 8008 8063 +55
===============================================
+ Hits 7092 7167 +75
+ Misses 916 896 -20
|
This adds three utility functions: def make_benchmark_from_source( source: str, copt: Optional[List[str]] = None, lang: str = "c++", system_includes: bool = True, timeout: int = 600, ) -> Benchmark: ... def split_benchmark_by_function( benchmark: Benchmark, timeout: float = 300 ) -> List[Benchmark]: ... def merge_benchmarks( benchmarks: List[Benchmark], timeout: float = 300 ) -> Benchmark: ... Credit to @hughleat for llvm-extract-one, an extension of LLVM's llvm-extract that enables functions to be extracted by an integer index rather than by name. This enables extracting anonymous functions.
ChrisCummins
force-pushed
the
feature/llvm-extract-one
branch
from
November 2, 2022 18:59
c033465
to
19da5e6
Compare
kevinleestone
approved these changes
Nov 3, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your work on this. This LGTM.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
CLA Signed
This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
LLVM
LLVM-specific environment issue
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds three new utility functions for constructing LLVM benchmarks:
Credit to @hughleat for
llvm-extract-one
, an extension of LLVM'sllvm-extract
that enables functions to be extracted by an integer index rather than by name. This enables extracting anonymous functions.Todo before land