Commit Graph

298797 Commits

Author SHA1 Message Date
Vikram S. Adve
a200a6c583 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
34410432da 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
227ea168bd Added routine to create a char array for a string.
llvm-svn: 798
2001-10-14 23:16:27 +00:00
Vikram S. Adve
8514ec3186 Enable most tests.
llvm-svn: 797
2001-10-14 23:15:42 +00:00
Vikram S. Adve
0504bf4616 Added a string global variable.
llvm-svn: 796
2001-10-14 23:13:45 +00:00
Vikram S. Adve
1679709b71 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
b3368ac9db 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
1a176f15dc 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
9853942d66 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
00987bb11a New file to define instructions...
llvm-svn: 791
2001-10-14 17:24:33 +00:00
Chris Lattner
082479a583 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
8015f958c6 New module linking functionality prototype
llvm-svn: 789
2001-10-13 16:57:49 +00:00
Chris Lattner
1362299644 Check in makefile
llvm-svn: 788
2001-10-13 16:57:03 +00:00
Vikram S. Adve
a0e99085b2 Fixed tags target so it only happens at root level.
llvm-svn: 787
2001-10-13 12:26:59 +00:00
Chris Lattner
83d64a068d Add C source for testmisc.ll
llvm-svn: 786
2001-10-13 07:32:16 +00:00
Chris Lattner
9b69cae4d9 Dang, I screwed up the merge. This should be better
llvm-svn: 785
2001-10-13 07:18:40 +00:00
Chris Lattner
1600652b24 New testcase for testing constant pointers to globals
llvm-svn: 784
2001-10-13 07:16:11 +00:00
Chris Lattner
1be86ca6a9 Test files for linker
llvm-svn: 783
2001-10-13 07:15:38 +00:00
Chris Lattner
a8f29f8a80 MethodTypes take an explicit isVarArg argument
llvm-svn: 782
2001-10-13 07:07:28 +00:00
Chris Lattner
6d56c6b5b6 Fix comment flyer
llvm-svn: 781
2001-10-13 07:06:57 +00:00
Chris Lattner
9d810e0494 Add new linker
llvm-svn: 780
2001-10-13 07:06:23 +00:00
Chris Lattner
5de85fcb7f Build the new linker
llvm-svn: 779
2001-10-13 07:06:06 +00:00
Chris Lattner
a652ce3b1a Use null keyword instead of kludge
llvm-svn: 778
2001-10-13 07:05:51 +00:00
Chris Lattner
dcd96760f6 Add more function call and prototype specific tests
llvm-svn: 777
2001-10-13 07:05:07 +00:00
Chris Lattner
1efb6bc30e Compile the transforms directory
llvm-svn: 776
2001-10-13 07:04:00 +00:00
Chris Lattner
b7b537f192 Start of a linker
llvm-svn: 775
2001-10-13 07:03:50 +00:00
Chris Lattner
cc17a7af5a Implement the invoke instruction
llvm-svn: 774
2001-10-13 07:01:45 +00:00
Chris Lattner
74a0151acb * 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
2ec97a2b9c Convert a runtime check into an assertion
llvm-svn: 772
2001-10-13 06:58:56 +00:00
Chris Lattner
446ad50c30 * 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
3b88b14312 Add new TerminatorInst ctor for invoke
llvm-svn: 770
2001-10-13 06:57:47 +00:00
Chris Lattner
d7a7330e97 * 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
8deb9e588e Fix broken #endif
llvm-svn: 768
2001-10-13 06:54:54 +00:00
Chris Lattner
a742b6acf3 * Add #include
* Fix #endif problems
* Change to getCalledValue instead of getCalledMethod

llvm-svn: 767
2001-10-13 06:54:30 +00:00
Chris Lattner
675db8db26 Add StringList support
llvm-svn: 766
2001-10-13 06:53:19 +00:00
Chris Lattner
f0b68888af Support the invoke instruction
llvm-svn: 765
2001-10-13 06:52:41 +00:00
Chris Lattner
cfc2f446a6 Support indirect calls
llvm-svn: 764
2001-10-13 06:52:31 +00:00
Chris Lattner
9be166000d not is a keyword in ansi C++, avoid it
llvm-svn: 763
2001-10-13 06:51:26 +00:00
Chris Lattner
2b3369567e * Fix privacy issues on RegToRefVecMap
* Fix initialization order problems...

llvm-svn: 762
2001-10-13 06:51:01 +00:00
Chris Lattner
81125b6c48 * 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
Chris Lattner
fb49fd6642 * Add real support for global variable addresses initializing constants
* Add minor optimization to BytecodeParser::refineAbstractType
* MethodType::get now take an explicit isVarArg parameter
* Fix encoding/decoding of VarArgs calls
* Support the Invoke instruction

llvm-svn: 760
2001-10-13 06:47:01 +00:00
Chris Lattner
862e338b46 * Support writing GlobalVariables with info comments by them
* Print out prototypes correctly in cases that we weren't before
* Use new style casts more
* Support printing new invoke instruction

llvm-svn: 759
2001-10-13 06:42:36 +00:00
Chris Lattner
f26e0d9ffe * Add support for forward references of global variable addresses
* Add support for numeric global variable addresses
* Clean up getVal function by refactoring it into several smaller functions
* MethodTypes are now specified with an explicit isVarArg parameter
* Break ValueRef into ConstValueRef & SymbolicValueRef components
* Add support for the new Invoke instruction
* Fix a few broken calls to Type::getName instead of Type::getDescription

llvm-svn: 758
2001-10-13 06:41:08 +00:00
Chris Lattner
930f610ea5 Add operator< to ValID's so that they can be put in map's
llvm-svn: 757
2001-10-13 06:37:47 +00:00
Chris Lattner
fc4c5040aa Remove exception specification
llvm-svn: 756
2001-10-13 06:37:27 +00:00
Chris Lattner
3d4b290757 Support the new Invoke instruction
llvm-svn: 755
2001-10-13 06:37:14 +00:00
Chris Lattner
1907f4e8cc Support pointers to globals happily
llvm-svn: 754
2001-10-13 06:35:09 +00:00
Chris Lattner
f7d66a73ce Fix code to make GCC 2.96 happy
llvm-svn: 753
2001-10-13 06:34:47 +00:00
Chris Lattner
8cbbbef674 * Add support for Invoke instructions
* Add support for indirect calls

llvm-svn: 752
2001-10-13 06:33:19 +00:00
Chris Lattner
ea85fe365e Fix filename in comment
llvm-svn: 751
2001-10-13 06:32:42 +00:00