Chris Lattner
eba2b7cf61
Be const correct
...
llvm-svn: 826
2001-10-15 15:54:43 +00:00
Chris Lattner
a68fff6614
Minor code cleanups
...
llvm-svn: 825
2001-10-15 13:47:13 +00:00
Chris Lattner
d9c11e528c
Add cast_or_null & dyn_cast_or_null
...
llvm-svn: 824
2001-10-15 13:41:37 +00:00
Chris Lattner
554f1b941d
Implement initializers for structs and pointers
...
llvm-svn: 823
2001-10-15 13:25:40 +00:00
Chris Lattner
fd1ab08cba
Rename ConstPoolPointerReference to ConstPoolPointerRef - My fingers get tired typing that much
...
llvm-svn: 822
2001-10-15 13:21:42 +00:00
Chris Lattner
b66d7f5416
Improve error messages on assertion failure.
...
llvm-svn: 821
2001-10-15 13:13:32 +00:00
Chris Lattner
9754557583
* getExitNode() doesn't exist in method anymore
...
* Make local functions static
llvm-svn: 820
2001-10-15 13:07:21 +00:00
Vikram S. Adve
4ab6d41945
Added Instrumentation subdirectory.
...
llvm-svn: 819
2001-10-15 12:01:05 +00:00
Chris Lattner
af1d77e07c
Implement global variables. Struct and Pointer initializers are not implemented yet though
...
llvm-svn: 818
2001-10-15 05:51:48 +00:00
Chris Lattner
9c144fbb72
Implement linking of global variable constant references
...
llvm-svn: 817
2001-10-15 03:12:52 +00:00
Chris Lattner
16ffc9987c
Add some more interesting test cases for the linker
...
llvm-svn: 816
2001-10-15 03:11:58 +00:00
Chris Lattner
c65d902eee
Oops, didn't handle hex values correctly. :(
...
llvm-svn: 815
2001-10-15 00:05:03 +00:00
Chris Lattner
fc567e1535
* Fix the constpoolarray -> c"" printing routines to escape things properly
...
* Fix slightly broken sharing problems
* Do not escape the literal string passed in
llvm-svn: 814
2001-10-14 23:54:12 +00:00
Chris Lattner
657954e39b
*** empty log message ***
...
llvm-svn: 813
2001-10-14 23:34:12 +00:00
Chris Lattner
8dc436c6db
Minor cleanup
...
llvm-svn: 812
2001-10-14 23:29:30 +00:00
Vikram S. Adve
dc3f0d62c7
*** empty log message ***
...
llvm-svn: 811
2001-10-14 23:29:28 +00:00
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