-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm] Add utility functions to split, merge, and construct benchmarks.
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.
- Loading branch information
1 parent
e659791
commit edc5348
Showing
10 changed files
with
639 additions
and
38 deletions.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.