OSDN Git Service

[Polly][PM] Register polly passes with the opt tool for the new-pm path
authorPhilip Pfaffe <philip.pfaffe@gmail.com>
Fri, 4 Aug 2017 09:28:09 +0000 (09:28 +0000)
committerPhilip Pfaffe <philip.pfaffe@gmail.com>
Fri, 4 Aug 2017 09:28:09 +0000 (09:28 +0000)
commit389880910a2da533fbda53cdf5ddf344f70f591f
tree63f283b030ee87195809f9f8370a7f0576bf335e
parentb7e74df94f8a8725c9beb632a34c91ee1294f8b1
[Polly][PM] Register polly passes with the opt tool for the new-pm path

Summary: When polly is linked into the tools because of the LLVM_POLLY_LINK_INTO_TOOLS option being set, we need to register its passes with the PassBuilder. Because polly is linked in, we can directly call its callback registration method, which registers the appropriate callbacks with the new PM's PassBuilder. This essentially follows exactly the way it worked with the legacy PM.

Reviewers: grosser, chandlerc, bollu

Reviewed By: grosser

Subscribers: pollydev, llvm-commits

Differential Revision: https://reviews.llvm.org/D36273

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310043 91177308-0d34-0410-b5e6-96231b3b80d8
tools/opt/NewPMDriver.cpp