llvm-6502/unittests/IR
Chandler Carruth c49e7e6aee [PM] Add the preservation system to the new pass manager.
This adds a new set-like type which represents a set of preserved
analysis passes. The set is managed via the opaque PassT::ID() void*s.
The expected convenience templates for interacting with specific passes
are provided. It also supports a symbolic "all" state which is
represented by an invalid pointer in the set. This state is nicely
saturating as it comes up often. Finally, it supports intersection which
is used when finding the set of preserved passes after N different
transforms.

The pass API is then changed to return the preserved set rather than
a bool. This is much more self-documenting than the previous system.
Returning "none" is a conservatively correct solution just like
returning "true" from todays passes and not marking any passes as
preserved. Passes can also be dynamically preserved or not throughout
the run of the pass, and whatever gets returned is the binding state.
Finally, preserving "all" the passes is allowed for no-op transforms
that simply can't harm such things.

Finally, the analysis managers are changed to instead of blindly
invalidating all of the analyses, invalidate those which were not
preserved. This should rig up all of the basic preservation
functionality. This also correctly combines the preservation moving up
from one IR-layer to the another and the preservation aggregation across
N pass runs. Still to go is incrementally correct invalidation and
preservation across IR layers incrementally during N pass runs. That
will wait until we have a device for even exposing analyses across IR
layers.

While the core of this change is obvious, I'm not happy with the current
testing, so will improve it to cover at least some of the invalidation
that I can test easily in a subsequent commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195241 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-20 11:31:50 +00:00
..
AttributesTest.cpp Make one of the AttributeSet ctors maintain the invariant that the 2013-08-02 22:29:40 +00:00
CMakeLists.txt [PM] Start sketching out the new module and function pass manager. 2013-11-09 13:09:08 +00:00
ConstantsTest.cpp llvm/unittests: Use OwningPtr to fix --vg-leak. 2013-01-23 08:33:13 +00:00
DominatorTreeTest.cpp llvm/unittests: Use OwningPtr to fix --vg-leak. 2013-01-23 08:33:13 +00:00
InstructionsTest.cpp Add addrspacecast instruction. 2013-11-15 01:34:59 +00:00
IRBuilderTest.cpp Give unit test its own LLVMContext so MDNodes aren't leaked even if we never call llvm_shutdown. 2013-11-15 09:34:33 +00:00
LegacyPassManagerTest.cpp Move the old pass manager infrastructure into a legacy namespace and 2013-11-09 12:26:54 +00:00
Makefile
MDBuilderTest.cpp
MetadataTest.cpp
PassManagerTest.cpp [PM] Add the preservation system to the new pass manager. 2013-11-20 11:31:50 +00:00
PatternMatch.cpp PatternMatch: Matcher for (un)ordered floating point min/max 2013-05-05 01:54:46 +00:00
TypeBuilderTest.cpp
TypesTest.cpp
ValueMapTest.cpp
ValueTest.cpp Fix getOrInsertGlobal dropping the address space. 2013-09-30 21:23:03 +00:00
VerifierTest.cpp Add calls to doInitialization() and doFinalization() in verifyFunction() 2013-10-30 22:37:51 +00:00
WaymarkTest.cpp Revert patches to add case-range support for PR1255. 2013-09-09 19:14:35 +00:00