Skip to content
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

Proposal: Whitelisting/Blacklisting on passes #882

Open
rdaly525 opened this issue Apr 28, 2020 · 0 comments
Open

Proposal: Whitelisting/Blacklisting on passes #882

rdaly525 opened this issue Apr 28, 2020 · 0 comments
Assignees

Comments

@rdaly525
Copy link
Owner

rdaly525 commented Apr 28, 2020

Issue: There is the need to both specify only applying passes to certain instances/modules/generators instead of all of them.

Proposal:

  1. Be able to specify a filter for applying passes "--filter *" or "--filter -*"
  2. Add ability to mark instances/modules/generators as either whitelisted or blacklisted for a particular pass
  3. Have a priority ordering where instances have highest priority, and generators have lowest priority

This is vaguely similar to the positive and negative globs in https://clang.llvm.org/extra/clang-tidy/#using-clang-tidy

This is a step towards having a pass framework with custom filtering options.

Immediate usecases:
-inlining of particular modules or instances
-flatten-types of particular modules.

@rdaly525 rdaly525 self-assigned this Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant