Chris Lattner [Thu, 24 Apr 2003 18:36:41 +0000 (18:36 +0000)]
Remove support for "target data" pass ctors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5900
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 18:35:51 +0000 (18:35 +0000)]
Trivial cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5899
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 18:26:03 +0000 (18:26 +0000)]
LevelRaise now gets target data from passmanager
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5898
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 18:25:42 +0000 (18:25 +0000)]
LevelRaise now gets TD from passmanager
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5897
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 18:25:27 +0000 (18:25 +0000)]
Make the levelraise pass be well behaved w.r.t the TargetData that the current
PassMAnager provides.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5896
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 17:52:20 +0000 (17:52 +0000)]
Fix iterator invalidation problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5895
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 17:15:33 +0000 (17:15 +0000)]
Make sure that the cloned module retains the type symbol table entries!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5894
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 17:02:17 +0000 (17:02 +0000)]
Implement support for bugpoint to identify which FUNCTION an optimization
is miscompiling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5893
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 15:54:40 +0000 (15:54 +0000)]
Make sure to preserve endiannes and pointer size when cloning modules!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5892
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 20:41:18 +0000 (20:41 +0000)]
Print where reference output goes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5891
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 20:41:01 +0000 (20:41 +0000)]
Fix bug where pointers were assumed to always be 64 bits in size!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5890
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 20:40:42 +0000 (20:40 +0000)]
The new CFrontend generates LOTs of basic blocks that just fall through and do
other funky stuff. Clean it up early.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5889
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 20:31:37 +0000 (20:31 +0000)]
Allow specifying an input file for the program being executed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5888
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 20:23:16 +0000 (20:23 +0000)]
Add memcpy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5887
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 19:55:35 +0000 (19:55 +0000)]
Fix a problem with setcc instructions and pointers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5886
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 19:55:24 +0000 (19:55 +0000)]
Implement a bunch of new external functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5885
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 19:21:00 +0000 (19:21 +0000)]
Implement &|^ on bool values
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5884
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 19:20:50 +0000 (19:20 +0000)]
Add support for _IO_getc function used on linux
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5883
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 19:15:13 +0000 (19:15 +0000)]
Fix problem where labels were being incorrectly elided, and fix problem
where PHI copies where not emitted for the default label of switch insts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5882
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 19:09:22 +0000 (19:09 +0000)]
Fix the super obnoxious "cast to pointer from integer of different size" warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5881
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 19:01:49 +0000 (19:01 +0000)]
* Implement access to external variables in LLI
* Implement GetElementPtr constant expressions when initializing global variables
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5880
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 18:38:39 +0000 (18:38 +0000)]
Fix Bug: Linker/2003-04-23-LinkOnceLost.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5879
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 18:38:24 +0000 (18:38 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5878
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 18:38:13 +0000 (18:38 +0000)]
Tweak testcases to use linkonce as appropriate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5877
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 17:57:48 +0000 (17:57 +0000)]
Fix iterator invalidation problem with cast instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5876
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 17:22:12 +0000 (17:22 +0000)]
Implement the constantexpr CAST instruction correctly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5875
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 16:43:02 +0000 (16:43 +0000)]
We now need to link libscalar to get the switch lowering pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5874
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 16:38:00 +0000 (16:38 +0000)]
Remove unnecessary &*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5873
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 16:37:45 +0000 (16:37 +0000)]
Remove unnecesary &*'s
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5872
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 16:36:11 +0000 (16:36 +0000)]
Remove unneccesary &*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5871
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 16:35:30 +0000 (16:35 +0000)]
Kill unneccesary &*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5870
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 16:26:15 +0000 (16:26 +0000)]
Remove documented problem that is now fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5869
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 16:25:38 +0000 (16:25 +0000)]
Properly convert some &'s to &'s
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5868
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 16:24:55 +0000 (16:24 +0000)]
Add support for the Switch instruction by running the lowerSwitch pass first
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5867
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 16:24:19 +0000 (16:24 +0000)]
Add stub to create lowerSwitches pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5866
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 16:23:59 +0000 (16:23 +0000)]
New pass to lower switch instructions to branch instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5865
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 16:18:14 +0000 (16:18 +0000)]
Minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5863
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 16:17:53 +0000 (16:17 +0000)]
Allow autoconversion from ilist_iterator<T> to T* in a dyn_cast and friends
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5862
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 23 Apr 2003 16:17:28 +0000 (16:17 +0000)]
Allow dyn_cast to operate on things that aren't OBVIOUSLY a pointer type.
These things can be converted to a pointer, like ilist_iterators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5861
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Wed, 23 Apr 2003 02:59:05 +0000 (02:59 +0000)]
Fixed 'prevalent'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5860
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Tue, 22 Apr 2003 23:00:08 +0000 (23:00 +0000)]
Just some code beautification changes I had sitting around in my tree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5859
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 22:00:27 +0000 (22:00 +0000)]
Fix bug: BasicAA/2003-04-22-GEPProblem.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5858
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 22:00:15 +0000 (22:00 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5857
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 21:22:33 +0000 (21:22 +0000)]
Kill using declarations
Kill code for invalid operations on pointers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5856
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 21:15:56 +0000 (21:15 +0000)]
Implement cast to bool
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5855
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 20:37:39 +0000 (20:37 +0000)]
Get rid of extraneous arguments to implementation functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5852
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 20:34:47 +0000 (20:34 +0000)]
Add support to LLI for switch instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5851
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 20:20:28 +0000 (20:20 +0000)]
Use a union to cast int to fp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5849
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Tue, 22 Apr 2003 20:20:11 +0000 (20:20 +0000)]
It's "necessary"...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5848
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 20:19:52 +0000 (20:19 +0000)]
Add support for the switch instruction to the CWriter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5847
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 19:31:55 +0000 (19:31 +0000)]
Update to add new keywords
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5846
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 19:13:20 +0000 (19:13 +0000)]
Add warning when linking modules with disagreeing target properties
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5845
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 19:07:19 +0000 (19:07 +0000)]
Emit information about target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5844
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 19:07:06 +0000 (19:07 +0000)]
Allow information about the target to be specified in the .ll file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5843
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 19:06:48 +0000 (19:06 +0000)]
Add testcase for target information
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5842
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 18:43:23 +0000 (18:43 +0000)]
ADd newline to end of file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5841
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 18:42:41 +0000 (18:42 +0000)]
Namespacify
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5840
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 18:15:10 +0000 (18:15 +0000)]
Add support for reading and writing pointersize/endianness to and from bytecode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5839
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 18:10:32 +0000 (18:10 +0000)]
Build the appropriate target machine for the input pointer size and endianness
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5838
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 18:03:13 +0000 (18:03 +0000)]
Add information about the module source
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5837
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 18:02:52 +0000 (18:02 +0000)]
Preserve module source information in the ModuleID
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5836
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 18:02:26 +0000 (18:02 +0000)]
Preserve the new moduleID field
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5835
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Apr 2003 18:02:04 +0000 (18:02 +0000)]
Add support for tracking whether a module is 64/32 bit and big/little endian
Also add a moduleID field which can be used for diagnostics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5834
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Tue, 22 Apr 2003 17:54:23 +0000 (17:54 +0000)]
It's "necessary" to spell "necessarily" correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5833
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Apr 2003 22:44:36 +0000 (22:44 +0000)]
Make stderr, stdout, stdin work with LLI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5832
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Apr 2003 22:43:32 +0000 (22:43 +0000)]
Fix wierd idiom
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5831
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Apr 2003 22:43:20 +0000 (22:43 +0000)]
fprintf CAN take exactly 2 args
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5830
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Apr 2003 21:33:44 +0000 (21:33 +0000)]
Add support for a simple constantexpr: cast of one ptr type to another
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5829
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Apr 2003 21:15:04 +0000 (21:15 +0000)]
Fix bug: 2003-01-30-LinkerRename.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5828
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Apr 2003 21:07:05 +0000 (21:07 +0000)]
Fix linking a function with qualifiers to a external function declaration:
Fixed bug: Linker/2003-04-21-Linkage.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5827
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Apr 2003 21:06:25 +0000 (21:06 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5826
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Apr 2003 19:53:24 +0000 (19:53 +0000)]
Add support for allowing the user to extend the GCCLD searchpath
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5825
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Apr 2003 19:15:26 +0000 (19:15 +0000)]
Fix bug where use still existed in dead code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5824
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 19 Apr 2003 23:07:33 +0000 (23:07 +0000)]
Eliminate useless duplicate libraries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5823
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 19 Apr 2003 22:44:38 +0000 (22:44 +0000)]
Add first support for linking in .a files correctly and minimally, like a real linker does
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5822
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 19 Apr 2003 21:45:52 +0000 (21:45 +0000)]
Add prototype to read .a files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5821
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 19 Apr 2003 21:45:34 +0000 (21:45 +0000)]
Initial support for reading standard .a files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5820
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 19 Apr 2003 21:45:17 +0000 (21:45 +0000)]
Add support for reading unaligned bytecode buffers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5819
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 19 Apr 2003 00:50:37 +0000 (00:50 +0000)]
Remove arbitrary limitation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5818
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 19 Apr 2003 00:17:11 +0000 (00:17 +0000)]
Update testcases to match what is currently output by the CFE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5817
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 19 Apr 2003 00:15:27 +0000 (00:15 +0000)]
Implement: FunctionResolve/2003-04-18-ForwardDeclGlobal.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5816
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 19 Apr 2003 00:15:00 +0000 (00:15 +0000)]
Add testcase for constantexpr gep
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5815
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 18 Apr 2003 23:46:44 +0000 (23:46 +0000)]
Test case for forward declared global array with no size
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5814
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 18 Apr 2003 23:38:22 +0000 (23:38 +0000)]
Add crufty compatibility stuff for ld
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5813
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 18 Apr 2003 23:38:09 +0000 (23:38 +0000)]
Eliminate some compatibility stuff no longer needed :P
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5812
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 18 Apr 2003 23:01:25 +0000 (23:01 +0000)]
Use anonymous namespace instead of "static"
Kill using decl
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5811
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 18 Apr 2003 19:25:22 +0000 (19:25 +0000)]
Fix bug: Mem2reg/2003-04-18-DeadBlockProblem.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5810
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 18 Apr 2003 19:22:39 +0000 (19:22 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5809
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 18 Apr 2003 04:34:29 +0000 (04:34 +0000)]
Global constants CAN be external
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5808
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 18 Apr 2003 04:11:56 +0000 (04:11 +0000)]
Fix a big bad bug I checked in yesterday :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5807
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 18 Apr 2003 03:50:09 +0000 (03:50 +0000)]
Refactor CloneFunction to expose the new CloneBasicBlock function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5806
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 18 Apr 2003 03:49:49 +0000 (03:49 +0000)]
New const_cast instead of c style cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5805
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 18 Apr 2003 03:49:22 +0000 (03:49 +0000)]
Add prototype for new CloneBasicBlock function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5804
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 17 Apr 2003 22:19:23 +0000 (22:19 +0000)]
Add a simple test for hex constant integers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5803
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 17 Apr 2003 22:17:32 +0000 (22:17 +0000)]
Allow hexadecimal integer constants to be used
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5802
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 17 Apr 2003 19:24:48 +0000 (19:24 +0000)]
Don't build constantexprs that could be folded
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5801
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 17 Apr 2003 19:24:18 +0000 (19:24 +0000)]
Allow constant folding of GEP instructions, even if we don't do a whole lot yet.
Fold ConstExpr casts better
castToPointer shouldn't be forced to return a constantpointer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5800
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 17 Apr 2003 19:22:47 +0000 (19:22 +0000)]
Don't force a ConstantPointer to be returned
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5799
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 17 Apr 2003 19:21:22 +0000 (19:21 +0000)]
Test case to make sure that constexprs are automatically folded
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5798
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 16 Apr 2003 23:02:16 +0000 (23:02 +0000)]
Don't support codegen passes in opt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5797
91177308-0d34-0410-b5e6-
96231b3b80d8