-
Notifications
You must be signed in to change notification settings - Fork 212
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
[VeriblePreProcessor][1]: multiple-cu and generate-variants modes #1372
Merged
hzeller
merged 17 commits into
chipsalliance:master
from
karimtera:pp_generate_variants_mode
Sep 2, 2022
Merged
[VeriblePreProcessor][1]: multiple-cu and generate-variants modes #1372
hzeller
merged 17 commits into
chipsalliance:master
from
karimtera:pp_generate_variants_mode
Sep 2, 2022
Commits on Sep 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f63ac1f - Browse repository at this point
Copy the full SHA f63ac1fView commit details -
constructing the control flow tree, to enable the preprocessor tool t…
…o generate all variants with the new mode generate-variants
Configuration menu - View commit details
-
Copy full SHA for 07f2c7c - Browse repository at this point
Copy the full SHA 07f2c7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 253f835 - Browse repository at this point
Copy the full SHA 253f835View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65198fd - Browse repository at this point
Copy the full SHA 65198fdView commit details -
using ABSL flags in preprocessor tool, edited the tool test just to p…
…ass for the moment.
Configuration menu - View commit details
-
Copy full SHA for 7040d39 - Browse repository at this point
Copy the full SHA 7040d39View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0f250e - Browse repository at this point
Copy the full SHA b0f250eView commit details -
- Adding comments in a separate line to avoid wrapping. - Providing an API to the user of FlowTree class to generate variants. - Using const_iterators instead of index in FlowTree class. - Using a struct to represents the conditional block as a unit inside FlowTree.
Configuration menu - View commit details
-
Copy full SHA for 0649948 - Browse repository at this point
Copy the full SHA 0649948View commit details -
Configuration menu - View commit details
-
Copy full SHA for 357d729 - Browse repository at this point
Copy the full SHA 357d729View commit details -
- Listed the macros as they appear in conditionals. - Gave each of them a unique ID and stored them in a map. - Used a more detailed if_blocks struct to help tracking edges. - Used bitset in DFS to know for each variant which macros are defined.
Configuration menu - View commit details
-
Copy full SHA for 7e5419e - Browse repository at this point
Copy the full SHA 7e5419eView commit details -
- Removed variants counter from the class members. - Added a new struct called Variant that contains all the vairant's data: - Its TokenSequence. - bitset that shows if the i-th macro is visited/assumed or not. - bitset that shows if the i-th macro is defined or not. - Modified the VariantReceiver to accepts the new struct Variant, instead of just TokenSequence. - GenerateControlFlowTree() is now a private function, such that GenerateVariants() is the only API the user needs. - Added a using declaration for std::bitset<128>.
Configuration menu - View commit details
-
Copy full SHA for c0ed68e - Browse repository at this point
Copy the full SHA c0ed68eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1eaa850 - Browse repository at this point
Copy the full SHA 1eaa850View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c70b69 - Browse repository at this point
Copy the full SHA 7c70b69View commit details -
- Added API GetUsedMacros that returns all the used macros in conditionals. - Changed "assumed" bitset name to "visited". - Added description to "ConditionalBlock". - Added more testing using closures. Preprocessor tool: - Kept the subcommand part. - Available subcommands for now "strip-comments", "multiple-cu", and "generate-variants".
Configuration menu - View commit details
-
Copy full SHA for 4006cf8 - Browse repository at this point
Copy the full SHA 4006cf8View commit details -
- Moved ConditionalBlock to private section in FlowTree class. - Removed unwanted debug code from the preprocessor tool. - Fixed output streams issues in the preprocessor tool.
Configuration menu - View commit details
-
Copy full SHA for b684664 - Browse repository at this point
Copy the full SHA b684664View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa29595 - Browse repository at this point
Copy the full SHA aa29595View commit details
Commits on Sep 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for eae3be0 - Browse repository at this point
Copy the full SHA eae3be0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37cc052 - Browse repository at this point
Copy the full SHA 37cc052View commit details
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.