oota-llvm.git
15 years agollvm-mc: Tweak undefined symbol handling.
Daniel Dunbar [Mon, 24 Aug 2009 08:39:57 +0000 (08:39 +0000)]
llvm-mc: Tweak undefined symbol handling.

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

15 years agoAdd missing include (for MSVC).
Daniel Dunbar [Mon, 24 Aug 2009 07:18:07 +0000 (07:18 +0000)]
Add missing include (for MSVC).

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

15 years agoFixed double free in Kaleidoscope. Fixes PR4762.
Reid Kleckner [Mon, 24 Aug 2009 05:42:21 +0000 (05:42 +0000)]
Fixed double free in Kaleidoscope.  Fixes PR4762.

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

15 years agoCorrectly account for the Spaces array nul terminator. Thanks Chris!
Dan Gohman [Mon, 24 Aug 2009 04:43:38 +0000 (04:43 +0000)]
Correctly account for the Spaces array nul terminator. Thanks Chris!

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

15 years agoimprove documentation for linker_private linkage.
Chris Lattner [Mon, 24 Aug 2009 04:32:16 +0000 (04:32 +0000)]
improve  documentation for linker_private linkage.

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

15 years agoremove the last *stream> #include from a public header.
Chris Lattner [Mon, 24 Aug 2009 04:14:03 +0000 (04:14 +0000)]
remove the last *stream> #include from a public header.

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

15 years agoThese flushes were only needed when the code was transitioning between
Dan Gohman [Mon, 24 Aug 2009 04:13:48 +0000 (04:13 +0000)]
These flushes were only needed when the code was transitioning between
std::cout and outs().

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

15 years agoraw_ostream::indent is used for PadToColumn which often prints more
Dan Gohman [Mon, 24 Aug 2009 04:13:01 +0000 (04:13 +0000)]
raw_ostream::indent is used for PadToColumn which often prints more
than 16 spaces. Make the Spaces array wide enough to handle common cases.

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

15 years agoeliminate a #include.
Chris Lattner [Mon, 24 Aug 2009 04:07:51 +0000 (04:07 +0000)]
eliminate a #include.

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

15 years agosplit raw_os_ostream out to its own header and implementation file. This
Chris Lattner [Mon, 24 Aug 2009 04:02:06 +0000 (04:02 +0000)]
split raw_os_ostream out to its own header and implementation file.  This
means that raw_ostream no longer has to #include <iosfwd>.  Nothing in llvm
should use raw_os_ostream.h, but llvm-gcc and some unit tests do.

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

15 years agoprune the #includes in raw_ostream.h by moving a
Chris Lattner [Mon, 24 Aug 2009 03:52:50 +0000 (03:52 +0000)]
prune the #includes in raw_ostream.h by moving a
member out of line. ftostr is not particularly speedy,
so that method is presumably not perf sensitive.

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

15 years agosearch unittests.
Chris Lattner [Mon, 24 Aug 2009 03:44:02 +0000 (03:44 +0000)]
search unittests.

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

15 years agoUnbreak the build for HAVE_GV platforms.
Dan Gohman [Mon, 24 Aug 2009 03:23:12 +0000 (03:23 +0000)]
Unbreak the build for HAVE_GV platforms.

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

15 years agoremove a few dead insertion methods.
Chris Lattner [Mon, 24 Aug 2009 02:39:26 +0000 (02:39 +0000)]
remove a few dead insertion methods.

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

15 years agoRemove alloca config.h support.
Daniel Dunbar [Mon, 24 Aug 2009 02:14:39 +0000 (02:14 +0000)]
Remove alloca config.h support.
 - I did not actually remove the configure test itself, someone who can
   regenerate configure should do this (see FIXME in autoconf/configure.ac)

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

15 years agoRemove this test now that the interpreter doesn't support
Chris Lattner [Mon, 24 Aug 2009 02:05:59 +0000 (02:05 +0000)]
Remove this test now that the interpreter doesn't support
interpreting the wrong endianness anymore.  This fixes a
failure on clang-powerpc-darwin8

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

15 years agoUnbreak unit tests.
Daniel Dunbar [Mon, 24 Aug 2009 02:02:58 +0000 (02:02 +0000)]
Unbreak unit tests.

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

15 years agoRemove include/llvm/Config/alloca.h, it is dead.
Daniel Dunbar [Mon, 24 Aug 2009 02:02:49 +0000 (02:02 +0000)]
Remove include/llvm/Config/alloca.h, it is dead.

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

15 years agoMake linkerprivate work for ARM and PPC. Testcase covers
Dale Johannesen [Mon, 24 Aug 2009 01:03:42 +0000 (01:03 +0000)]
Make linkerprivate work for ARM and PPC.  Testcase covers
all Darwin targets; could be split into separate tests for
the chip subdirectories, but from Chris' last mail on testing
I assume he'd rather have only one test.  Generic seems to be
the best available, maybe there should be a Darwin subdirectory?

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

15 years agoCMake: Updated library dependencies and list of source files.
Oscar Fuentes [Sun, 23 Aug 2009 23:59:15 +0000 (23:59 +0000)]
CMake: Updated library dependencies and list of source files.

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

15 years agoremove the dead std::ostream APInt inserter
Chris Lattner [Sun, 23 Aug 2009 23:11:28 +0000 (23:11 +0000)]
remove the dead std::ostream APInt inserter

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

15 years agoremove this test: it is testing for a "feature" I just removed.
Chris Lattner [Sun, 23 Aug 2009 23:01:02 +0000 (23:01 +0000)]
remove this test: it is testing for a "feature" I just removed.

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

15 years agoremove the last uses of Config/alloca.h
Chris Lattner [Sun, 23 Aug 2009 22:57:38 +0000 (22:57 +0000)]
remove the last uses of Config/alloca.h

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

15 years agofix some problems with my last patch which happen when one of
Chris Lattner [Sun, 23 Aug 2009 22:53:53 +0000 (22:53 +0000)]
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.

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

15 years agojust remove interpreter support for endianness mismatches. This was
Chris Lattner [Sun, 23 Aug 2009 22:50:28 +0000 (22:50 +0000)]
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) :)

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

15 years agoremove use of alloca.h
Chris Lattner [Sun, 23 Aug 2009 22:49:13 +0000 (22:49 +0000)]
remove use of alloca.h

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

15 years agoPrune #includes from llvm/Linker.h and llvm/System/Path.h,
Chris Lattner [Sun, 23 Aug 2009 22:45:37 +0000 (22:45 +0000)]
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.

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

15 years agodisuade people from using ostream.
Chris Lattner [Sun, 23 Aug 2009 21:53:47 +0000 (21:53 +0000)]
disuade people from using ostream.

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

15 years agollvm/Support/Streams.h is now dead, zap it.
Chris Lattner [Sun, 23 Aug 2009 21:50:26 +0000 (21:50 +0000)]
llvm/Support/Streams.h is now dead, zap it.

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

15 years agoSwitch SubtargetFeature off of ostreams
Chris Lattner [Sun, 23 Aug 2009 21:41:43 +0000 (21:41 +0000)]
Switch SubtargetFeature off of ostreams

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

15 years agoeliminate the ostream version of CheckBitcodeOutputToConsole,
Chris Lattner [Sun, 23 Aug 2009 21:36:09 +0000 (21:36 +0000)]
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

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

15 years agoFix off-by-one in llvm::Format::print.
Daniel Dunbar [Sun, 23 Aug 2009 20:31:39 +0000 (20:31 +0000)]
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. :)

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

15 years agoSJLJ pass needs to punt if there's no personality function available.
Jim Grosbach [Sun, 23 Aug 2009 18:13:48 +0000 (18:13 +0000)]
SJLJ pass needs to punt if there's no personality function available.

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

15 years agoclean up #includes.
Chris Lattner [Sun, 23 Aug 2009 18:09:02 +0000 (18:09 +0000)]
clean up #includes.

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

15 years agoRerevert (r75663 and r76805), seems there is more non-determinism.
Daniel Dunbar [Sun, 23 Aug 2009 17:26:24 +0000 (17:26 +0000)]
Rerevert (r75663 and r76805), seems there is more non-determinism.

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

15 years agoFix PR4753.
Jakob Stoklund Olesen [Sun, 23 Aug 2009 13:01:45 +0000 (13:01 +0000)]
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.

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

15 years agoRemove Streams.h from the targets.
Benjamin Kramer [Sun, 23 Aug 2009 11:52:17 +0000 (11:52 +0000)]
Remove Streams.h from the targets.

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

15 years agoKill off more cerr/cout uses and prune includes a bit.
Benjamin Kramer [Sun, 23 Aug 2009 11:37:21 +0000 (11:37 +0000)]
Kill off more cerr/cout uses and prune includes a bit.

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

15 years agoSpeculatively revert r76823 (i.e., reapply r75663 and r76805) to see if the real
Daniel Dunbar [Sun, 23 Aug 2009 10:44:51 +0000 (10:44 +0000)]
Speculatively revert r76823 (i.e., reapply r75663 and r76805) to see if the real
problem is fixed by the TableGen determinism fix.

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

15 years agoTry to fix MSVC build after r79846.
Benjamin Kramer [Sun, 23 Aug 2009 10:39:21 +0000 (10:39 +0000)]
Try to fix MSVC build after r79846.

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

15 years agoFix -Asserts warnings.
Daniel Dunbar [Sun, 23 Aug 2009 10:29:55 +0000 (10:29 +0000)]
Fix -Asserts warnings.

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

15 years agoRemove uses of Streams.h from CommandLine.cpp, fix some whitespace and other minor...
Benjamin Kramer [Sun, 23 Aug 2009 10:01:13 +0000 (10:01 +0000)]
Remove uses of Streams.h from CommandLine.cpp, fix some whitespace and other minor tweaks.

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

15 years agoFix non-determinism in DAGISel emitter.
Daniel Dunbar [Sun, 23 Aug 2009 09:47:37 +0000 (09:47 +0000)]
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  -
--

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

15 years agoFix windows build.
Benjamin Kramer [Sun, 23 Aug 2009 08:57:52 +0000 (08:57 +0000)]
Fix windows build.

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

15 years agoFix some refactos for iostream changes (in -Asserts mode).
Daniel Dunbar [Sun, 23 Aug 2009 08:50:52 +0000 (08:50 +0000)]
Fix some refactos for iostream changes (in -Asserts mode).
 - The world needs better C++ refactoring tools, can I get an Amen!?

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

15 years agoremove some uses of llvm/Support/Streams.h
Chris Lattner [Sun, 23 Aug 2009 08:43:55 +0000 (08:43 +0000)]
remove some uses of llvm/Support/Streams.h

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

15 years agoeliminate the std::ostream forms of the bitcode writing APIs.
Chris Lattner [Sun, 23 Aug 2009 07:49:08 +0000 (07:49 +0000)]
eliminate the std::ostream forms of the bitcode writing APIs.

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

15 years agoremove uses of llvm/Support/Streams.h.
Chris Lattner [Sun, 23 Aug 2009 07:33:14 +0000 (07:33 +0000)]
remove uses of llvm/Support/Streams.h.

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

15 years agouse raw_fd_ostream instead of fstream with graphwriter,
Chris Lattner [Sun, 23 Aug 2009 07:31:22 +0000 (07:31 +0000)]
use raw_fd_ostream instead of fstream with graphwriter,
flush the right stream in opt.cpp.

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

15 years agoconvert LoopInfo.h and GraphWriter.h to use raw_ostream
Chris Lattner [Sun, 23 Aug 2009 07:19:13 +0000 (07:19 +0000)]
convert LoopInfo.h and GraphWriter.h to use raw_ostream

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

15 years agoeliminate DOUT and make Debug.h not include Streams.h anymore, woo!
Chris Lattner [Sun, 23 Aug 2009 07:05:39 +0000 (07:05 +0000)]
eliminate DOUT and make Debug.h not include Streams.h anymore, woo!

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

15 years agoeliminate uses of cerr()
Chris Lattner [Sun, 23 Aug 2009 07:05:07 +0000 (07:05 +0000)]
eliminate uses of cerr()

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

15 years agoeliminate the last DOUTs from the targets.
Chris Lattner [Sun, 23 Aug 2009 06:49:22 +0000 (06:49 +0000)]
eliminate the last DOUTs from the targets.

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

15 years agoremove a few DOUTs here and there.
Chris Lattner [Sun, 23 Aug 2009 06:35:02 +0000 (06:35 +0000)]
remove a few DOUTs here and there.

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

15 years agoconvert all the constant range EXPECT_EQ tests to use EXPECT_TRUE since
Chris Lattner [Sun, 23 Aug 2009 06:32:25 +0000 (06:32 +0000)]
convert all the constant range EXPECT_EQ tests to use EXPECT_TRUE since
ConstantRange doesn't have an std::ostream inserter anymore.

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

15 years agoChange Pass::print to take a raw ostream instead of std::ostream,
Chris Lattner [Sun, 23 Aug 2009 06:03:38 +0000 (06:03 +0000)]
Change Pass::print to take a raw ostream instead of std::ostream,
update all code that this affects.

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

15 years agoDon't install the man page for FileCheck
Douglas Gregor [Sun, 23 Aug 2009 05:24:49 +0000 (05:24 +0000)]
Don't install the man page for FileCheck

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

15 years agoeliminate the std::ostream form of WriteAsOperand and update clients.
Chris Lattner [Sun, 23 Aug 2009 05:17:37 +0000 (05:17 +0000)]
eliminate the std::ostream form of WriteAsOperand and update clients.
This also updates dominator related stuff.

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

15 years agoremove the std::ostream version of module and type printing.
Chris Lattner [Sun, 23 Aug 2009 04:52:46 +0000 (04:52 +0000)]
remove the std::ostream version of module and type printing.

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

15 years agoupgrade for removed functions.
Chris Lattner [Sun, 23 Aug 2009 04:47:35 +0000 (04:47 +0000)]
upgrade for removed functions.

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

15 years agoremove some DOUTs
Chris Lattner [Sun, 23 Aug 2009 04:44:11 +0000 (04:44 +0000)]
remove some DOUTs

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

15 years agoDon't install FileCheck or FileUpdate
Douglas Gregor [Sun, 23 Aug 2009 04:39:38 +0000 (04:39 +0000)]
Don't install FileCheck or FileUpdate

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

15 years agoeliminate the "Value" printing methods that print to a std::ostream.
Chris Lattner [Sun, 23 Aug 2009 04:37:46 +0000 (04:37 +0000)]
eliminate the "Value" printing methods that print to a std::ostream.
This required converting a bunch of stuff off DOUT and other cleanups.

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

15 years agoUpdate release document with more details.
Tanya Lattner [Sun, 23 Aug 2009 04:36:30 +0000 (04:36 +0000)]
Update release document with more details.

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

15 years agoUse standard LLVM-style headers.
Owen Anderson [Sun, 23 Aug 2009 04:24:24 +0000 (04:24 +0000)]
Use standard LLVM-style headers.

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

15 years agoswitch a couple things off std::ostream
Chris Lattner [Sun, 23 Aug 2009 04:02:03 +0000 (04:02 +0000)]
switch a couple things off std::ostream

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

15 years agoswitch from std::ostream to raw ostream, fix file header.
Chris Lattner [Sun, 23 Aug 2009 03:56:06 +0000 (03:56 +0000)]
switch from std::ostream to raw ostream, fix file header.

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

15 years agoshoot a few more std::ostream print methods in the head.
Chris Lattner [Sun, 23 Aug 2009 03:47:42 +0000 (03:47 +0000)]
shoot a few more std::ostream print methods in the head.

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

15 years agoremove various std::ostream version of printing methods from
Chris Lattner [Sun, 23 Aug 2009 03:41:05 +0000 (03:41 +0000)]
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. ;-)

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

15 years agoremove some DOUTs
Chris Lattner [Sun, 23 Aug 2009 03:20:44 +0000 (03:20 +0000)]
remove some DOUTs

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

15 years agoremove std::ostream versions of printing stuff for MBB and MF,
Chris Lattner [Sun, 23 Aug 2009 03:13:20 +0000 (03:13 +0000)]
remove std::ostream versions of printing stuff for MBB and MF,
upgrading a few things to use raw_ostream

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

15 years agosimplify output file selection, fixing two FIXMEs about binary output
Chris Lattner [Sun, 23 Aug 2009 02:56:05 +0000 (02:56 +0000)]
simplify output file selection, fixing two FIXMEs about binary output

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

15 years agoChange raw_fd_ostream to take flags as an optional bitmask
Chris Lattner [Sun, 23 Aug 2009 02:51:22 +0000 (02:51 +0000)]
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).

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

15 years agoThis was supposed to go with r79803
Chris Lattner [Sun, 23 Aug 2009 01:13:09 +0000 (01:13 +0000)]
This was supposed to go with r79803

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

15 years agoconvert some stuff to work on raw_ostreams instead of std::ostream.
Chris Lattner [Sun, 23 Aug 2009 01:12:47 +0000 (01:12 +0000)]
convert some stuff to work on raw_ostreams instead of std::ostream.

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

15 years agofix a gone file.
Chris Lattner [Sun, 23 Aug 2009 01:11:21 +0000 (01:11 +0000)]
fix a gone file.

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

15 years agoremove some dead print method variants.
Chris Lattner [Sun, 23 Aug 2009 01:03:30 +0000 (01:03 +0000)]
remove some dead print method variants.

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

15 years agoconvert the DIE printing stuff to use raw_ostream instead of std::ostream.
Chris Lattner [Sun, 23 Aug 2009 01:01:17 +0000 (01:01 +0000)]
convert the DIE printing stuff to use raw_ostream instead of std::ostream.
Tweak #includes.

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

15 years agorandom code cleanups.
Chris Lattner [Sun, 23 Aug 2009 00:51:47 +0000 (00:51 +0000)]
random code cleanups.

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

15 years agoremove some random indentation stuff, yay for efficiency.
Chris Lattner [Sun, 23 Aug 2009 00:51:00 +0000 (00:51 +0000)]
remove some random indentation stuff, yay for efficiency.

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

15 years agoremove dead PrefixPrinter class.
Chris Lattner [Sun, 23 Aug 2009 00:47:04 +0000 (00:47 +0000)]
remove dead PrefixPrinter class.

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

15 years agoremove a dead class.
Chris Lattner [Sun, 23 Aug 2009 00:42:42 +0000 (00:42 +0000)]
remove a dead class.

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

15 years agorandom cleanups.
Chris Lattner [Sun, 23 Aug 2009 00:35:30 +0000 (00:35 +0000)]
random cleanups.

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

15 years agoAdd check for completeness. Note that this doesn't actually have any
Eli Friedman [Sun, 23 Aug 2009 00:14:19 +0000 (00:14 +0000)]
Add check for completeness.  Note that this doesn't actually have any
effect with the way the current code is structured.

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

15 years agoswitch formattedstream to use raw_ostream::indent. This eliminates
Chris Lattner [Sat, 22 Aug 2009 23:16:09 +0000 (23:16 +0000)]
switch formattedstream to use raw_ostream::indent.  This eliminates
the weird MAX_COLUMN_PAD limitation.

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

15 years agoadd a raw_ostream::indent method, to be used like:
Chris Lattner [Sat, 22 Aug 2009 23:10:29 +0000 (23:10 +0000)]
add a raw_ostream::indent method, to be used like:

  OS.indent(i) << "whatever";

people seem to like indenting things ;-)

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

15 years agoForgot to update some CMakeLists.
Benjamin Kramer [Sat, 22 Aug 2009 22:20:11 +0000 (22:20 +0000)]
Forgot to update some CMakeLists.

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

15 years agoUpdate CMake build, unbreak linux build.
Benjamin Kramer [Sat, 22 Aug 2009 22:07:08 +0000 (22:07 +0000)]
Update CMake build, unbreak linux build.

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

15 years agofix a build error on the clang-i686-linux tester.
Chris Lattner [Sat, 22 Aug 2009 21:45:03 +0000 (21:45 +0000)]
fix a build error on the clang-i686-linux tester.

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

15 years agorename TAI -> MAI, being careful not to make MAILJMP instructions :)
Chris Lattner [Sat, 22 Aug 2009 21:43:10 +0000 (21:43 +0000)]
rename TAI -> MAI, being careful not to make MAILJMP instructions :)

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

15 years agomcasminfo doesn't use std::string
Chris Lattner [Sat, 22 Aug 2009 21:05:21 +0000 (21:05 +0000)]
mcasminfo doesn't use std::string

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

15 years agorename COFFMCAsmInfo -> MCAsmInfoCOFF, likewise for darwin.
Chris Lattner [Sat, 22 Aug 2009 21:03:30 +0000 (21:03 +0000)]
rename COFFMCAsmInfo -> MCAsmInfoCOFF, likewise for darwin.

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

15 years agoRegenerate configure.
Tanya Lattner [Sat, 22 Aug 2009 21:01:26 +0000 (21:01 +0000)]
Regenerate configure.

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

15 years agoUpdate copyright date.
Tanya Lattner [Sat, 22 Aug 2009 21:00:33 +0000 (21:00 +0000)]
Update copyright date.

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

15 years agomove the MCAsmInfo .cpp/.h files into the right
Chris Lattner [Sat, 22 Aug 2009 20:58:17 +0000 (20:58 +0000)]
move the MCAsmInfo .cpp/.h files into the right
directories and rename them.

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

15 years agorevert 79764, my dependencies failed me again.
Chris Lattner [Sat, 22 Aug 2009 20:56:12 +0000 (20:56 +0000)]
revert 79764, my dependencies failed me again.

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

15 years agoConvert DOUT to DEBUG(errs()...).
Bill Wendling [Sat, 22 Aug 2009 20:54:03 +0000 (20:54 +0000)]
Convert DOUT to DEBUG(errs()...).

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

15 years agoConvert DOUT to DEBUG(errs()...).
Bill Wendling [Sat, 22 Aug 2009 20:52:46 +0000 (20:52 +0000)]
Convert DOUT to DEBUG(errs()...).

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

15 years agoremove dead member.
Chris Lattner [Sat, 22 Aug 2009 20:50:18 +0000 (20:50 +0000)]
remove dead member.

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

15 years agoRename TargetAsmInfo (and its subclasses) to MCAsmInfo.
Chris Lattner [Sat, 22 Aug 2009 20:48:53 +0000 (20:48 +0000)]
Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.

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