1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
Commit Graph

13 Commits

Author SHA1 Message Date
Rafael Espindola
c2b41dcccf Fix a small bug in the parsing of anonymous globals.
It was able to parse

hidden dllexport global i32 42

but not

dllexport global i32 42

llvm-svn: 210121
2014-06-03 20:07:32 +00:00
Chris Lattner
a106725fc5 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
Tanya Lattner
726c082fd5 Remove llvm-upgrade and update tests.
llvm-svn: 47784
2008-03-01 07:38:40 +00:00
Reid Spencer
7f5ef2d7a5 Use the llvm-upgrade program to upgrade llvm assembly.
llvm-svn: 32115
2006-12-02 04:23:10 +00:00
Reid Spencer
43e145ce25 Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
older features will be dropped soon and these test cases must not rely
on the upgrade capability.

llvm-svn: 31896
2006-11-23 15:14:52 +00:00
Tanya Lattner
8cb5895d16 Added RUN lines and dejagnu support for Feature dir.
llvm-svn: 17568
2004-11-07 06:08:43 +00:00
Chris Lattner
4493fbb3fe Add test for new zeroinitializer token
llvm-svn: 6936
2003-06-28 20:01:03 +00:00
Chris Lattner
f4abbab692 Test "external" modifier on global variable
Fix getelementptr instruction to use long isntead of uint index

llvm-svn: 4047
2002-10-06 22:32:38 +00:00
Chris Lattner
6890c815e9 Covnert tests to not use indexed load/stores
llvm-svn: 3454
2002-08-22 16:04:03 +00:00
Chris Lattner
b0112dd11a Update LLVM tests to use new pointer indexing, and remove unsized array test support
llvm-svn: 1474
2001-12-14 16:46:53 +00:00
Vikram S. Adve
c3cdcdcb43 Added a string global variable.
llvm-svn: 796
2001-10-14 23:13:45 +00:00
Chris Lattner
62945f1db1 Fix testcases to handle new syntax for construction and initializeation
Test constants

llvm-svn: 600
2001-09-18 04:38:50 +00:00
Chris Lattner
9d1629d688 Implement global variable support
llvm-svn: 530
2001-09-10 07:58:01 +00:00