Chris Lattner [Fri, 25 Apr 2003 21:47:33 +0000 (21:47 +0000)]
Fix bug: Assembler/2003-04-25-UnresolvedGlobalReference.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5948
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 20:09:17 +0000 (20:09 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5947
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 19:49:36 +0000 (19:49 +0000)]
Fix bugs in testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5946
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 18:44:30 +0000 (18:44 +0000)]
Add comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5945
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 18:28:44 +0000 (18:28 +0000)]
Only do the %ld -> %lld promotion when running a 64 bit bytecode on a 32 bit host
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5942
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 18:23:38 +0000 (18:23 +0000)]
Add __strdup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5941
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 18:03:06 +0000 (18:03 +0000)]
Fix BasicAA/2003-04-25-GEPCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5940
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 17:59:02 +0000 (17:59 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5939
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 06:15:05 +0000 (06:15 +0000)]
MAke sure that LLI properly configures align_of(double)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5938
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 06:06:43 +0000 (06:06 +0000)]
Whoops, 32 bit targets have _4_ byte pointers, not _32_ byte pointers!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5937
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 06:06:13 +0000 (06:06 +0000)]
Make sure to copy double alignment as well
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5936
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 06:05:57 +0000 (06:05 +0000)]
Fix compatibility bug: X86 aligns doubles to 4 bytes, not 8!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5935
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 05:26:11 +0000 (05:26 +0000)]
Kill using declarations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5934
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 05:23:27 +0000 (05:23 +0000)]
Fix method name type-o
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5933
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 05:23:10 +0000 (05:23 +0000)]
Fix obvious type-o
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5932
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 05:22:29 +0000 (05:22 +0000)]
Make sure to add a targetdata instance to the passmanager, and make it match the
one in use by the TargetMachine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5931
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 04:21:19 +0000 (04:21 +0000)]
Fix problem where we would read 64 bits worth of pointer information, even on 32 bit targets!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5930
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 03:35:10 +0000 (03:35 +0000)]
Fix major problem with PHI node traversal: rechecking PHIs should go into
the visit function. The worklist is for when their lattice value changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5927
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 03:16:33 +0000 (03:16 +0000)]
Rename Kept -> Suffix
FIX problem where we were incorrectly putting the prefix of the list into the "suffix" list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5926
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 03:16:05 +0000 (03:16 +0000)]
Rename Kept -> Suffix
Fix problem where we accidentally returned KeepPrefix instead of KeepSuffix!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5925
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 02:52:06 +0000 (02:52 +0000)]
** CORRECTLY, conservatively handle constant expressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5924
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 02:51:46 +0000 (02:51 +0000)]
*** Huge: Make constantexprs be handled correctly, conservatively
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5923
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 02:50:45 +0000 (02:50 +0000)]
Allow for easy detection of when a "default" TargetData is created by the
passmanager, which is never the right thing to do.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5922
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 02:50:19 +0000 (02:50 +0000)]
Default ctor doesn't provide name
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5921
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 02:50:03 +0000 (02:50 +0000)]
Minor non-functional changes:
* Spell propagate right
* Improve performance of phi node handling
* Delete using directive
* Other minor changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5920
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 00:54:58 +0000 (00:54 +0000)]
Fix bug: mem2reg/2003-04-24-MultipleIdenticalSuccessors.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5919
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 00:53:05 +0000 (00:53 +0000)]
Big programs have tons of global variable initializers, and most passes don't care
about them. Try to delete them if it doesn't affect the passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5918
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 00:52:30 +0000 (00:52 +0000)]
When cleaning up the final bytecode file, make sure to run DTE as well
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5917
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Apr 2003 00:46:14 +0000 (00:46 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5916
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 23:51:38 +0000 (23:51 +0000)]
Speed up convergence significantly and also reduce the size of testcases by making large portions of a function's CFG dead at a time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5915
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 22:54:06 +0000 (22:54 +0000)]
The big fix is this change:
- if (I->isExternal() && !Functions.count(I))
+ if (!I->isExternal() && !Functions.count(I))
We were not actually deleting any functions from the module!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5914
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 22:53:24 +0000 (22:53 +0000)]
Remove dead functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5913
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 22:53:01 +0000 (22:53 +0000)]
Make sure that deleted functions have external linkage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5912
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 22:24:58 +0000 (22:24 +0000)]
Use the list reducer to improve convergence speed and to support crashes that
only occur when multiple passes interact or when multiple functions exist in a module
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5911
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 22:24:22 +0000 (22:24 +0000)]
Adjust to match new ListReducer interface
Move function to generic code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5910
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 22:23:56 +0000 (22:23 +0000)]
Allow reducer interfaces to mutate the lists passed in
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5909
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 22:23:34 +0000 (22:23 +0000)]
Move function from Miscompilation.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5908
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 20:16:29 +0000 (20:16 +0000)]
Move the ListReducer Class into it's own header file instead of living in Miscompilation.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5907
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 20:07:38 +0000 (20:07 +0000)]
Fix a nasty bug where the ConstantMerge pass was invalidating the TargetData pass
even though it was immutable. Immutable passes should never end up in CurrentAnalyses!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5906
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 19:32:42 +0000 (19:32 +0000)]
Allow bugpoint to try new an different methods for pruning down lists
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5905
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 19:13:02 +0000 (19:13 +0000)]
Make sure to create a target data that matches the Module's target properties.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5904
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 19:09:05 +0000 (19:09 +0000)]
add a new targetdata ctor to create a target data appropriate to the module
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5903
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 19:08:45 +0000 (19:08 +0000)]
Add new targetdata ctor to create a targetdata appropriate to the module
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5902
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Apr 2003 18:41:30 +0000 (18:41 +0000)]
Remove support for "targetdata pass ctors"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5901
91177308-0d34-0410-b5e6-
96231b3b80d8
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