[PM] Add a new-PM-style CGSCC pass manager using the newly added

Press ? to show keyboard shortcuts.
Committed
chandlercApr 21 2014, 4:12 AM
Parents
rL206744: [PM] Fix a bug where we didn't properly clear the list map when the list
Branches
Unknown
Tags
Unknown
Description

[PM] Add a new-PM-style CGSCC pass manager using the newly added
LazyCallGraph analysis framework. Wire it up all the way through the opt
driver and add some very basic testing that we can build pass pipelines
including these components. Still a lot more to do in terms of testing
that all of this works, but the basic pieces are here.

There is a *lot* of boiler plate here. It's something I'm going to
actively look at reducing, but I don't have any immediate ideas that
don't end up making the code terribly complex in order to fold away the
boilerplate. Until I figure out something to minimize the boilerplate,
almost all of this is based on the code for the existing pass managers,
copied and heavily adjusted to suit the needs of the CGSCC pass
management layer.

The actual CG management still has a bunch of FIXMEs in it. Notably, we
don't do *any* updating of the CG as it is potentially invalidated.
I wanted to get this in place to motivate the new analysis, and add
update APIs to the analysis and the pass management layers in concert to
make sure that the *right* APIs are present.

rL206745

llvm/trunk/include/llvm/Analysis/CGSCCPassManager.h

Loading...

llvm/trunk/lib/Analysis/CGSCCPassManager.cpp

Loading...

llvm/trunk/lib/Analysis/CMakeLists.txt

Loading...

llvm/trunk/test/Other/pass-pipeline-parsing.ll

Loading...

llvm/trunk/tools/opt/NewPMDriver.cpp

Loading...

llvm/trunk/tools/opt/PassRegistry.def

Loading...

llvm/trunk/tools/opt/Passes.cpp

Loading...

Add Comment