Evan Cheng
c2cd2b29f5
Forgot a check.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36910 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-07 21:36:06 +00:00
Evan Cheng
c4e600362e
This is no longer needed after enabling the DAG combiner xform.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36909 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-07 21:29:41 +00:00
Evan Cheng
59d5b68dff
Enable a couple of xforms:
...
- (store (bitconvert v)) -> (store v) if resultant store does not require
higher alignment
- (bitconvert (load v)) -> (load (bitconvert*)v) if resultant load does not
require higher alignment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36908 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-07 21:27:48 +00:00
Dale Johannesen
7d33b4c59b
Handle some non-exit blocks in tail merging.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36907 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-07 20:57:21 +00:00
Duncan Sands
4fee7034d5
Parameter attributes on invoke calls were being lost due to the wrong
...
attribute index being used. Fix proposed by Anton Korobeynikov, who
asked me to implement and commit it for him. This is PR1398.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36906 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-07 20:49:28 +00:00
Duncan Sands
df8b1f0e8e
Testcase for PR1398.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36905 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-07 20:45:20 +00:00
Reid Spencer
295b1ceb4f
Initialize variable to null so it has a value in the off chance that a
...
memory buffer couldn't be allocated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36904 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-07 18:50:07 +00:00
Evan Cheng
5d286d8d6f
Update.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36903 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-07 17:58:13 +00:00
Jeff Cohen
0fea8ebb4a
Unbreak VC++ build.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36901 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-07 15:21:46 +00:00
Chris Lattner
065344dfd5
use the new MemoryBuffer interfaces to simplify error reporting in clients.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36900 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 23:45:49 +00:00
Chris Lattner
5499da8833
Enhance MemoryBuffer to return error messages in strings if they occur.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36899 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 23:32:36 +00:00
Chris Lattner
c57ed8b298
remove dead option
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36898 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 23:24:42 +00:00
Chris Lattner
c9bafdaa75
this is obsolete
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36897 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 23:21:05 +00:00
Chris Lattner
de36ffd2ca
link to the bitcode doc
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36896 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 23:20:06 +00:00
Chris Lattner
a0f9daf1bc
bzip2 is gone
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36895 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 23:18:44 +00:00
Chris Lattner
1ce6f8da72
Fix PR1395, by passing the ID correctly
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36894 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 23:13:56 +00:00
Anton Korobeynikov
4d396b1a47
Update fields
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36893 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 20:33:02 +00:00
Chris Lattner
31c2ec3afb
add this back
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36892 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 20:31:17 +00:00
Anton Korobeynikov
b682448ebd
Detabify
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36891 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 20:14:21 +00:00
Anton Korobeynikov
f13090c436
Update MSIL BE. This patch fixes most weird glitches outlined in
...
README.txt. Patch by Roman Samoilov!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36890 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 20:13:33 +00:00
Chris Lattner
f527cbb0f4
lib/Bytecode is dead
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36889 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:51:20 +00:00
Chris Lattner
38a5f74882
move this to lib/Archive
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36888 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:50:53 +00:00
Chris Lattner
6593380c0e
build lib/Archive instead of lib/Bytecode
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36887 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:50:06 +00:00
Chris Lattner
d61070e3ce
adjust this to live in lib/Archive
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36886 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:49:28 +00:00
Chris Lattner
4f40b75b01
remove bytecode headers
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36885 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:47:36 +00:00
Chris Lattner
663d7ddf63
remove dead header
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36884 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:46:23 +00:00
Chris Lattner
421e51603a
Fix a buggy conversion from bytecode to bitcode
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36883 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:43:09 +00:00
Chris Lattner
a066e378e9
remove bytecode reader
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36882 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:42:57 +00:00
Chris Lattner
b11f1a9ee1
remove the old bc writer
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36881 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:33:40 +00:00
Chris Lattner
5f32c01dea
fix off-by-one that caused the llvm2cpp test to fail
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36880 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:27:46 +00:00
Chris Lattner
51eeb6e536
remove libbzip2 from this. This should use llvm-config or something.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36879 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:21:48 +00:00
Chris Lattner
4eab2e57f9
Flush the file after writing bitcode so that clients who don't close their
...
ofstreams will be ok.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36878 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:19:23 +00:00
Chris Lattner
d44ae90fc8
make sure the ofstream for opt's output file is destroyed, so that the bits
...
actually land on disk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36877 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:17:23 +00:00
Chris Lattner
9e66233361
remove this file for now, we can bring it back from cvs if we need it in
...
the future (and integrate it with membuffer, etc)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36876 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:10:47 +00:00
Chris Lattner
d6f595946d
remove libbzip2, it is dead
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36875 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 19:05:34 +00:00
Duncan Sands
56a837be5e
Testcase for yet another global constant Ada f-e bug.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36874 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 16:20:30 +00:00
Nick Lewycky
ecd94c804a
Fix typo in comment.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36873 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 13:37:16 +00:00
Chris Lattner
744879ea01
switch tools to bitcode from bytecode
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36872 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 09:32:02 +00:00
Chris Lattner
73a978a753
don't build bzip2 for now
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36871 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 09:31:32 +00:00
Chris Lattner
dfa8d8c6ee
disable this for now
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36870 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 09:31:06 +00:00
Chris Lattner
beb4cb696d
don't build bcreader/bcwriter
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36869 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 09:30:31 +00:00
Chris Lattner
44dadffe4b
switch tools to bitcode instead of bytecode
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36868 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 09:29:57 +00:00
Chris Lattner
4bcca0f2ac
switch this to bitcode instead of bytecode
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36867 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 09:29:13 +00:00
Chris Lattner
c1d5624d71
Switch this over to bitcode instead of bytecode.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36866 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 09:28:33 +00:00
Chris Lattner
4cbc5485e0
Move this here from Bytecode/Archive.h
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36865 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 09:14:53 +00:00
Chris Lattner
33f1d5b328
Fix a nasty problem where we would miss enumeration of some types. This fixes
...
issues with CE_CAST etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36864 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 08:35:19 +00:00
Chris Lattner
b55a5803b2
allow zero-length arrays
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36863 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 08:22:10 +00:00
Chris Lattner
7108dce324
Allow structs with zero fields.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36862 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 08:21:50 +00:00
Chris Lattner
9850b57587
we aren't at the end of stream until we've consumed all the bytes AND all
...
the bits in those bytes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36861 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 08:12:09 +00:00
Bill Wendling
11d8fdaf6a
3DNowA implies 3DNow. 64-bit implies SSE1, SSE2, and I assume MMX.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36860 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-06 07:56:19 +00:00