oota-llvm.git
21 years agoFix bug where pointers were assumed to always be 64 bits in size!
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

21 years agoThe new CFrontend generates LOTs of basic blocks that just fall through and do
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

21 years agoAllow specifying an input file for the program being executed
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

21 years agoAdd memcpy
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

21 years agoFix a problem with setcc instructions and pointers
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

21 years agoImplement a bunch of new external functions
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

21 years agoImplement &|^ on bool values
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

21 years agoAdd support for _IO_getc function used on linux
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

21 years agoFix problem where labels were being incorrectly elided, and fix problem
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

21 years agoFix the super obnoxious "cast to pointer from integer of different size" warnings
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

21 years ago* Implement access to external variables in LLI
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

21 years agoFix Bug: Linker/2003-04-23-LinkOnceLost.ll
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

21 years agoNew testcase
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

21 years agoTweak testcases to use linkonce as appropriate
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

21 years agoFix iterator invalidation problem with cast instructions
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

21 years agoImplement the constantexpr CAST instruction correctly
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

21 years agoWe now need to link libscalar to get the switch lowering pass
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

21 years agoRemove unnecessary &*
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

21 years agoRemove unnecesary &*'s
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

21 years agoRemove unneccesary &*
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

21 years agoKill unneccesary &*
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

21 years agoRemove documented problem that is now fixed
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

21 years agoProperly convert some &'s to &'s
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

21 years agoAdd support for the Switch instruction by running the lowerSwitch pass first
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

21 years agoAdd stub to create lowerSwitches pass
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

21 years agoNew pass to lower switch instructions to branch instructions
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

21 years agoMinor cleanups
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

21 years agoAllow autoconversion from ilist_iterator<T> to T* in a dyn_cast and friends
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

21 years agoAllow dyn_cast to operate on things that aren't OBVIOUSLY a pointer type.
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

21 years agoFixed 'prevalent'.
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

21 years agoJust some code beautification changes I had sitting around in my tree.
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

21 years agoFix bug: BasicAA/2003-04-22-GEPProblem.ll
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

21 years agoNew testcase
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

21 years agoKill using declarations
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

21 years agoImplement cast to bool
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

21 years agoGet rid of extraneous arguments to implementation functions
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

21 years agoAdd support to LLI for switch instruction
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

21 years agoUse a union to cast int to fp
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

21 years agoIt's "necessary"...
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

21 years agoAdd support for the switch instruction to the CWriter
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

21 years agoUpdate to add new keywords
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

21 years agoAdd warning when linking modules with disagreeing target properties
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

21 years agoEmit information about target
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

21 years agoAllow information about the target to be specified in the .ll file
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

21 years agoAdd testcase for target information
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

21 years agoADd newline to end of file
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

21 years agoNamespacify
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

21 years agoAdd support for reading and writing pointersize/endianness to and from bytecode
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

21 years agoBuild the appropriate target machine for the input pointer size and endianness
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

21 years agoAdd information about the module source
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

21 years agoPreserve module source information in the ModuleID
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

21 years agoPreserve the new moduleID field
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

21 years agoAdd support for tracking whether a module is 64/32 bit and big/little endian
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

21 years agoIt's "necessary" to spell "necessarily" correctly.
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

21 years agoMake stderr, stdout, stdin work with LLI
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

21 years agoFix wierd idiom
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

21 years agofprintf CAN take exactly 2 args
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

21 years agoAdd support for a simple constantexpr: cast of one ptr type to another
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

21 years agoFix bug: 2003-01-30-LinkerRename.ll
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

21 years agoFix linking a function with qualifiers to a external function declaration:
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

21 years agoNew testcase
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

21 years agoAdd support for allowing the user to extend the GCCLD searchpath
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

21 years agoFix bug where use still existed in dead code
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

21 years agoEliminate useless duplicate libraries
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

21 years agoAdd first support for linking in .a files correctly and minimally, like a real linker...
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

21 years agoAdd prototype to read .a files
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

21 years agoInitial support for reading standard .a files
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

21 years agoAdd support for reading unaligned bytecode buffers
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

21 years agoRemove arbitrary limitation
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

21 years agoUpdate testcases to match what is currently output by the CFE
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

21 years agoImplement: FunctionResolve/2003-04-18-ForwardDeclGlobal.ll
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

21 years agoAdd testcase for constantexpr gep
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

21 years agoTest case for forward declared global array with no size
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

21 years agoAdd crufty compatibility stuff for ld
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

21 years agoEliminate some compatibility stuff no longer needed :P
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

21 years agoUse anonymous namespace instead of "static"
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

21 years agoFix bug: Mem2reg/2003-04-18-DeadBlockProblem.ll
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

21 years agoNew testcase
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

21 years agoGlobal constants CAN be external
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

21 years agoFix a big bad bug I checked in yesterday :(
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

21 years agoRefactor CloneFunction to expose the new CloneBasicBlock function
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

21 years agoNew const_cast instead of c style cast
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

21 years agoAdd prototype for new CloneBasicBlock function
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

21 years agoAdd a simple test for hex constant integers
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

21 years agoAllow hexadecimal integer constants to be used
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

21 years agoDon't build constantexprs that could be folded
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

21 years agoAllow constant folding of GEP instructions, even if we don't do a whole lot yet.
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

21 years agoDon't force a ConstantPointer to be returned
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

21 years agoTest case to make sure that constexprs are automatically folded
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

21 years agoDon't support codegen passes in opt
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

21 years agoRemove codegen libraries to speed up linking opt
Chris Lattner [Wed, 16 Apr 2003 22:55:55 +0000 (22:55 +0000)]
Remove codegen libraries to speed up linking opt

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5796 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix bug: IndVarSimplify/2003-04-16-ExprAnalysis.ll
Chris Lattner [Wed, 16 Apr 2003 22:50:19 +0000 (22:50 +0000)]
Fix bug: IndVarSimplify/2003-04-16-ExprAnalysis.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5795 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNew testcase
Chris Lattner [Wed, 16 Apr 2003 22:46:16 +0000 (22:46 +0000)]
New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5794 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoChange the interface to constant expressions to allow automatic folding
Chris Lattner [Wed, 16 Apr 2003 22:40:51 +0000 (22:40 +0000)]
Change the interface to constant expressions to allow automatic folding

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5793 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAllow the user to disable the internalize pass
Chris Lattner [Wed, 16 Apr 2003 21:43:22 +0000 (21:43 +0000)]
Allow the user to disable the internalize pass

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5792 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd tests for linker and linkonce globals
Chris Lattner [Wed, 16 Apr 2003 21:21:35 +0000 (21:21 +0000)]
Add tests for linker and linkonce globals

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5791 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd support to the bytecode reader/writer for the new linkage types
Chris Lattner [Wed, 16 Apr 2003 21:16:05 +0000 (21:16 +0000)]
Add support to the bytecode reader/writer for the new linkage types

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5790 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoGive verbose error messages if bytecode file cannot be parsed
Chris Lattner [Wed, 16 Apr 2003 20:51:36 +0000 (20:51 +0000)]
Give verbose error messages if bytecode file cannot be parsed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5789 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd code to verify correctly linkages
Chris Lattner [Wed, 16 Apr 2003 20:42:40 +0000 (20:42 +0000)]
Add code to verify correctly linkages

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5788 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRevert modulo scheduling change that should be part of the modulo-sched pass itself,
Chris Lattner [Wed, 16 Apr 2003 20:30:02 +0000 (20:30 +0000)]
Revert modulo scheduling change that should be part of the modulo-sched pass itself,
not part of the Instruction class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5787 91177308-0d34-0410-b5e6-96231b3b80d8