Oscar Fuentes
94e470504f
CMake: Updated library dependencies and list of source files.
...
llvm-svn: 79876
2009-08-23 23:59:15 +00:00
Chris Lattner
96cffa63a2
remove the dead std::ostream APInt inserter
...
llvm-svn: 79875
2009-08-23 23:11:28 +00:00
Chris Lattner
befdbd91cc
remove this test: it is testing for a "feature" I just removed.
...
llvm-svn: 79874
2009-08-23 23:01:02 +00:00
Chris Lattner
30ebdc4311
remove the last uses of Config/alloca.h
...
llvm-svn: 79873
2009-08-23 22:57:38 +00:00
Chris Lattner
486fcad4a8
fix some problems with my last patch which happen when one of
...
(HAVE_GV && (HAVE_DOT || HAVE_FDP || HAVE_NEATO || \
HAVE_TWOPI || HAVE_CIRCO))
are true.
llvm-svn: 79872
2009-08-23 22:53:53 +00:00
Chris Lattner
f6f5b5bcdb
just remove interpreter support for endianness mismatches. This was
...
really old code from when we were running sparcv9 bc files on x86
(before I ported llvm-gcc 3 to work on x86) :)
llvm-svn: 79871
2009-08-23 22:50:28 +00:00
Chris Lattner
390d78b3d0
remove use of alloca.h
...
llvm-svn: 79870
2009-08-23 22:49:13 +00:00
Chris Lattner
c521f54198
Prune #includes from llvm/Linker.h and llvm/System/Path.h,
...
forcing them down into various .cpp files.
This change also:
1. Renames TimeValue::toString() and Path::toString() to ::str()
for similarity with the STL.
2. Removes all stream insertion support for sys::Path, forcing
clients to call .str().
3. Removes a use of Config/alloca.h from bugpoint, using smallvector
instead.
4. Weans llvm-db off <iostream>
sys::Path really needs to be gutted, but I don't have the desire to
do it at this point.
llvm-svn: 79869
2009-08-23 22:45:37 +00:00
Chris Lattner
5db2ff5037
disuade people from using ostream.
...
llvm-svn: 79866
2009-08-23 21:53:47 +00:00
Chris Lattner
1518c64a23
llvm/Support/Streams.h is now dead, zap it.
...
llvm-svn: 79865
2009-08-23 21:50:26 +00:00
Chris Lattner
f31ef09249
Switch SubtargetFeature off of ostreams
...
llvm-svn: 79864
2009-08-23 21:41:43 +00:00
Chris Lattner
b9f25f9e19
eliminate the ostream version of CheckBitcodeOutputToConsole,
...
change the raw_ostream one to take the raw_ostream byref instead
of byptr. Prune #includes, eliminate a use of Streams.h
llvm-svn: 79863
2009-08-23 21:36:09 +00:00
Daniel Dunbar
47a309c5ca
Fix off-by-one in llvm::Format::print.
...
- This also shortens the Format.h implementation, and uses the print buffer
fully (it was wasting a character).
- This manifested as llvm-test failures, because one side effect was that
raw_ostream would write garbage '\x00' values into the output stream if it
happened that the string was at the end of the buffer. This meant that grep
would report 'Binary file matches', which meant the silly pattern matching
llvm-test eventually does would fail. Cute. :)
llvm-svn: 79862
2009-08-23 20:31:39 +00:00
Jim Grosbach
1b0436bd1b
SJLJ pass needs to punt if there's no personality function available.
...
llvm-svn: 79858
2009-08-23 18:13:48 +00:00
Chris Lattner
36b3caf9c0
clean up #includes.
...
llvm-svn: 79857
2009-08-23 18:09:02 +00:00
Daniel Dunbar
a9e1d3f065
Rerevert (r75663 and r76805), seems there is more non-determinism.
...
llvm-svn: 79856
2009-08-23 17:26:24 +00:00
Jakob Stoklund Olesen
972c8fab51
Fix PR4753.
...
When undoing a reuse in ReuseInfo::GetRegForReload, check if it was only a
sub-register being used. The MachineOperand::getSubReg() method is only valid
for virtual registers, so we have to recover the sub-register index manually.
llvm-svn: 79855
2009-08-23 13:01:45 +00:00
Benjamin Kramer
940fbb0e3c
Remove Streams.h from the targets.
...
llvm-svn: 79853
2009-08-23 11:52:17 +00:00
Benjamin Kramer
1a25d733f9
Kill off more cerr/cout uses and prune includes a bit.
...
llvm-svn: 79852
2009-08-23 11:37:21 +00:00
Daniel Dunbar
2982196fca
Speculatively revert r76823 (i.e., reapply r75663 and r76805) to see if the real
...
problem is fixed by the TableGen determinism fix.
llvm-svn: 79851
2009-08-23 10:44:51 +00:00
Benjamin Kramer
c2dbd5d671
Try to fix MSVC build after r79846.
...
llvm-svn: 79850
2009-08-23 10:39:21 +00:00
Daniel Dunbar
5e0a58bef4
Fix -Asserts warnings.
...
llvm-svn: 79849
2009-08-23 10:29:55 +00:00
Benjamin Kramer
c9aa480832
Remove uses of Streams.h from CommandLine.cpp, fix some whitespace and other minor tweaks.
...
llvm-svn: 79847
2009-08-23 10:01:13 +00:00
Daniel Dunbar
ced008152f
Fix non-determinism in DAGISel emitter.
...
- This manifested as non-determinism in the .inc output in rare cases (when two
distinct patterns ended up being equivalent, which is rather rare). That
meant the pattern matching was non-deterministic, which could eventually mean
the code generator selected different instructions based on the arch.
- It's probably worth making the DAGISel ensure a total ordering (or force the
user to), but the simple fix here is to totally order the Record* maps based
on a unique ID.
- PR4672, PR4711.
Yay:
--
ddunbar@giles:~$ cat ~/llvm.obj.64/lib/Target/*/*.inc | shasum
d1099ff34b21459a5a3e7021c225c080e6017ece -
ddunbar@giles:~$ cat ~/llvm.obj.ppc/lib/Target/*/*.inc | shasum
d1099ff34b21459a5a3e7021c225c080e6017ece -
--
llvm-svn: 79846
2009-08-23 09:47:37 +00:00
Benjamin Kramer
b451afb5f2
Fix windows build.
...
llvm-svn: 79845
2009-08-23 08:57:52 +00:00
Daniel Dunbar
34ee203337
Fix some refactos for iostream changes (in -Asserts mode).
...
- The world needs better C++ refactoring tools, can I get an Amen!?
llvm-svn: 79843
2009-08-23 08:50:52 +00:00
Chris Lattner
471ba48cb9
remove some uses of llvm/Support/Streams.h
...
llvm-svn: 79842
2009-08-23 08:43:55 +00:00
Chris Lattner
6973395cc7
eliminate the std::ostream forms of the bitcode writing APIs.
...
llvm-svn: 79840
2009-08-23 07:49:08 +00:00
Chris Lattner
91922253c5
remove uses of llvm/Support/Streams.h.
...
llvm-svn: 79838
2009-08-23 07:33:14 +00:00
Chris Lattner
d04d9102ab
use raw_fd_ostream instead of fstream with graphwriter,
...
flush the right stream in opt.cpp.
llvm-svn: 79837
2009-08-23 07:31:22 +00:00
Chris Lattner
4883d90396
convert LoopInfo.h and GraphWriter.h to use raw_ostream
...
llvm-svn: 79836
2009-08-23 07:19:13 +00:00
Chris Lattner
7e3cfe35ff
eliminate DOUT and make Debug.h not include Streams.h anymore, woo!
...
llvm-svn: 79835
2009-08-23 07:05:39 +00:00
Chris Lattner
317dbbcfb1
eliminate uses of cerr()
...
llvm-svn: 79834
2009-08-23 07:05:07 +00:00
Chris Lattner
af29ea6d57
eliminate the last DOUTs from the targets.
...
llvm-svn: 79833
2009-08-23 06:49:22 +00:00
Chris Lattner
4dc3edde9f
remove a few DOUTs here and there.
...
llvm-svn: 79832
2009-08-23 06:35:02 +00:00
Chris Lattner
dbbdc79267
convert all the constant range EXPECT_EQ tests to use EXPECT_TRUE since
...
ConstantRange doesn't have an std::ostream inserter anymore.
llvm-svn: 79831
2009-08-23 06:32:25 +00:00
Chris Lattner
1362602eb2
Change Pass::print to take a raw ostream instead of std::ostream,
...
update all code that this affects.
llvm-svn: 79830
2009-08-23 06:03:38 +00:00
Douglas Gregor
22f8ecf0cb
Don't install the man page for FileCheck
...
llvm-svn: 79826
2009-08-23 05:24:49 +00:00
Chris Lattner
b1d782bec9
eliminate the std::ostream form of WriteAsOperand and update clients.
...
This also updates dominator related stuff.
llvm-svn: 79825
2009-08-23 05:17:37 +00:00
Chris Lattner
3924bb5792
remove the std::ostream version of module and type printing.
...
llvm-svn: 79823
2009-08-23 04:52:46 +00:00
Chris Lattner
be354a66d3
upgrade for removed functions.
...
llvm-svn: 79822
2009-08-23 04:47:35 +00:00
Chris Lattner
34822f6ec7
remove some DOUTs
...
llvm-svn: 79821
2009-08-23 04:44:11 +00:00
Douglas Gregor
11eaeef9d3
Don't install FileCheck or FileUpdate
...
llvm-svn: 79820
2009-08-23 04:39:38 +00:00
Chris Lattner
b25de3ff60
eliminate the "Value" printing methods that print to a std::ostream.
...
This required converting a bunch of stuff off DOUT and other cleanups.
llvm-svn: 79819
2009-08-23 04:37:46 +00:00
Tanya Lattner
82e57a6b48
Update release document with more details.
...
llvm-svn: 79818
2009-08-23 04:36:30 +00:00
Owen Anderson
3fb4aabc06
Use standard LLVM-style headers.
...
llvm-svn: 79817
2009-08-23 04:24:24 +00:00
Chris Lattner
78683a7013
switch a couple things off std::ostream
...
llvm-svn: 79816
2009-08-23 04:02:03 +00:00
Chris Lattner
213a9f933d
switch from std::ostream to raw ostream, fix file header.
...
llvm-svn: 79815
2009-08-23 03:56:06 +00:00
Chris Lattner
d99f1c6fa2
shoot a few more std::ostream print methods in the head.
...
llvm-svn: 79814
2009-08-23 03:47:42 +00:00
Chris Lattner
a6f074fb3a
remove various std::ostream version of printing methods from
...
MachineInstr and MachineOperand. This required eliminating a
bunch of stuff that was using DOUT, I hope that bill doesn't
mind me stealing his fun. ;-)
llvm-svn: 79813
2009-08-23 03:41:05 +00:00
Chris Lattner
ed03a01af1
remove some DOUTs
...
llvm-svn: 79812
2009-08-23 03:20:44 +00:00
Chris Lattner
565449d79e
remove std::ostream versions of printing stuff for MBB and MF,
...
upgrading a few things to use raw_ostream
llvm-svn: 79811
2009-08-23 03:13:20 +00:00
Chris Lattner
abd1736998
simplify output file selection, fixing two FIXMEs about binary output
...
llvm-svn: 79808
2009-08-23 02:56:05 +00:00
Chris Lattner
9e6f1f160a
Change raw_fd_ostream to take flags as an optional bitmask
...
instead of as two bools. Use this to add a F_Append flag
which has the obvious behavior.
Other unrelated changes conflated into this patch:
1. REmove EH stuff from llvm-dis and llvm-as, the try blocks
are dead.
2. Simplify the filename inference code in llvm-as/llvm-dis,
because raw_fd_ostream does the right thing with '-'.
3. Switch machine verifier to use raw_ostream instead of ostream
(Which is the thing that needed append in the first place).
llvm-svn: 79807
2009-08-23 02:51:22 +00:00
Chris Lattner
f7a6745bb7
This was supposed to go with r79803
...
llvm-svn: 79804
2009-08-23 01:13:09 +00:00
Chris Lattner
22d4bfc23e
convert some stuff to work on raw_ostreams instead of std::ostream.
...
llvm-svn: 79803
2009-08-23 01:12:47 +00:00
Chris Lattner
3f6b57c809
fix a gone file.
...
llvm-svn: 79802
2009-08-23 01:11:21 +00:00
Chris Lattner
75f4045867
remove some dead print method variants.
...
llvm-svn: 79801
2009-08-23 01:03:30 +00:00
Chris Lattner
7472571531
convert the DIE printing stuff to use raw_ostream instead of std::ostream.
...
Tweak #includes.
llvm-svn: 79800
2009-08-23 01:01:17 +00:00
Chris Lattner
fd90b168ba
random code cleanups.
...
llvm-svn: 79798
2009-08-23 00:51:47 +00:00
Chris Lattner
81e8e02e2f
remove some random indentation stuff, yay for efficiency.
...
llvm-svn: 79797
2009-08-23 00:51:00 +00:00
Chris Lattner
1216f54276
remove dead PrefixPrinter class.
...
llvm-svn: 79796
2009-08-23 00:47:04 +00:00
Chris Lattner
1f28992886
remove a dead class.
...
llvm-svn: 79795
2009-08-23 00:42:42 +00:00
Chris Lattner
af119ca368
random cleanups.
...
llvm-svn: 79794
2009-08-23 00:35:30 +00:00
Eli Friedman
79ba8f2edc
Add check for completeness. Note that this doesn't actually have any
...
effect with the way the current code is structured.
llvm-svn: 79792
2009-08-23 00:14:19 +00:00
Chris Lattner
ba4bd50a80
switch formattedstream to use raw_ostream::indent. This eliminates
...
the weird MAX_COLUMN_PAD limitation.
llvm-svn: 79785
2009-08-22 23:16:09 +00:00
Chris Lattner
e6db2c338b
add a raw_ostream::indent method, to be used like:
...
OS.indent(i) << "whatever";
people seem to like indenting things ;-)
llvm-svn: 79784
2009-08-22 23:10:29 +00:00
Benjamin Kramer
f7b571726a
Forgot to update some CMakeLists.
...
llvm-svn: 79780
2009-08-22 22:20:11 +00:00
Benjamin Kramer
4db6267a2c
Update CMake build, unbreak linux build.
...
llvm-svn: 79779
2009-08-22 22:07:08 +00:00
Chris Lattner
54f550c9cc
fix a build error on the clang-i686-linux tester.
...
llvm-svn: 79778
2009-08-22 21:45:03 +00:00
Chris Lattner
e9a75a6654
rename TAI -> MAI, being careful not to make MAILJMP instructions :)
...
llvm-svn: 79777
2009-08-22 21:43:10 +00:00
Chris Lattner
a185b72902
mcasminfo doesn't use std::string
...
llvm-svn: 79774
2009-08-22 21:05:21 +00:00
Chris Lattner
054574666a
rename COFFMCAsmInfo -> MCAsmInfoCOFF, likewise for darwin.
...
llvm-svn: 79773
2009-08-22 21:03:30 +00:00
Tanya Lattner
c372077201
Regenerate configure.
...
llvm-svn: 79772
2009-08-22 21:01:26 +00:00
Tanya Lattner
fd5add5e19
Update copyright date.
...
llvm-svn: 79771
2009-08-22 21:00:33 +00:00
Chris Lattner
2b9f0d100b
move the MCAsmInfo .cpp/.h files into the right
...
directories and rename them.
llvm-svn: 79768
2009-08-22 20:58:17 +00:00
Chris Lattner
757dd1cd93
revert 79764, my dependencies failed me again.
...
llvm-svn: 79767
2009-08-22 20:56:12 +00:00
Bill Wendling
e7baa8e970
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79766
2009-08-22 20:54:03 +00:00
Bill Wendling
058687e360
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79765
2009-08-22 20:52:46 +00:00
Chris Lattner
df16c223da
remove dead member.
...
llvm-svn: 79764
2009-08-22 20:50:18 +00:00
Chris Lattner
7b26fce23e
Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.
...
llvm-svn: 79763
2009-08-22 20:48:53 +00:00
Bill Wendling
259717287a
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79762
2009-08-22 20:46:59 +00:00
Bill Wendling
214ac545ab
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79760
2009-08-22 20:41:06 +00:00
Bill Wendling
ea2559a7be
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79759
2009-08-22 20:40:21 +00:00
Bill Wendling
fc8f54be92
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79758
2009-08-22 20:38:09 +00:00
Bill Wendling
cddba739f9
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79756
2009-08-22 20:30:53 +00:00
Bill Wendling
63aa000052
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79755
2009-08-22 20:26:23 +00:00
Bill Wendling
8781b35be5
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79754
2009-08-22 20:25:44 +00:00
Bill Wendling
8d64226efe
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79753
2009-08-22 20:23:49 +00:00
Bill Wendling
dfcc42fa39
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79752
2009-08-22 20:18:03 +00:00
Bill Wendling
fb36316730
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79751
2009-08-22 20:11:17 +00:00
Bill Wendling
a2c4594997
Normalize how the 'namespace llvm {' is used in this file.
...
llvm-svn: 79750
2009-08-22 20:08:44 +00:00
Bill Wendling
bde8a4c6c9
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79749
2009-08-22 20:07:03 +00:00
Bill Wendling
b447173dc3
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79748
2009-08-22 20:04:03 +00:00
Bill Wendling
c3f05e854a
Convert DOUT to DEBUG(errs()...).
...
llvm-svn: 79747
2009-08-22 20:03:00 +00:00
Chris Lattner
ca098517a3
prune some redundant #includes.
...
llvm-svn: 79746
2009-08-22 19:35:08 +00:00
Chris Lattner
8f816e7d68
tweak #includes
...
llvm-svn: 79744
2009-08-22 19:19:12 +00:00
Devang Patel
0939595711
Record variable debug info at ISel time directly.
...
llvm-svn: 79742
2009-08-22 17:12:53 +00:00
Anton Korobeynikov
f0d31ab7b8
Some dummy cost model for s390x:
...
- Prefer short-imm instructions over ext-imm, when possible
- Prefer Z10 instructions over Z9, when possible
This hopefully should fix some dejagnu test fails on solaris
llvm-svn: 79741
2009-08-22 11:46:16 +00:00
Daniel Dunbar
d1859474a7
llvm-mc/Mach-O: Improve symbol table support:
...
- Honor .globl.
- Set symbol type and section correctly ('nm' now works), and order symbols
appropriately.
- Take care to the string table so that the .o matches 'as' exactly (for ease
of testing).
llvm-svn: 79740
2009-08-22 11:41:10 +00:00