[PM] Complete the cross-layer interfaces with a Module-to-Function
authorChandler Carruth <chandlerc@gmail.com>
Sat, 23 Nov 2013 01:25:07 +0000 (01:25 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 23 Nov 2013 01:25:07 +0000 (01:25 +0000)
commite510665548d7291b7e935a17514f9380b770e26c
treefe82037c15e660725f6d73e99b1fd18c2d333619
parent2ea1151162206f6bbc744fa008150ba6266da4d9
[PM] Complete the cross-layer interfaces with a Module-to-Function
proxy. This lets a function pass query a module analysis manager.
However, the interface is const to indicate that only cached results can
be safely queried.

With this, I think the new pass manager is largely functionally complete
for modules and analyses. Still lots to test, and need to generalize to
SCCs and Loops, and need to build an adaptor layer to support the use of
existing Pass objects in the new managers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195538 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/PassManager.h
lib/IR/PassManager.cpp
unittests/IR/PassManagerTest.cpp