[hls-fuzzer] Implement statistics for II - #991
Open
zero9178 wants to merge 3 commits into
Open
Conversation
zero9178
force-pushed
the
users/zero9179/ii-instrumentation
branch
from
July 29, 2026 11:59
bca04ee to
5ba2821
Compare
zero9178
marked this pull request as draft
July 29, 2026 12:48
zero9178
changed the base branch from
users/zero9179/ii-instrumentation
to
main
August 7, 2026 18:22
Multiple optimizations that we want to test are dependent on the II of the program. For this reason we want to be able to generate programs with either a wide variety or a specific bias regarding the II. To measure this property, this PR adds a new statistic that displays the II achieved during simulation. The measurements shown are 1) a histogram that for a given II shows how many times that II occurred, the number of loops in total (i.e. number of measurements for II) and the median II. Note that at the moment, if a loop is nested within another loop, then each loop iteration will be counted towards the II.
zero9178
force-pushed
the
users/zero9179/ii-statistic
branch
from
August 7, 2026 18:49
9841a0d to
f6e32c2
Compare
zero9178
marked this pull request as ready for review
August 7, 2026 18:49
Jiahui17
approved these changes
Aug 9, 2026
| size_t pos = ref.find("II_INSTRUMENT:"); | ||
| if (pos == llvm::StringRef::npos) | ||
| continue; | ||
|
|
Member
There was a problem hiding this comment.
Could you pls add an example of the JSON being parsed here?
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Multiple optimizations that we want to test are dependent on the II of the program. For this reason we want to be able to generate programs with either a wide variety or a specific bias regarding the II.
To measure this property, this PR adds a new statistic that displays the II achieved during simulation. The measurements shown are 1) a histogram that for a given II shows how many times that II occurred, the number of loops in total (i.e. number of measurements for II) and the median II.
Note that at the moment, if a loop is nested within another loop, then each loop iteration will be counted towards the II.
Depends on #988