Chris Lattner
|
b258ffd600
|
Allow for easy detection of when a "default" TargetData is created by the
passmanager, which is never the right thing to do.
llvm-svn: 5922
|
2003-04-25 02:50:45 +00:00 |
|
Chris Lattner
|
7b67a6e77d
|
Minor non-functional changes:
* Spell propagate right
* Improve performance of phi node handling
* Delete using directive
* Other minor changes
llvm-svn: 5920
|
2003-04-25 02:50:03 +00:00 |
|
Chris Lattner
|
e1c995e9b6
|
Fix bug: mem2reg/2003-04-24-MultipleIdenticalSuccessors.ll
llvm-svn: 5919
|
2003-04-25 00:54:58 +00:00 |
|
Chris Lattner
|
6e2ea5ccff
|
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!
llvm-svn: 5906
|
2003-04-24 20:07:38 +00:00 |
|
Chris Lattner
|
c06795629d
|
add a new targetdata ctor to create a target data appropriate to the module
llvm-svn: 5903
|
2003-04-24 19:09:05 +00:00 |
|
Chris Lattner
|
473df86e0b
|
Trivial cleanup
llvm-svn: 5899
|
2003-04-24 18:35:51 +00:00 |
|
Chris Lattner
|
3dbf3f0ac1
|
Make the levelraise pass be well behaved w.r.t the TargetData that the current
PassMAnager provides.
llvm-svn: 5896
|
2003-04-24 18:25:27 +00:00 |
|
Chris Lattner
|
043b4a7621
|
Fix iterator invalidation problem
llvm-svn: 5895
|
2003-04-24 17:52:20 +00:00 |
|
Chris Lattner
|
f0c01a508b
|
Make sure that the cloned module retains the type symbol table entries!
llvm-svn: 5894
|
2003-04-24 17:15:33 +00:00 |
|
Chris Lattner
|
868b3316c9
|
Make sure to preserve endiannes and pointer size when cloning modules!
llvm-svn: 5892
|
2003-04-24 15:54:40 +00:00 |
|
Chris Lattner
|
ec21fdc5ce
|
Fix bug where pointers were assumed to always be 64 bits in size!
llvm-svn: 5890
|
2003-04-23 20:41:01 +00:00 |
|
Chris Lattner
|
84efc8b467
|
Add memcpy
llvm-svn: 5887
|
2003-04-23 20:23:16 +00:00 |
|
Chris Lattner
|
55a3471dab
|
Fix a problem with setcc instructions and pointers
llvm-svn: 5886
|
2003-04-23 19:55:35 +00:00 |
|
Chris Lattner
|
34be06fad1
|
Implement a bunch of new external functions
llvm-svn: 5885
|
2003-04-23 19:55:24 +00:00 |
|
Chris Lattner
|
90d0ad7683
|
Implement &|^ on bool values
llvm-svn: 5884
|
2003-04-23 19:21:00 +00:00 |
|
Chris Lattner
|
48e894f97b
|
Add support for _IO_getc function used on linux
llvm-svn: 5883
|
2003-04-23 19:20:50 +00:00 |
|
Chris Lattner
|
7054d8f1f1
|
Fix problem where labels were being incorrectly elided, and fix problem
where PHI copies where not emitted for the default label of switch insts
llvm-svn: 5882
|
2003-04-23 19:15:13 +00:00 |
|
Chris Lattner
|
1e44b1562a
|
Fix the super obnoxious "cast to pointer from integer of different size" warnings
llvm-svn: 5881
|
2003-04-23 19:09:22 +00:00 |
|
Chris Lattner
|
896c6970fa
|
* Implement access to external variables in LLI
* Implement GetElementPtr constant expressions when initializing global variables
llvm-svn: 5880
|
2003-04-23 19:01:49 +00:00 |
|
Chris Lattner
|
b6050c264d
|
Fix Bug: Linker/2003-04-23-LinkOnceLost.ll
llvm-svn: 5879
|
2003-04-23 18:38:39 +00:00 |
|
Chris Lattner
|
6ae5107de6
|
Fix iterator invalidation problem with cast instructions
llvm-svn: 5876
|
2003-04-23 17:57:48 +00:00 |
|
Chris Lattner
|
c40d8cd8cd
|
Implement the constantexpr CAST instruction correctly
llvm-svn: 5875
|
2003-04-23 17:22:12 +00:00 |
|
Chris Lattner
|
9938a43aac
|
We now need to link libscalar to get the switch lowering pass
llvm-svn: 5874
|
2003-04-23 16:43:02 +00:00 |
|
Chris Lattner
|
db6b7ba364
|
Remove unnecesary &*'s
llvm-svn: 5872
|
2003-04-23 16:37:45 +00:00 |
|
Chris Lattner
|
3e687b8b65
|
Remove unneccesary &*
llvm-svn: 5871
|
2003-04-23 16:36:11 +00:00 |
|
Chris Lattner
|
ec5f9a7c4f
|
Add support for the Switch instruction by running the lowerSwitch pass first
llvm-svn: 5867
|
2003-04-23 16:24:55 +00:00 |
|
Chris Lattner
|
a9eaa10358
|
New pass to lower switch instructions to branch instructions
llvm-svn: 5865
|
2003-04-23 16:23:59 +00:00 |
|
Chris Lattner
|
d609c99c87
|
Minor cleanups
llvm-svn: 5863
|
2003-04-23 16:18:14 +00:00 |
|
Misha Brukman
|
c881f68151
|
Fixed 'prevalent'.
llvm-svn: 5860
|
2003-04-23 02:59:05 +00:00 |
|
Misha Brukman
|
1d82003535
|
Just some code beautification changes I had sitting around in my tree.
llvm-svn: 5859
|
2003-04-22 23:00:08 +00:00 |
|
Chris Lattner
|
72a506d1f2
|
Fix bug: BasicAA/2003-04-22-GEPProblem.ll
llvm-svn: 5858
|
2003-04-22 22:00:27 +00:00 |
|
Chris Lattner
|
4ffd4c9cd8
|
Kill using declarations
Kill code for invalid operations on pointers
llvm-svn: 5856
|
2003-04-22 21:22:33 +00:00 |
|
Chris Lattner
|
56dc44e98a
|
Implement cast to bool
llvm-svn: 5855
|
2003-04-22 21:15:56 +00:00 |
|
Chris Lattner
|
bdfa086221
|
Get rid of extraneous arguments to implementation functions
llvm-svn: 5852
|
2003-04-22 20:37:39 +00:00 |
|
Chris Lattner
|
43d3c3666b
|
Add support to LLI for switch instruction
llvm-svn: 5851
|
2003-04-22 20:34:47 +00:00 |
|
Chris Lattner
|
839e486b99
|
Use a union to cast int to fp
llvm-svn: 5849
|
2003-04-22 20:20:28 +00:00 |
|
Misha Brukman
|
4147d10d28
|
It's "necessary"...
llvm-svn: 5848
|
2003-04-22 20:20:11 +00:00 |
|
Chris Lattner
|
8ca18dd9fa
|
Add support for the switch instruction to the CWriter
llvm-svn: 5847
|
2003-04-22 20:19:52 +00:00 |
|
Chris Lattner
|
69b54208f4
|
Add warning when linking modules with disagreeing target properties
llvm-svn: 5845
|
2003-04-22 19:13:20 +00:00 |
|
Chris Lattner
|
fcad09d3c1
|
Emit information about target
llvm-svn: 5844
|
2003-04-22 19:07:19 +00:00 |
|
Chris Lattner
|
b70bd26701
|
Allow information about the target to be specified in the .ll file
llvm-svn: 5843
|
2003-04-22 19:07:06 +00:00 |
|
Chris Lattner
|
a39c962c1d
|
Namespacify
llvm-svn: 5840
|
2003-04-22 18:42:41 +00:00 |
|
Chris Lattner
|
08a79481cd
|
Add support for reading and writing pointersize/endianness to and from bytecode
llvm-svn: 5839
|
2003-04-22 18:15:10 +00:00 |
|
Chris Lattner
|
3327cb03d4
|
Preserve module source information in the ModuleID
llvm-svn: 5836
|
2003-04-22 18:02:52 +00:00 |
|
Chris Lattner
|
ce0beca3fc
|
Preserve the new moduleID field
llvm-svn: 5835
|
2003-04-22 18:02:26 +00:00 |
|
Chris Lattner
|
b5fc5522fb
|
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
llvm-svn: 5834
|
2003-04-22 18:02:04 +00:00 |
|
Misha Brukman
|
c06beb4c03
|
It's "necessary" to spell "necessarily" correctly.
llvm-svn: 5833
|
2003-04-22 17:54:23 +00:00 |
|
Chris Lattner
|
b315dbe98a
|
Make stderr, stdout, stdin work with LLI
llvm-svn: 5832
|
2003-04-21 22:44:36 +00:00 |
|
Chris Lattner
|
dd3c1121d0
|
Fix wierd idiom
llvm-svn: 5831
|
2003-04-21 22:43:32 +00:00 |
|
Chris Lattner
|
2fc856e8b6
|
fprintf CAN take exactly 2 args
llvm-svn: 5830
|
2003-04-21 22:43:20 +00:00 |
|