llvm-project/llvm/unittests
Chris Lattner b1ed91f397 Land the long talked about "type system rewrite" patch. This
patch brings numerous advantages to LLVM.  One way to look at it
is through diffstat:
 109 files changed, 3005 insertions(+), 5906 deletions(-)

Removing almost 3K lines of code is a good thing.  Other advantages
include:

1. Value::getType() is a simple load that can be CSE'd, not a mutating
   union-find operation.
2. Types a uniqued and never move once created, defining away PATypeHolder.
3. Structs can be "named" now, and their name is part of the identity that
   uniques them.  This means that the compiler doesn't merge them structurally
   which makes the IR much less confusing.
4. Now that there is no way to get a cycle in a type graph without a named
   struct type, "upreferences" go away.
5. Type refinement is completely gone, which should make LTO much MUCH faster
   in some common cases with C++ code.
6. Types are now generally immutable, so we can use "Type *" instead 
   "const Type *" everywhere.

Downsides of this patch are that it removes some functions from the C API,
so people using those will have to upgrade to (not yet added) new API.  
"LLVM 3.0" is the right time to do this.

There are still some cleanups pending after this, this patch is large enough
as-is.

llvm-svn: 134829
2011-07-09 17:41:24 +00:00
..
ADT Fix a subtle issue in SmallVector. The following code did not work as expected: 2011-07-06 22:36:59 +00:00
Analysis Make SCEVUnknown a CallbackVH, so that it can be notified directly 2010-08-02 23:49:30 +00:00
ExecutionEngine add some #includes that will soon be needed. 2011-06-16 21:36:36 +00:00
Support Fix the implementation of ConstantRange::sub(ConstantRange). Patch by Xi Wang! 2011-06-22 21:13:46 +00:00
Transforms Don't include Operator.h from InstrTypes.h. 2011-04-11 09:35:34 +00:00
VMCore Land the long talked about "type system rewrite" patch. This 2011-07-09 17:41:24 +00:00
CMakeLists.txt Land the long talked about "type system rewrite" patch. This 2011-07-09 17:41:24 +00:00
Makefile Merge System into Support. 2010-11-29 18:16:10 +00:00
Makefile.unittest build: Add MAKEFILE_UNITTEST_NO_INCLUDE_COMMON build variable, to be leveraged 2011-02-04 17:12:18 +00:00