coreir icon indicating copy to clipboard operation
coreir copied to clipboard

Proposal: Whitelisting/Blacklisting on passes

Open rdaly525 opened this issue 4 years ago • 0 comments

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 avatar Apr 28 '20 19:04 rdaly525