History log of /external/llvm/tools/bugpoint/BugDriver.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
85f37f33634c78c09acfd06acc6ace7dd6512c7f 01-Nov-2011 Sebastian Pop <spop@codeaurora.org> rename getHostTriple into getDefaultTargetTriple



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143502 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
d8b7aa26134d2abee777f745c32005e63dea2455 16-Oct-2011 Chris Lattner <sabre@nondot.org> Enhance llvm::SourceMgr to support diagnostic ranges, the same way clang does. Enhance
the X86 asmparser to produce ranges in the one case that was annoying me, for example:

test.s:10:15: error: invalid operand for instruction
movl 0(%rax), 0(%edx)
^~~~~~~

It should be straight-forward to enhance filecheck, tblgen, and/or the .ll parser to use
ranges where appropriate if someone is interested.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142106 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
f1f1a4f16128ffa2910f0b1d5c7052b3697f9fcd 11-Oct-2011 Tanya Lattner <tonic@nondot.org> Make it possible to use the linker without destroying the source module. This is so the source module can be linked to multiple other destination modules. For all that used LinkModules() before, they will continue to destroy the source module as before.

This line, and those below, will be ignored--

M include/llvm/Linker.h
M tools/bugpoint/Miscompilation.cpp
M tools/bugpoint/BugDriver.cpp
M tools/llvm-link/llvm-link.cpp
M lib/Linker/LinkModules.cpp


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141606 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
56584fcbfd541c20b914f7cb58a38bf1a16f55c0 31-Mar-2011 Michael J. Spencer <bigcheesegs@gmail.com> Fix whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128631 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
c9c08fb3a7fb5e8ea3e1477a88507704c7a70ba1 31-Mar-2011 Michael J. Spencer <bigcheesegs@gmail.com> Switch FileRemover from PathV1 to V2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128630 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.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/BugDriver.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/BugDriver.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/BugDriver.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/BugDriver.cpp
5d8cace94a71169ce8493baa7f3305a27fe0cd84 05-Aug-2010 Rafael Espindola <rafael.espindola@gmail.com> Add a Module argument to the remaining runPasses methods and mark getContext
const.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110300 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
10757dd8e1a66128b205bd04797c8aed0cb7a1bd 30-Jul-2010 Rafael Espindola <rafael.espindola@gmail.com> Add a Program argument to diffProgram to avoid a use of swapProgramIn.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109859 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.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/BugDriver.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/BugDriver.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/BugDriver.cpp
22ff748712b348300e51248339b6e8cf9b59e2c6 12-Apr-2010 Nick Lewycky <nicholas@mxc.ca> Remove use of exceptions from bugpoint. No deliberate functionality change!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101013 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
51ecc389a9b6ae82ff799a62cde882629fad53b0 24-Mar-2010 Dan Gohman <gohman@apple.com> Trim #includes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99416 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
c1dc0679706f7538cd17169b920967c54661e5b6 22-Mar-2010 Jeffrey Yasskin <jyasskin@google.com> Free all Constants in ~LLVMConstantImpl. We avoid assertion failures
by dropping all references from all constants that can use other
constants before trying to destroy any of them.

I also had to free bugpoint's Module in ~BugDriver().



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99160 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.cpp
dad45ea56ea8419f51cefb3ff6d2c9ad886ccbbb 03-Sep-2009 Dan Gohman <gohman@apple.com> Make bugpoint use ParseIRFile instead of doing the same thing manually.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80927 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
ca7409664273fed4b473127295af3af0836b3077 18-Aug-2009 Daniel Dunbar <daniel@zuster.org> Change bugpoint to use Triple to make runtime decisions.
- This is cleaner, and makes bugpoint match the host instead of the build
architecture.

- Patch by Sandeep Patel!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79309 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
86c006a971eb6fab6bd4923ff7ec1c0bc9c28f74 05-Aug-2009 Anton Korobeynikov <asl@math.spbu.ru> Add save-temps option to bugpoint to keep temporary stuff.
Patch by Sandeep Patel

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78183 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.cpp
65f57c233cd4499e2e8b52a503201e64edfd6a9e 15-Jul-2009 Dan Gohman <gohman@apple.com> Use errs() instead of std::cerr.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75791 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
80becf194d56524e8c75618ac57a34520f87a684 10-Jul-2009 David Goodwin <david_goodwin@apple.com> Support remote execute for ARM.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75292 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
92bcb426c3e4503c99324afd4ed0a73521711a56 03-Jul-2009 Chris Lattner <sabre@nondot.org> switch the .ll parser into SMDiagnostic.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74734 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
4434ed44c45c87a72b7a0bf2f91211f895022b91 02-Jul-2009 Owen Anderson <resistor@mac.com> Make the use of const with respect to LLVMContext sane. Hopefully this is the last time, for the
moment, that I will need to make far-reaching changes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74655 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
31895e73591d3c9ceae731a1274c8f56194b9616 01-Jul-2009 Owen Anderson <resistor@mac.com> Hold the LLVMContext by reference rather than by pointer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74640 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.cpp
df98617b23315e427cc4fad8ccfdd50d68bec2f9 02-Jan-2009 Chris Lattner <sabre@nondot.org> Reimplement the old and horrible bison parser for .ll files with a nice
and clean recursive descent parser.

This change has a couple of ramifications:
1. The parser code is about 400 lines shorter (in what we maintain, not
including what is autogenerated).
2. The code should be significantly faster than the old code because we
don't have to work around bison's poor handling of datatypes with
ctors/dtors. This also makes the code much more resistant to memory
leaks.
3. We now get caret diagnostics from the .ll parser, woo.
4. The actual diagnostics emited from the parser are completely different
so a bunch of testcases had to be updated.
5. I now disallow "%ty = type opaque %ty = type i32". There was no good
reason to support this, it was just an accident of the old
implementation. I have no reason to think that anyone is actually using
this.
6. The syntax for sticking a global variable has changed to make it
unambiguous. I don't think anyone is depending on this since only clang
supports this and it is not solid yet, so I'm not worried about anything
breaking.
7. This gets rid of the last use of bison, and along with it the .cvs files.
I'll prune this from the makefiles as a subsequent commit.

There are a few minor cleanups that can be done after this commit (suggestions
welcome!) but this passes dejagnu testing and is ready for its time in the
limelight.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61558 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
70ef449741da8b1ef035e04a55958652a0200ba1 08-Dec-2008 Dan Gohman <gohman@apple.com> Generalize bugpoint's concept of a "safe" backend, and add options
to allow the "safe" backend to be run with a different path, and/or
with different command-line options.

This enables the following use cases:
- bugpoint llc against an llc command from a different build
- bugpoint llc against the same llc with different command-line options
- and more...

Also, document the existing "custom" interpreter options.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60681 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.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/BugDriver.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/BugDriver.cpp
065344dfd5a7b3502098810b981eb0077e5d81f3 07-May-2007 Chris Lattner <sabre@nondot.org> 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
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.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/BugDriver.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/BugDriver.cpp
f2e292ce58ca07d9bbe3cad75f8baa35bd85964a 07-Feb-2007 Chris Lattner <sabre@nondot.org> push bytecode decompressor out through APIs. Now the bytecode reader
api's look like this:

ModuleProvider *getBytecodeModuleProvider(
const std::string &Filename, ///< Name of file to be read
BCDecompressor_t *BCDC = Compressor::decompressToNewBuffer,
std::string* ErrMsg = 0, ///< Optional error message holder
BytecodeHandler* H = 0 ///< Optional handler for reader events
);

This is ugly, but allows a client to say:

getBytecodeModuleProvider("foo", 0);

If they do this, there is no dependency on the compression libraries, saving
codesize.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34012 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
4e3be89cb5cde6e2df294c64db3bc28133b67594 25-Oct-2006 Bill Wendling <isanbard@gmail.com> Fix for PR960. Improves bugpoint so that it removes global variable
initializers as well. This is only a first pass. It can be slow because
it clones the module for each pass. An obvious improvement is not to do that.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31182 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
61c83e023fe618ca7b4fdc846039933e61a00ec9 18-Aug-2006 Reid Spencer <rspencer@reidspencer.com> For PR797:
Rid the Assembly Parser of exceptions. This is a really gross hack but it
will do until the Assembly Parser is re-written as a recursive descent.
The basic premise is that wherever the old "ThrowException" function was
called (new name: GenerateError) we set a flag (TriggerError). Every
production checks that flag and calls YYERROR if it is set. Additionally,
each call to ThrowException in the grammar is replaced with GEN_ERROR
which calls GenerateError and then YYERROR immediately. This prevents
the remaining production from continuing after an error condition.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29763 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
6a3f31cb707972ebde1e45a61fa8f5bcff132eba 15-Aug-2006 Patrick Jenkins <pjenkins@apple.com> This commit adds a new feature called find-bugs. The find-bugs option can be invoked on a .bc file from the command like with -find-bugs and a list of passes you wish to test. This procedure takes the set of optimization passes the user specifies, randomizes the passes, runs the passes on the specified .bc file, compiles the program, and finally runs the program checking its output vs the .bc file with no optimizations. This process repeats until either the user kills bugpoint or an error occurs in the optimizations, program complitation, or the running of the program. If an error occurs, bugpoint attempts to diagnose the error by eliminating passes that are not at fault and code that is not needed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29703 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.cpp
f1b20d8620b05abaa52f40ac6d21f839b265fb00 07-Jun-2006 Chris Lattner <sabre@nondot.org> Move ToolRunner.(cpp|h) into the bugpoint directory


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28699 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
53bd1b9de74247acae27328cef95bd3888f6cd4d 14-May-2006 Chris Lattner <sabre@nondot.org> print a nice error if bugpoint gets an error reading inputs. Bug identified
by coverity.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.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/BugDriver.cpp
5d282185f517d651d965e86dab1b383e0cb5e919 20-Dec-2004 Reid Spencer <rspencer@reidspencer.com> Allow compilers that can't distinguish between a class instantiation and
the declaration of a function to compile this.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19073 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.cpp
e4874029c37c4b14d0646289f18e5f2a1b03fdc2 13-Dec-2004 Reid Spencer <rspencer@reidspencer.com> LinkModules is now in the Linker class


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18863 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
605b9e2c5bd1b0c151a0b15d01e6df3aba93d52f 15-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Linker.h has a new home.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17801 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.cpp
7d91e49ff7bcc0fd10a54d45a6185bb05adf3d20 24-Jul-2004 Chris Lattner <sabre@nondot.org> Finally give bugpoint -timeout support!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15163 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
eed80e23751ecc50c1fa5604f67be4b826d5b417 23-Jul-2004 Misha Brukman <brukman+llvm@gmail.com> * Convert "\n" -> '\n'
* Print out another '\n' after printing out program execution status
* Make sure code wraps at 80 cols


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15123 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
86f42bdad93677fa0ca33b27afb0f493028376cb 04-Jul-2004 Reid Spencer <rspencer@reidspencer.com> Add #include <iostream> since Value.h does not include it any more.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14623 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
008248f2c098f7680b5b393d6e3006cd7d974b77 23-Jun-2004 Misha Brukman <brukman+llvm@gmail.com> Linker.h moved to include/llvm/Support


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14351 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
b04da8a3c6488fe396c6d61eec9980598b8c84ae 06-Apr-2004 Misha Brukman <brukman+llvm@gmail.com> Wrap at 80 cols.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12701 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
efdc0b505712d1ca4460def27e51c430f033d58d 14-Mar-2004 Chris Lattner <sabre@nondot.org> Refactor and clean up a bunch more code. No major functionality changes.
* Make several methods of bugdriver global functions (ParseInputFile, PrintFunctionList)
* Make PrintFunctionList truncate the output after 10 entries, like the crash debugger
did. This allows code sharing.
* Add a couple of methods to BugDriver that allows us to eliminate some friends
* Improve comments in ExtractFunction.cpp
* Make classes that used to be friends up bugdriver now live in anon namespaces
* Rip a bunch of functionality in the miscompilation tester into a new
TestMergedProgram function for future code sharing.
* Fix a bug in the miscompilation tester induced in my last checkin


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12393 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
be21ca54e08339ede5dd4bbb882182d22e274988 14-Mar-2004 Chris Lattner <sabre@nondot.org> Refactor all of the "splitting a module into two pieces" code to avoid
code duplication. Also, don't use ReduceMiscompilingFunctions::TestFuncs
to print out the final message.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12387 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
47dd2766f205d0f2b2eaa624cc20a032402b611e 20-Feb-2004 Chris Lattner <sabre@nondot.org> Format a bit more nicely


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11651 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
7c955fdb446fa0629e1341f88f4541ee9a929942 19-Feb-2004 Chris Lattner <sabre@nondot.org> Be a bit more robust. Explicitly check for a code generator crash.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11624 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
1d29a6d6c7a7f6203065c003d3d2d002870e38a1 19-Feb-2004 Alkis Evlogimenos <alkis@evlogimenos.com> Make ToolExecutionError inherit std::exception and implement its
interface: getMessage() is gone, use what() instead.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11621 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
06905db7d2a2b83c1b3236d5552629ada2d8d56d 18-Feb-2004 Chris Lattner <sabre@nondot.org> Cleanup and simplify manipulation of the program, eliminate the need for so
many 'friends' of bugdriver.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11603 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
025262692a6710de29a48e2b3905672cd12d13d2 18-Feb-2004 Chris Lattner <sabre@nondot.org> Add a stub for debugging code generator crashes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
5dcc3664b586b7efa64959d86280586e6302fcfa 18-Feb-2004 Chris Lattner <sabre@nondot.org> ctor arguments changed order


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11595 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
c064e8930f15ef81c7734d30169c0f445a929722 18-Feb-2004 Chris Lattner <sabre@nondot.org> This class got moved to FileUtilities.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11583 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.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/BugDriver.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/BugDriver.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/BugDriver.cpp
b6c3a88dc4c749e88fdd68368d74ccfb37d506a3 15-Oct-2003 Brian Gaeke <gaeke@uiuc.edu> Flush output after writing out the list of function names.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9138 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
a5a96a9ed9d90014769ffc86ca48c486cf753ad5 14-Oct-2003 Chris Lattner <sabre@nondot.org> Eliminate the bugpoint -mode option, by making bugpoint automatically infer the root of all of your problems


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9115 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
99b85334d70bc5eb110ee5f1af4ff2f63c55f6cb 13-Oct-2003 Chris Lattner <sabre@nondot.org> Unbreak code generator debug mode


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9106 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
79f03d350e426f017696c63a29330d153e0a7932 17-Sep-2003 Chris Lattner <sabre@nondot.org> Use new method


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8573 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
c28c1d3cd19bbfcc8eec44f25c5890f8e3ed8bdc 22-Aug-2003 Chris Lattner <sabre@nondot.org> Kill warning


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8056 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
79063d6c4b6441c672962b9543b6f5fa2876e0bd 22-Aug-2003 Misha Brukman <brukman+llvm@gmail.com> Squash the warning that `Result' may not be initialized on all code paths.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8042 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.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/BugDriver.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/BugDriver.cpp
a259c9be2acc9528ec7feb3cfd51dcde36d87bb3 24-Jul-2003 Misha Brukman <brukman+llvm@gmail.com> Made a bunch of cleanups, as per Chris' recommendations:
* Removed unused global and member variables
* Fixed comments (CodeGeneratorBug.cpp)
* Check for possibly failing GCC::create() and CBE::create()
* Remove generated files after diffing the output (e.g., shared object)
* Instead of using std::for_each, use explicit loops as std::for_each may
duplicate the functor, and ours carries state
* Changed member var from cl::opt<std::string> to just std::string
* Fixed doxygen comments
* Fixed string comparisons to use [ str.empty() ] instead of [ str == "" ]
* Cache instances of CBE and GCC in BugDriver across compilations and executions
while testing tools.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7302 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
5073336cd4da5df4ae13a167582d1dc90f32e4e0 24-Jul-2003 Misha Brukman <brukman+llvm@gmail.com> Major addition to bugpoint: ability to debug code generators (LLC and LLI).
The C backend is assumed correct and is used to generate shared objects to be
loaded by the other two code generators.

LLC debugging should be functional now, LLI needs a few more additions to work,
the major one is renaming of external functions to call the JIT lazy function
resolver.

Bugpoint now has a command-line switch -mode with options 'compile' and
'codegen' to debug appropriate portions of tools.

ExecutionDriver.cpp: Added implementations of AbstractInterpreter for LLC and
GCC, broke out common code within other tools, and added ability to generate C
code with CBE individually, without executing the program, and the GCC tool can
generate executables shared objects or executables.

If no reference output is specified to Bugpoint, it will be generated with CBE,
because it is already assumed to be correct for the purposes of debugging using
this method. As a result, many functions now accept as an optional parameter a
shared object to be loaded in, if specified.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7293 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
dae7f92366311de2bfaff91f6e66ef3da2f2fcbc 23-May-2003 Brian Gaeke <gaeke@uiuc.edu> Clarify BugDriver.cpp:BugDriver::ParseInputFile()'s return values in its
explanatory comment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6308 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
c8b27318a33d1fe2fbae553159a918ccee8fae29 03-May-2003 Misha Brukman <brukman+llvm@gmail.com> The Grammar Police is out on patrol.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5985 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
473a843f31af46de50e7b5747d0f3b41bbfe3fd8 25-Apr-2003 Chris Lattner <sabre@nondot.org> Make sure that deleted functions have external linkage


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5912 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.cpp
ff4aaf0010d11a4c42f58f839336669d5fd7ba03 25-Apr-2003 Chris Lattner <sabre@nondot.org> Move function from Miscompilation.cpp


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5908 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/BugDriver.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/BugDriver.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/BugDriver.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/BugDriver.cpp