[PATCH] D83575: [NewPM] Allow passes to never be skipped

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 10 10:21:15 PDT 2020


aeubanks created this revision.
aeubanks added reviewers: ychen, asbirlea, hans.
Herald added a reviewer: bollu.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

PassInfoMixin now declares that passes inheriting from it are by default
optional. Using RequiredPassInfoMixin overrides the pass to be required.

All adaptors/managers must be required, since the pass(es) they are
wrapping may be required.

In the future, optnone and opt-bisect will use this mechanism to
determine which passes to skip.

This is an alternative to https://reviews.llvm.org/D82344, will add tests if we
decide to go with this approach.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83575

Files:
  llvm/include/llvm/Analysis/CGSCCPassManager.h
  llvm/include/llvm/IR/PassManager.h
  llvm/include/llvm/IR/PassManagerInternal.h
  llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
  polly/include/polly/ScopPass.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83575.277088.patch
Type: text/x-patch
Size: 4871 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200710/3901eafb/attachment.bin>


More information about the llvm-commits mailing list