History log of /external/llvm/tools/bugpoint/OptimizerDriver.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cd81d94322a39503e4a3e87b6ee03d4fcb3465fb 21-Jul-2014 Stephen Hines <srhines@google.com> Update LLVM for rebase to r212749.

Includes a cherry-pick of:
r212948 - fixes a small issue with atomic calls

Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
5a328054f33783527bd65bd4928b5537113b365c 05-Aug-2013 Michael Gottesman <mgottesman@apple.com> [bugpoint] Allow the user to specify the path to opt on the commandline.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187739 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
c1b49b56d4132efa2e06deb8f23508d0de4c8800 16-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com> Add a wrapper for open.

This centralizes the handling of O_BINARY and opens the way for hiding more
differences (like how open behaves with directories).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186447 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
200c748a8643cd127271f4d6849da1e147d4442f 05-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com> Add a createUniqueFile function and switch llvm's users of unique_file.

This function is complementary to createTemporaryFile. It handles the case were
the unique file is *not* temporary: we will rename it in the end. Since we
will rename it, the file has to be in the same filesystem as the final
destination and we don't prepend the system temporary directory.

This has a small semantic difference from unique_file: the default mode is 0666.
This matches the behavior of most unix tools. For example, with this change
lld now produces files with the same permissions as ld. I will add a test
of this change when I port clang over to createUniqueFile (next commit).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185726 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
8ee23f00c7e9343d09313051c318906558d6ad17 18-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Add a version of unique_file that return just the file name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184206 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
2c073ee754cd7e0852ab802d5c3ead44a4fd4f69 18-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Remove usage of PathV1.h from OptimizerDriver.cpp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184198 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
366f510a41aea70be5b136a2559ce064440cebf3 18-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Convert some uses of eraseFromDisk.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184196 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
88088f4067ae002aebf6e32079c446b06fab31f1 18-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Don't use PathV1.h in tools/bugpoint/Miscompilation.cpp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184193 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
bbf97ea7d5832922b3c40b67701b5719bfcb772b 13-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Don't use PathV1.h in FileUtilities.h.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183941 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
675e0ac0bfd6fb78423d9fbee9f50c1dec62c111 13-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Avoid using PathV1.h in Program.h.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183940 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
6585b388cb7bfc623adb9e4dd910423f838e5d96 13-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Have sys::FindProgramByName return a std::string.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183928 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
9f1d9fd1964d82f3e801efb71518144492cdf290 12-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Remove the program class.

It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just
those two functions and make Execute and Wait implementations details.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183864 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
0b8c9a80f20772c3793201ab5b251d3520b9cea3 02-Jan-2013 Chandler Carruth <chandlerc@gmail.com> Move all of the header files which are involved in modelling the LLVM IR
into their new header subdirectory: include/llvm/IR. This matches the
directory structure of lib, and begins to correct a long standing point
of file layout clutter in LLVM.

There are still more header files to move here, but I wanted to handle
them in separate commits to make tracking what files make sense at each
layer easier.

The only really questionable files here are the target intrinsic
tablegen files. But that's a battle I'd rather not fight today.

I've updated both CMake and Makefile build systems (I think, and my
tests think, but I may have missed something).

I've also re-sorted the includes throughout the project. I'll be
committing updates to Clang, DragonEgg, and Polly momentarily.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171366 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
f010c464a11444733ec67e31aace8bcebeaf2588 04-Dec-2012 Chandler Carruth <chandlerc@gmail.com> Sort the #include lines for tools/...

Again, tools are trickier to pick the main module header for than
library source files. I've started to follow the pattern of using
LLVMContext.h when it is included as a stub for program source files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169252 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
791cfc211a9801002bfda6b3eb4de7e041f04f53 08-Oct-2012 Micah Villmow <villmow@gmail.com> Move TargetData to DataLayout.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165403 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
1aa73cc05a81f592c376a9f7c0ff2543079b22ca 20-Mar-2012 Chris Lattner <sabre@nondot.org> Fix two bugpoint bugs:

1) opt is not usually in the same path as the target program. Even for
the bugpoint as a standalone app, it should be more portable to search
in PATH, isn't it?
2) bugpoint driver accounts opt plugins, but does not list them in the
final output command.

Patch by Dmitry Mikushin!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153066 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
dc5948d47205fd05184a25251e128db6a47b25c2 21-May-2011 Andrew Trick <atrick@apple.com> Have Program::Wait return -2 for crashed and timeouts instead of embedding
info in the error message. Per Dan's request.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131780 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
9992fcad68eec1f2029380fbd453b1b612472a82 24-Feb-2011 Chris Lattner <sabre@nondot.org> fit in 80 cols.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126399 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
1f6efa3996dd1929fbc129203ce5009b620e6969 29-Nov-2010 Michael J. Spencer <bigcheesegs@gmail.com> Merge System into Support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
d66f2b74f2f01bb1f6c7d0f1b8408bd24ffa654c 03-Nov-2010 Mikhail Glushenkov <foldr@codedgers.com> Rename FindExecutable to PrependMainExecutablePath.

Makes it more clear that it is just a path manipulation function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118174 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
544fba13628e022cd3c5be8bbb22b81f0f6b0fa3 03-Nov-2010 Mikhail Glushenkov <foldr@codedgers.com> 80-col violations, trailing whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118173 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
cc11df0ee6011b3f21fd97d68e1e87bb4ad20185 29-Oct-2010 Dan Gohman <gohman@apple.com> Check for (unlikely) errors from FindExecutable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117658 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
e82978109310114a0c423a6ece7e7708658941f1 29-Oct-2010 Dan Gohman <gohman@apple.com> Delete this obsolete comment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117655 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
e4f1a9b8a272ff7452759019ee7774e9dbdf1568 07-Oct-2010 Dan Gohman <gohman@apple.com> Move tool_output_file into its own file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115973 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
d4c454317a38d65957edebe62bfc69fc8d9885e8 01-Sep-2010 Dan Gohman <gohman@apple.com> Make tool_output_file's raw_ostream instance a member variable instead
of a base class.

This makes it possible to unregister the file from FilesToRemove when
the file is done. Also, this eliminates the need for
formatted_tool_output_file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112706 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
a69e6701a4179dfa321c16a78853284a3fed51e6 24-Aug-2010 Chris Lattner <sabre@nondot.org> Apply "Win32's Hybrid path separator in argv[0] should be accepted to bugpoint",
patch by NAKAMURA Takumi!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111929 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
f29140106f74d15ba357aa0a7f109adc939c3104 20-Aug-2010 Dan Gohman <gohman@apple.com> Convert tools to use tool_output_file, and introduce error
checking to places which previously lacked it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111651 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
ec62d537369452bf1504a67ab9d3f90c31a6a60f 09-Aug-2010 Rafael Espindola <rafael.espindola@gmail.com> Add a opt-args option that can be used to pass arguments to every opt
invocation. Fixes PR7793:

bugpoint -debug test.ll --opt-args -unroll-count=4

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110555 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
8261dfed05e32302469ef707cc881fed2c31f85f 08-Aug-2010 Rafael Espindola <rafael.espindola@gmail.com> Most of bugpoint now only needs to know the pass names.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110534 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
7f99f74b7fc298dad4c61c15b064dc951d2b3cbb 08-Aug-2010 Rafael Espindola <rafael.espindola@gmail.com> Run opt instead of bugpoint itself.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110524 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
b8be03b0e4275eca68f998baab47e66b8a091c05 05-Aug-2010 Bob Wilson <bob.wilson@apple.com> Revert bugpoint change due to buildbot breakage.

--- Reverse-merging r110333 into '.':
U tools/bugpoint/BugDriver.h
U tools/bugpoint/OptimizerDriver.cpp
U tools/bugpoint/bugpoint.cpp
U tools/bugpoint/BugDriver.cpp


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110341 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
d02dc8d096fddde166826b84b3ddfa8a993407de 05-Aug-2010 Rafael Espindola <rafael.espindola@gmail.com> Run opt instead of bugpoint itself.

Fixes PR753.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110333 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
ca356afe09454b3378165ded4eda294bd6341428 05-Aug-2010 Rafael Espindola <rafael.espindola@gmail.com> Make EmitProgressBitcode const and add a Module argument to runPasses. Use
that argument to simplify runPassesOn.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110291 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
bae1b71cbb930e419df03db209ebc547a0e4ec72 28-Jul-2010 Rafael Espindola <rafael.espindola@gmail.com> Instead of abusing swapProgramIn, just add a Module argument to
EmitProgressBitcode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
8be3291f5942e3ae4a5d66c480e7aabe2f771031 20-Jul-2010 Owen Anderson <resistor@mac.com> Speculatively revert r108813, in an attempt to get the self-host buildbots working again. I don't see why this patch
would cause them to fail the way they are, but none of the other intervening patches seem likely either.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108818 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
9e081004dad1c3cae7de82ad412c3f19a1a48d48 20-Jul-2010 Owen Anderson <resistor@mac.com> Reapply r108794, a fix for the failing test from last time.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108813 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
e8a469cdb400249ec263c79d1021f953f42f2760 20-Jul-2010 Daniel Dunbar <daniel@zuster.org> Revert r108794, "Separate PassInfo into two classes: a constructor-free
superclass (StaticPassInfo) and a constructor-ful subclass (PassInfo).", it is
breaking teh everything.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108805 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
8ba15cb7099d9eadcb345328228d77ffa5afa42d 20-Jul-2010 Owen Anderson <resistor@mac.com> Separate PassInfo into two classes: a constructor-free superclass (StaticPassInfo) and a constructor-ful subclass (PassInfo).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108794 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
c3e6859d8dc9014fee8023497153add9a2148f22 19-Mar-2010 Jeffrey Yasskin <jyasskin@google.com> Bugpoint's default memory limit (100MB) was too low for valgrind, so
this patch raises the default to 800MB when valgrind's active. 800
was chosen semi-arbitrarily.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98905 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
68ccdaa84909108c42417a8091c771598e26456e 07-Sep-2009 Daniel Dunbar <daniel@zuster.org> Add -output-prefix option to bugpoint (to change the default output name).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81154 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
baa26395ccf17fc988bb9cf62d6659ca8415ece9 25-Aug-2009 Dan Gohman <gohman@apple.com> Make LLVM command-line tools overwrite their output files without -f.
This is conventional command-line tool behavior. -f now just means
"enable binary output on terminals".

Add a -f option to llvm-extract and llvm-link, for consistency.

Remove F_Force from raw_fd_ostream and enable overwriting and
truncating by default. Introduce an F_Excl flag to permit users to
enable a failure when the file already exists. This flag is
currently unused.

Update Makefiles and documentation accordingly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79990 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
74382b7c699120fbec5cb5603c9cf4212eb37f06 24-Aug-2009 Chris Lattner <sabre@nondot.org> 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
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
b515d75856f58a8b3b71d782eb00916d686329ad 23-Aug-2009 Chris Lattner <sabre@nondot.org> 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
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
40cce094a3456800dd0588229cfee636007cf78c 18-Aug-2009 Nick Lewycky <nicholas@mxc.ca> Include valgrind in the steps to reproduce if valgrind was used to reproduce
the problem.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79322 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
197f728d49fa0cc0baa5aadb2b905fbd8c22a81e 05-Aug-2009 Dan Gohman <gohman@apple.com> Fix FindExecutable to use sys::Path::GetMainExecutable instead of
just argv[0]. And remove the code for searching the current
working directory and for searching PATH; the point of FindExecutable
is not to find whatever version of the executable can be found by
searching around, but to find an executable that accompanies the
current executable.

Update the tools to use sys::Program::FindProgramByName when they
want PATH searching.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78240 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
ac95cc79ac0b899d566cc29c0f646f39c2fa35c0 16-Jul-2009 Dan Gohman <gohman@apple.com> Convert more tools code from cerr and cout to errs() and outs().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76070 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
8b477ed579794ba6d76915d56b3f448a7dd20120 01-Jul-2009 Owen Anderson <resistor@mac.com> Add a pointer to the owning LLVMContext to Module. This requires threading LLVMContext through a lot
of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools.

Patches for Clang and LLVM-GCC to follow.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74614 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
fbea227f41348157191a0217ecb110cc015e9a4f 12-Jun-2008 Matthijs Kooijman <matthijs@stdin.nl> Add -silence-passes option to bugpoint. This option suppresses output generated
when bugpoint is running passes in a child process.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52234 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
584c3bf6504ec0e56c54bbf02fce2d2bd1e6c0e1 26-Feb-2008 Bill Wendling <isanbard@gmail.com> Detabify.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47596 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
21c62da287237d39d0d95004881ea4baae3be6da 29-Dec-2007 Chris Lattner <sabre@nondot.org> remove attributions from tools.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45421 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
6fa98b13206583e6eb90b8304758b35548914944 14-Nov-2007 Nick Lewycky <nicholas@mxc.ca> Allow the block extractor take to take a list of basic blocks to not extract
from a file containing Function/BasicBlock pairings. This is not safe against
anonymous or abnormally-named Funcs or BBs.

Make bugpoint use this interface to pass the BBs list to the child bugpoint.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44101 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
8ff70c2635bfd4e02c0140a5dc9ca909fffba35a 04-Jul-2007 Gabor Greif <ggreif@gmail.com> Pretty straightforward replacement of "bytecode" by "bitcode"
performed on tools/ first, in order not to cause lethal damage


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37877 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
421e51603a5584962adc1b07e41954107cc8b46d 06-May-2007 Chris Lattner <sabre@nondot.org> 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
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
744879ea01779a48f898a801c847677b0bfa824a 06-May-2007 Chris Lattner <sabre@nondot.org> switch tools to bitcode from bytecode


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
03b696376219945d67caffda1995d12e3410f05b 06-May-2007 Chris Lattner <sabre@nondot.org> add bitcode support


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36849 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
9ba8a76f8baaa1092d60ccfbc04e7efdc207c98f 16-Feb-2007 Anton Korobeynikov <asl@math.spbu.ru> Add possibility to set memory limit for binaries run via libSystem. This
is especially needed for bugpoint. This partly implements PR688


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34349 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
17be6791b8b22b36850340a44a6f05de5c3cbf85 21-Jan-2007 Chris Lattner <sabre@nondot.org> default to emiting an uncompressed .bc file


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33420 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
e81561909d128c6e2d8033cb5465a49b2596b26a 07-Dec-2006 Bill Wendling <isanbard@gmail.com> Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
68fe61d6a165ea6090008e281330895a21607daf 29-Nov-2006 Bill Wendling <isanbard@gmail.com> Replacing std::iostreams with llvm iostreams. Some of these changes involve
adding a temporary wrapper around the ostream to make it friendly to
functions expecting an LLVM stream. This should be fixed in the future.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31990 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
e290c6d250cdf67887a5f16ac9d459f83f9f0e30 14-Sep-2006 Nick Lewycky <nicholas@mxc.ca> Fix --enable-valgrind. Add room for the new arguments, and don't keep
a pointer to a temporary.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30312 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
40394bc4197b0e67f4effa5bbf7e655138be82c3 14-Sep-2006 Nick Lewycky <nicholas@mxc.ca> Add --enable-valgrind option to run optimizations through valgrind to
pick up on memory errors.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30311 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
a4be053d7d5428e4259ec0c2509283c892dec7f1 28-Aug-2006 Chris Lattner <sabre@nondot.org> analyze no longer exists, don't offer to run it :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29919 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
51c5a286bae5ad27ddc49602f44b7ea7253a4cc9 23-Aug-2006 Reid Spencer <rspencer@reidspencer.com> For PR797:
Final removal of exceptions from lib/System and adjustment of users to
accommodate.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29846 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
8ea5ecb0564b8822c70ad84202471f03e2690da7 21-Aug-2006 Reid Spencer <rspencer@reidspencer.com> For PR797:
Adjust usage of the ExecuteAndWait function to use the last argument which
is the ErrMsg string. This is necessitated because this function no longer
throws exceptions on error.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29791 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
023fcf977660e686e04f5bef0e2a7321db47df7e 21-Aug-2006 Reid Spencer <rspencer@reidspencer.com> For PR797:
Make sys::Program::ExecuteAndWait not throw exceptions and update any
affected code. It now return -9999 to signal that the program couldn't be
executed. Only one case (in bugpoint) actually examines the result code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29785 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
831b1210390b3a00f68de9a79be0f4e13d6287b0 16-Jun-2006 Chris Lattner <sabre@nondot.org> Don't pass target name into TargetData anymore, it is never used or needed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28831 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
9686ae7f4ea5f19ce77e31e64e0916db41a82662 13-Jun-2006 Chris Lattner <sabre@nondot.org> Teach bugpoint to kill optimization passes that run over the timeout limit,
which allows it to debug optimizer infinite loops. This patch is contributed
by Nick Lewycky, thanks!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28763 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
f877e60616bca076b61a11d34b085607153e06a9 14-May-2006 Chris Lattner <sabre@nondot.org> Fix a bug found by inspection.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28297 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
e4da1ddadae9aebac6265060626bb7cced4fc863 26-Jan-2006 Andrew Lenharth <andrewl@lenharth.org> Pass plugins on to children when optimizing.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25650 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
04666d8a391ad2acc126b56a497d9a86b503b094 23-Jan-2006 Chris Lattner <sabre@nondot.org> this doesn't work, remove it


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25518 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
46e1ee9791df4c1328e89805f1e2aaf14d27e787 23-Dec-2005 Jeff Cohen <jeffc@jolt-lang.org> Get bugpoint building with VC++ again.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24977 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
c4bb052ecccfafa0ffa928d0b061db35734ee2ee 22-Dec-2005 Reid Spencer <rspencer@reidspencer.com> For PR351:
Generally, remove use of fork/exec from bugpoint in favor of the portable
sys::Program::ExecuteAndWait method. This change requires two new options
to bugpoint to tell it that it is running in "child" mode. In this mode,
it reads its input and runs the passes. The result code signals to the
parent instance of bugpoint what happened (success, fail, crash).

This change should make bugpoint usable on Win32 systems.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24961 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
a229c5cce75209047db32c6039aa0b0fd481f049 08-Jul-2005 Reid Spencer <rspencer@reidspencer.com> Final Changes For PR495:

This chagne just renames some sys::Path methods to ensure they are not
misused. The Path documentation now divides methods into two dimensions:
Path/Disk and accessor/mutator. Path accessors and mutators only operate
on the Path object itself without making any disk accesses. Disk accessors
and mutators will also access or modify the file system. Because of the
potentially destructive nature of disk mutators, it was decided that all
such methods should end in the work "Disk" to ensure the user recognizes
that the change will occur on the file system. This patch makes that
change. The method name changes are:

makeReadable -> makeReadableOnDisk
makeWriteable -> makeWriteableOnDisk
makeExecutable -> makeExecutableOnDisk
setStatusInfo -> setStatusInfoOnDisk
createDirectory -> createDirectoryOnDisk
createFile -> createFileOnDisk
createTemporaryFile -> createTemporaryFileOnDisk
destroy -> eraseFromDisk
rename -> renamePathOnDisk

These changes pass the Linux Deja Gnu tests.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22354 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
dd04df0ec33a903ee7fc747701bafde622f77d8b 08-Jul-2005 Reid Spencer <rspencer@reidspencer.com> For PR495:
Get rid of the difference between file paths and directory paths. The Path
class now simply stores a path that can refer to either a file or a
directory. This required various changes in the implementation and interface
of the class with the corresponding impact to its users. Doxygen comments were
also updated to reflect these changes. Interface changes are:

appendDirectory -> appendComponent
appendFile -> appendComponent
elideDirectory -> eraseComponent
elideFile -> eraseComponent
elideSuffix -> eraseSuffix
renameFile -> rename
setDirectory -> set
setFile -> set

Changes pass Dejagnu and llvm-test/SingleSource tests.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22349 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
ea3e5e56fdc56e5c2ddafb36eab26676e137dfa0 22-Apr-2005 Jeff Cohen <jeffc@jolt-lang.org> Eliminate tabs and trailing spaces


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21441 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
3da94aec4d429b2ba0f65fa040c33650cade196b 22-Apr-2005 Misha Brukman <brukman+llvm@gmail.com> Remove trailing whitespace


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21428 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
e21027904714d884d54080598d15361703ffdec6 16-Feb-2005 Jeff Cohen <jeffc@jolt-lang.org> Get bugpoint compiling with VC++ again, not that it works anyway.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20211 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
741c11823091f88a3cd880aa5abbd9c3caa854e3 22-Jan-2005 Jeff Cohen <jeffc@jolt-lang.org> oops


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19752 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
5fb6ed4ae608c6f7ef589f1069b5dd5c7bdbd60b 22-Jan-2005 Jeff Cohen <jeffc@jolt-lang.org> Use binary mode for reading/writing bytecode files


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19751 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
5f76760c880e6d61c229d2058c5699b033caeae1 17-Dec-2004 Reid Spencer <rspencer@reidspencer.com> For PR351:
* removeFile() -> sys::Path::destroyFile()
* remove extraneous toString() calls
* convert local variables representing path names from std::string to
sys::Path
* Use sys::Path objects with FileRemove instead of std::string
* Use sys::Path methods for construction of path names


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19001 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
97182985d530dbef488696c95a39c14fe56c995b 15-Dec-2004 Reid Spencer <rspencer@reidspencer.com> For PR351:
* Convert use of getUniqueFilename to sys::Path::makeUnique();


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18949 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
34b9071a3da37e5c8e42dfb6f5610260f4c87b22 07-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Enable compression by default.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17566 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
551ccae044b0ff658fe629dd67edd5ffe75d10e8 02-Sep-2004 Reid Spencer <rspencer@reidspencer.com> Changes For Bug 352
Move include/Config and include/Support into include/llvm/Config,
include/llvm/ADT and include/llvm/Support. From here on out, all LLVM
public header files must be under include/llvm/.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
b83c0f3f6391e5f8039305ec267f7cd43ffb4de9 12-May-2004 Chris Lattner <sabre@nondot.org> Don't leave dead bytecode.output files around if the optimizer/block extractor crashes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13477 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
44a64bccac869cf92885ccc957dbc92ad150ae7d 14-Mar-2004 Chris Lattner <sabre@nondot.org> Fix a minor bug in runPassesOn


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12397 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
0a002569003fd23a4e117fe54a9bb8a6673b86da 14-Mar-2004 Chris Lattner <sabre@nondot.org> Add a new "AutoDebugCrashes" option


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12396 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
3b6441e1050a9a2a55c79f58513191b3195fdaf7 14-Mar-2004 Chris Lattner <sabre@nondot.org> Add new method


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12394 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
ca005120082385026fd80fe76946fc446d3c9d33 19-Feb-2004 Chris Lattner <sabre@nondot.org> Don't crash if there are no passes in the PassesToRun list


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11612 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
fa76183e8e28985dfd17b1d6291c939dab4cbe1d 14-Jan-2004 Chris Lattner <sabre@nondot.org> finegrainify namespacification


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10839 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
d0fde30ce850b78371fd1386338350591f9ff494 11-Nov-2003 Brian Gaeke <gaeke@uiuc.edu> Put all LLVM code into the llvm namespace, as per bug 109.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
943211187d72eb27d4f54de9ac7e5786e72b38e1 20-Oct-2003 Chris Lattner <sabre@nondot.org> fix file headers


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9293 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
7c0e022c5c4be4b11e199a53f73bbdd84e34aa80 20-Oct-2003 John Criswell <criswell@uiuc.edu> Added copyright header to all C++ source files.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9291 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
ac32bfa54b052181f89e4a1b1259ce0c4d55237d 10-Oct-2003 Brian Gaeke <gaeke@uiuc.edu> Don't include <stdlib.h>.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9038 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
cf00c4ab3ba308d45d98c5ccab87362cf802facb 10-Oct-2003 Misha Brukman <brukman+llvm@gmail.com> Fix spelling.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9027 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
3d9cafa003a114bf9974bc80d5b69b0ed1d29290 07-Aug-2003 Misha Brukman <brukman+llvm@gmail.com> File-related functions moved to FileUtilities.h .


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7696 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
e49603d79d220a795bd50684c8b1f503ee40f97f 07-Aug-2003 Misha Brukman <brukman+llvm@gmail.com> Re-grouped and alphabetized headers for easier reading and cleaner style.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7689 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
0bd75bb92d25591b89f5dee08fb343709d792d5b 07-Aug-2003 Misha Brukman <brukman+llvm@gmail.com> Moved SystemUtils.h to include/Support and SystemUtils.cpp to lib/Support.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7687 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
265789f1559565cd69482c07ede55ca3e4b2d798 21-Jul-2003 Misha Brukman <brukman+llvm@gmail.com> Fixed misspelling.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7223 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
24271cf8d78ee4ad181ac0168cf7c2590d40502e 02-Jun-2003 Chris Lattner <sabre@nondot.org> Give better information about how the passes crash


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6532 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
9c3b55ea9f5fe17c5713757e97aa62e0fb356dcf 24-Apr-2003 Chris Lattner <sabre@nondot.org> 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
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
c986392c30043c056608b06ddf2f10fdd35a8d5e 24-Apr-2003 Chris Lattner <sabre@nondot.org> Remove support for "target data" pass ctors


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5900 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
640f22e66d90439857a97a83896ee68c4f7128c9 24-Apr-2003 Chris Lattner <sabre@nondot.org> 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
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
f2bcccfbab53f31ccaceb6bd9b74e0219c572904 23-Jan-2003 Chris Lattner <sabre@nondot.org> Allow creating of passes like levelraise which use a targetdata ctor


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5403 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
218e26ef3583cc3270f5f2a2b9cb1025e5b05ebe 24-Dec-2002 Chris Lattner <sabre@nondot.org> Implement the start of the miscompilation detection stuff


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5119 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp
afade9294af43c6b947b9aeaa1555883d5f853e3 20-Nov-2002 Chris Lattner <sabre@nondot.org> Initial checkin of bugpoint


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4789 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/OptimizerDriver.cpp