Chris Lattner
9f4d1bcb25
Implement linker. It's 95% working now.
...
llvm-svn: 810
2001-10-14 23:29:15 +00:00
Chris Lattner
fcc8c249da
More interesting testcase
...
llvm-svn: 809
2001-10-14 23:28:56 +00:00
Vikram S. Adve
54bfbca17f
Forward operands into implicit uses as well as explicit ones.
...
llvm-svn: 808
2001-10-14 23:28:43 +00:00
Chris Lattner
9acb843577
External methods shouldn't have argument lists
...
llvm-svn: 807
2001-10-14 23:28:41 +00:00
Chris Lattner
c86be70de5
Update comment, remove misleading method
...
llvm-svn: 806
2001-10-14 23:26:24 +00:00
Chris Lattner
7de225b35d
Initializers are not const even if the GV is.
...
llvm-svn: 805
2001-10-14 23:24:46 +00:00
Chris Lattner
ff0aa0fb39
Add a new -d argument to dump the internal rep as assembly.
...
llvm-svn: 804
2001-10-14 23:23:33 +00:00
Vikram S. Adve
ebdf1737c4
Cast NULL when requested.
...
llvm-svn: 803
2001-10-14 23:21:06 +00:00
Vikram S. Adve
c46b4eb5fe
Added getEntryNode() and getExitNode() functions.
...
The latter are actually bogus and will be fixed by me soon.
llvm-svn: 802
2001-10-14 23:20:44 +00:00
Vikram S. Adve
a62d1703a1
Insert code to trace values at basic block and method exits.
...
llvm-svn: 801
2001-10-14 23:19:02 +00:00
Vikram S. Adve
8d61ebc675
Insert code to trace values at basic block and method exits.
...
Current version does not check for liveness.
llvm-svn: 800
2001-10-14 23:18:45 +00:00
Vikram S. Adve
b14610286e
Added routine to create a char array for a string.
...
Also, print char arrays as strings.
llvm-svn: 799
2001-10-14 23:17:20 +00:00
Vikram S. Adve
8a6626476e
Added routine to create a char array for a string.
...
llvm-svn: 798
2001-10-14 23:16:27 +00:00
Vikram S. Adve
167f77cf9e
Enable most tests.
...
llvm-svn: 797
2001-10-14 23:15:42 +00:00
Vikram S. Adve
c3cdcdcb43
Added a string global variable.
...
llvm-svn: 796
2001-10-14 23:13:45 +00:00
Vikram S. Adve
45536008e9
Two bug fixes that were suppressing some "load-constant-into-register" instrs.
...
llvm-svn: 795
2001-10-14 18:10:33 +00:00
Chris Lattner
f1104f9d8a
Move the burg file to here. Add .in suffix to indicate that it gets
...
preprocessed before burg gets to it
llvm-svn: 794
2001-10-14 17:26:21 +00:00
Chris Lattner
23de05d818
Make the sparc.burg file be a little more flexible and rubust in the fact of
...
renumbering of instructions. It is still horribly broken and grossly dependant on the number of instructions, but now it is a least a little better.
Oh yeah it also works now.
llvm-svn: 793
2001-10-14 17:25:31 +00:00
Chris Lattner
42433c96b6
Use the instruction.def file to remain up to date with future instruction
...
changes
llvm-svn: 792
2001-10-14 17:24:50 +00:00
Chris Lattner
a23671c6ba
New file to define instructions...
...
llvm-svn: 791
2001-10-14 17:24:33 +00:00
Chris Lattner
38e243d607
Burg files should come out of the Debug Directory for temporary files
...
llvm-svn: 790
2001-10-14 17:23:55 +00:00
Chris Lattner
b789255b4e
New module linking functionality prototype
...
llvm-svn: 789
2001-10-13 16:57:49 +00:00
Chris Lattner
110d64205d
Check in makefile
...
llvm-svn: 788
2001-10-13 16:57:03 +00:00
Vikram S. Adve
e4046c66cb
Fixed tags target so it only happens at root level.
...
llvm-svn: 787
2001-10-13 12:26:59 +00:00
Chris Lattner
0f05f26ebe
Add C source for testmisc.ll
...
llvm-svn: 786
2001-10-13 07:32:16 +00:00
Chris Lattner
d4a327ff93
Dang, I screwed up the merge. This should be better
...
llvm-svn: 785
2001-10-13 07:18:40 +00:00
Chris Lattner
37f333c513
New testcase for testing constant pointers to globals
...
llvm-svn: 784
2001-10-13 07:16:11 +00:00
Chris Lattner
9e3b13cc29
Test files for linker
...
llvm-svn: 783
2001-10-13 07:15:38 +00:00
Chris Lattner
96e32057bc
MethodTypes take an explicit isVarArg argument
...
llvm-svn: 782
2001-10-13 07:07:28 +00:00
Chris Lattner
98615da75e
Fix comment flyer
...
llvm-svn: 781
2001-10-13 07:06:57 +00:00
Chris Lattner
9ceec4152d
Add new linker
...
llvm-svn: 780
2001-10-13 07:06:23 +00:00
Chris Lattner
38eaf883e9
Build the new linker
...
llvm-svn: 779
2001-10-13 07:06:06 +00:00
Chris Lattner
d4651b7cbf
Use null keyword instead of kludge
...
llvm-svn: 778
2001-10-13 07:05:51 +00:00
Chris Lattner
bcd3ec56b0
Add more function call and prototype specific tests
...
llvm-svn: 777
2001-10-13 07:05:07 +00:00
Chris Lattner
d6bf618e62
Compile the transforms directory
...
llvm-svn: 776
2001-10-13 07:04:00 +00:00
Chris Lattner
9d7255f19c
Start of a linker
...
llvm-svn: 775
2001-10-13 07:03:50 +00:00
Chris Lattner
24d2022f4e
Implement the invoke instruction
...
llvm-svn: 774
2001-10-13 07:01:45 +00:00
Chris Lattner
77672f99ab
* Fix a nefarious bugs: TypesEqual was wrong for varargs methods
...
* MethodType::get now takes a literal isVarArg method argument
* Use new style casts
llvm-svn: 773
2001-10-13 07:01:33 +00:00
Chris Lattner
5df2c60a5f
Convert a runtime check into an assertion
...
llvm-svn: 772
2001-10-13 06:58:56 +00:00
Chris Lattner
fe9768f73b
* Add support for Module specific constants
...
* Add proper support for ConstPoolPointerReference's
llvm-svn: 771
2001-10-13 06:58:40 +00:00
Chris Lattner
28a5ef9c3d
Add new TerminatorInst ctor for invoke
...
llvm-svn: 770
2001-10-13 06:57:47 +00:00
Chris Lattner
9fd302d22b
* Fix TODO
...
* Support ConstPoolPOinterReferences correctly
* New constPoolPointerNull subclass
* Add classof support for more classes
* Add proper support for ConstPoolPointerReference::getStrValue()
llvm-svn: 769
2001-10-13 06:57:33 +00:00
Chris Lattner
e479974c19
Fix broken #endif
...
llvm-svn: 768
2001-10-13 06:54:54 +00:00
Chris Lattner
9fb95b57db
* Add #include
...
* Fix #endif problems
* Change to getCalledValue instead of getCalledMethod
llvm-svn: 767
2001-10-13 06:54:30 +00:00
Chris Lattner
57781f7fda
Add StringList support
...
llvm-svn: 766
2001-10-13 06:53:19 +00:00
Chris Lattner
4c81efaf8e
Support the invoke instruction
...
llvm-svn: 765
2001-10-13 06:52:41 +00:00
Chris Lattner
8314c1f1bc
Support indirect calls
...
llvm-svn: 764
2001-10-13 06:52:31 +00:00
Chris Lattner
f29cb6207e
not is a keyword in ansi C++, avoid it
...
llvm-svn: 763
2001-10-13 06:51:26 +00:00
Chris Lattner
b9e0153cfe
* Fix privacy issues on RegToRefVecMap
...
* Fix initialization order problems...
llvm-svn: 762
2001-10-13 06:51:01 +00:00
Chris Lattner
21a0de20bf
* Use new style casts more
...
* Add real support for global variable addresses initializing constants
* Fix encoding/decoding of VarArgs calls
* Support the Invoke instruction
llvm-svn: 761
2001-10-13 06:48:38 +00:00