History log of /external/llvm/tools/bugpoint/ExecutionDriver.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cddc3e03e4ec99c0268c03a126195173e519ed58 04-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r256229

http://b/26987366

(cherry picked from commit f3ef5332fa3f4d5ec72c178a2b19dac363a19383)

Change-Id: Ic75dcb63191d65df1b69724576392c0aaeb47728
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
c6a4f5e819217e1e12c458aed8e7b122e23a3a58 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/ExecutionDriver.cpp
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

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

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
8819c84aed10777ba91d4e862229882b8da0b272 01-Oct-2013 Rafael Espindola <rafael.espindola@gmail.com> Remove several unused variables.

Patch by Alp Toker.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191757 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.cpp
e528a2c21a63a06c5e3cdf929000d77c59ac0937 28-Jun-2013 Hal Finkel <hfinkel@anl.gov> Fix bugpoint execution/reference output file name

sys::fs::unique_file will now loop infinitely if provided with a file name
without '%' characters and the input file already exists. As a result, bugpoint
cannot use a fixed file name for the execution output (including the reference
output).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185166 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.cpp
9a23039e42ce494feaf4b5efa806494026329b9f 18-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Remove use of PathV1.h from ExecutionDriver.cpp.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184107 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.cpp
ed7fcf4fd93b16bfa698451862355fdd17239736 24-Jan-2013 Saleem Abdulrasool <compnerd@compnerd.org> [bugpoint] make tool selection messages unique

Change messages to help identify which interpreter was actually selected (safe
vs testing).

Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
Reviewed-by: Chandler Carruth <chandlerc@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173360 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
a443e5b1f1013612950fc3c9ebfafca60a1c20df 23-Mar-2012 Eric Christopher <echristo@apple.com> Remove the C backend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153307 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
2bd335470f8939782f3df7f6180282d3825d4f09 10-Jan-2012 David Blaikie <dblaikie@gmail.com> Remove unnecessary default cases in switches that cover all enum values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147855 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
7c863eb8cc34c8ae97ae90672758eb6637b1125f 11-May-2011 Andrew Trick <atrick@apple.com> Bugpoint support for miscompilations that result in a crash.

This change allows bugpoint to pinpoint the "opt" pass and bitcode
segment responsible for a crash caused by miscompilation. At least it
works well for me now, without having to create any custom execution
wrappers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131186 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.cpp
f73311bb646bf970806ba7caba220e6bffff7b49 08-Feb-2011 Andrew Trick <atrick@apple.com> Added bugpoint options: -compile-custom and -compile-command=...

I've been using this mode to narrow down llc unit tests. Example
custom compile script:
llc "$@"
not pygrep.py 'mul\s+r([0-9]), r\1,' < bugpoint-test-program.s


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125096 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
de86cbdc57f30621d3692da7a36613bb623d13b5 08-Feb-2011 Andrew Trick <atrick@apple.com> whitespace


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125095 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
248d1c65f1ce5bc04b892998b2c2061e6a5f8e1c 05-Aug-2010 Rafael Espindola <rafael.espindola@gmail.com> Add const to compileProgram and to the various test functions in CrashDebugger.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110306 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
13793264e7cbf58e3b7b0cff3baac8e0b7a11a9d 31-Jul-2010 Rafael Espindola <rafael.espindola@gmail.com> Add const to some methods and change TestMergedProgram to return the merged
module and take a const BugDriver.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109951 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.cpp
41396302126c24f1d5231e191852ebf2ff37fe23 24-May-2010 Duncan Sands <baldrick@free.fr> Apply timeouts and memory limits in more places. In particular, when
bugpoint does "Running the code generator to test for a crash" this
gets you a crash if llc goes into an infinite loop or uses up vast
amounts of memory.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104485 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
faa95763ebb081769bf6ac35e170394c9d477813 10-May-2010 Kalle Raiskila <kalle.raiskila@nokia.com> Add command line option --gcc to bugpoint.
Remove sending duplicate of the --gcc-tool-args parameters to gcc.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103397 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.cpp
16350f8d00fc3a4a8d2da8a746a29979505af9a8 11-Apr-2010 Nick Lewycky <nicholas@mxc.ca> Remove dead argument and clean whitespace. No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100954 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
50010429a7c3285dab15ede68acae7231fade367 16-Mar-2010 Chris Lattner <sabre@nondot.org> add support for bugpointing the integrated assembler. Something like this
works for me: bugpoint Output/bisort.llvm.bc -run-llc-ia -safe-run-llc

This uses llc with the integrated assembler as the test compiler and llc
without it as the safe compiler.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98618 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.cpp
49419e28fe400509363cecf63a3a824002c1d9e0 21-Jul-2009 Evan Cheng <evan.cheng@apple.com> 80 col violation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76629 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.cpp
38efa38c864f6d29892d92102c0232b234b526ed 03-Mar-2009 Bill Wendling <isanbard@gmail.com> Add a "-gcc-tool-args" option. This option acts like the "-tool-args" option,
but passes the arguments to the "gcc" invocation instead of to the "llc"
invocation.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65896 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.cpp
33b1c30b0be49d09e57630abd2535c9aaeaf8636 27-Oct-2008 Nick Lewycky <nicholas@mxc.ca> Remove -check-exit-code from bugpoint. This is subsumed by -append-exit-code.
Note that -check-exit-code was on by default while -append-exit-code is not.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58221 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
ad6996d74f60340d6139af8f345d93735661fbba 12-Jun-2008 Matthijs Kooijman <matthijs@stdin.nl> Let bugpoint display generated messages on stderr only if no interpreter was
found, this ensures that messages like "Found gcc" end up on stdout where they
belong.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52235 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
9ef7425a4d44ff129495da2357c98c67162fbeff 28-Apr-2008 Anton Korobeynikov <asl@math.spbu.ru> Add possibility of using arbitrary to to execute stuff from bugpoint.
Patch by Pekka Jääskeläinen!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50373 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.cpp
497391ad8d35fd8dcf6b48f459c179e3db3d3c5c 07-Jun-2007 Lauro Ramos Venancio <lauro.venancio@gmail.com> Fix bugpoint to run -llc-safe with -Xlinker.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37483 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.cpp
5e1452c856a8bcf39ab7a67a5af946c8162f942d 28-Nov-2006 Reid Spencer <rspencer@reidspencer.com> Add an -append-exit-code option to bugpoint. This will cause bugpoint to
append "exit <retcode>" to the end of the output file. This is used by
the nightly tester to make bugpoint match the output generated by the
RunSafely.sh script so it doesn't find false positives.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31960 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
cd6f46e2ac4c1d64067237c0b28eccfae22bd9f4 09-Nov-2006 Chris Lattner <sabre@nondot.org> add a new bugpoint mode -llc-safe. This uses LLC for both halves of a
miscompilation. This is useful for working around GCC+CBE bugs or for handling
programs that CBE doesn't support (e.g. inline asm) when searching for
optimizer bugs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31588 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
d41b30def3181bce4bf87e8bde664d15663165d0 05-Nov-2006 Jeff Cohen <jeffc@jolt-lang.org> Unbreak VC++ build.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31464 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
c600f3c337f18c62116ac58b701e4f7ae6d2fb1a 15-Sep-2006 Chris Lattner <sabre@nondot.org> Add a new -cbe-bug mode, which works just like -run-llc, except that it uses
LLC as the reference compiler to reduce testcases for bugs in GCC.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30400 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.cpp
130e2a361147a31ae631d3648afdd95a5c0d40f2 27-Jun-2006 Chris Lattner <sabre@nondot.org> Pass -Xlinker flags to gcc when it builds the shared object.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28939 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.cpp
51ab5c8862466bbddcd5c4369779c472978ed309 06-Jun-2006 Reid Spencer <rspencer@reidspencer.com> Add the -Xlinker option to bugpoint which allows an option to be passed
through to gcc when its being used as a linker. This allows -L and -l
(and any other) options to be added so that non-complete bytecode files
can be processed with bugpoint. The -Xlinker option can be added as many
times as needed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28692 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
e31a9ccb9c7568e6f185f667b53c274c0be9e603 22-Jan-2006 Chris Lattner <sabre@nondot.org> add explicit #includes of iostream


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25510 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
00b16889ab461b7ecef1c91ade101186b7f1fce2 27-Jul-2005 Jeff Cohen <jeffc@jolt-lang.org> Eliminate all remaining tabs and trailing spaces.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22523 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.cpp
a328c51bb99666ee0c045a57ea6d6ce2b0198f9b 23-Jan-2005 Chris Lattner <sabre@nondot.org> Add support for fp tolerances


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19774 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
cf989fd2a37524995155b347ec52e90145618fd2 23-Jan-2005 Chris Lattner <sabre@nondot.org> Adjust to changed interface.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19772 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
06c375bd1d402ddcf2ee8e34005a74a0addbd7cc 22-Dec-2004 Brian Gaeke <gaeke@uiuc.edu> Fix the build on PowerPC/Darwin - it thought we were declaring a new
function or something. Since FileRemover takes a const reference to
sys::Path, we need to pass an actual sys::Path variable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19111 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.cpp
7848e68c1635ccba5a08d55314d4e5aed5ab54b9 21-Jul-2004 Brian Gaeke <gaeke@uiuc.edu> These files don't need to include <iostream> since they include "Support/Debug.h".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15089 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
4d143ee01988e1b52e106ffccbb313937ca5e886 16-Jul-2004 Chris Lattner <sabre@nondot.org> IA64 compat


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14867 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
60083e2fc0f1165b7511757449f1ee3852b7229c 07-May-2004 Chris Lattner <sabre@nondot.org> Use the new commandline flag to allow us to call bugpoint like this:

bugpoint ... --tool-args -enable-correct-eh-support -regalloc=linearscan --args -- -foo

So that tool-args option gets the -enable-correct-eh-support -regalloc=linearscan flags instead of bugpoint.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13389 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
817d8d304688457ce57296fa8c5c5f62b682aa74 06-May-2004 Chris Lattner <sabre@nondot.org> Remove a really old comment


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13385 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
636df3d7ec51a8c6fd759a98853ff709ae54d64e 04-May-2004 Brian Gaeke <gaeke@uiuc.edu> Add --tool-args flag which lets you pass arguments to llc or lli.
This is intended to address Bug 40.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13358 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
b687d82b029ba448b978e2c9ed424ee5d1f9f093 19-Apr-2004 Misha Brukman <brukman+llvm@gmail.com> * Reorder #includes
* Wrap a long line


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13061 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
58d84ced5f7367335e43ea54e5daf32a4fdaefb6 02-Apr-2004 Chris Lattner <sabre@nondot.org> If the program returns a non-zero exit value, don't leave files laying
around


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12603 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
ea9212ca964ff6587227016f86a44160e586a4c8 19-Feb-2004 Chris Lattner <sabre@nondot.org> Add a new method for use by the code generator crash debugger.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11613 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
9709272675feaca030cce14d0f5eb7f342b3fc1d 18-Feb-2004 Chris Lattner <sabre@nondot.org> Make the executeProgram method exception safe, not leaving around bytecode
files.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11607 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
7bb11547e497d7b8fc87f61c1089eee808e3a1ee 18-Feb-2004 Chris Lattner <sabre@nondot.org> Update comments, if we are running with the CBE, make sure the Interpreter
variable and the CBE variable are pointer equal.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11599 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
c5cad211d6ec50fe90a0a716dee701c6c4721385 11-Feb-2004 Brian Gaeke <gaeke@uiuc.edu> Add check-exit-code option, defaulting to true.

Add ProgramExitedNonzero argument to executeProgram(), and make it
tell its caller whether the program exited nonzero.

Move executeProgramWithCBE() out of line, to ExecutionDriver.cpp, and remove
its extra arguments which are always defaulted. Make it turn off
check-exit-code if the program exits nonzero while generating a reference
output.

Make diffProgram() assume that any nonzero exit code is a failure, if
check-exit-code is turned on.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11325 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.cpp
b5ee509be2ce78badc11fd649dda90ec78394d1a 21-Oct-2003 Brian Gaeke <gaeke@uiuc.edu> Fix the first FIXME in this file: automatically pick a "good"
interpreter by default, by picking the first one that works
from a hard-coded list.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9337 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.cpp
6ebe44d22f6dd1ab9f7aa1f3cfd02be52145d535 19-Oct-2003 Chris Lattner <sabre@nondot.org> Ok, return an explicit path to the shared object, unbreaking code generator
debugging with the JIT


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9273 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
1a28a2b76d16913fe38f47032d31620a55dcce2e 18-Oct-2003 Chris Lattner <sabre@nondot.org> Don't leave a trail of bugpoint-execution-output-* breadcrumbs all over the place


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9242 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
367e1ee5bebc3542b55df61cd280bd6166057e51 18-Oct-2003 Chris Lattner <sabre@nondot.org> Change run-lli -> run-int
Many people associate lli with the jit, so we don't want to suprise them


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9238 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
25d66473c620b6b01e301b9cfabdbedace96608e 18-Oct-2003 Chris Lattner <sabre@nondot.org> Default to using the CBE instead of the Interpreter if no -run-* option is specified


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9237 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
7dac658792425c10274594782d6fcf10208a16f0 15-Oct-2003 Chris Lattner <sabre@nondot.org> add support forloading additional .so files on the command line


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9131 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
769f1fe6728ffb5627ae0cedc392576d6e701a5a 14-Oct-2003 Chris Lattner <sabre@nondot.org> Change the execute methods to take the shared object filename by const reference.
Other adjustments to work with the new ToolRunner interfaces


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9130 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
a0f5b15e1eb8642d92b3141a6b88a5729ea979dc 14-Oct-2003 Chris Lattner <sabre@nondot.org> The return value of compileSharedObject was never used. Return the shared
object's name instead


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9120 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
5de0bac111fc9d4e290b9a743a02b866154c12e5 07-Oct-2003 Chris Lattner <sabre@nondot.org> This header file moved. Thanks to Bill and Nightly tester for noticing


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8920 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
4148556a9c767fdf3047ae8e004a759356b893dd 30-Sep-2003 Misha Brukman <brukman+llvm@gmail.com> Use the newly abstracted interface for running our tools and gcc.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8756 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
85544baf5408f13b6ac0ab194cb7f1f739b77515 29-Aug-2003 Misha Brukman <brukman+llvm@gmail.com> Renaming `dis' -> `llvm-dis'.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8197 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
a59f71adea128a7a50f17615b57bc728bdeaf706 19-Aug-2003 Chris Lattner <sabre@nondot.org> no-strict-aliasing redux


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7965 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
c13115c6331178d1d351dbeb6e44c0cf93be16ff 19-Aug-2003 Chris Lattner <sabre@nondot.org> The CBE generates code which violates the TBAA rules of C, thus we must disable
optimizations based on these rules. :(


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7964 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.cpp
ca25b956f1f4440c3392eaf0351305b0c81e6124 04-Aug-2003 Chris Lattner <sabre@nondot.org> Make sure to flush the output stream so that we get incremental updates


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7555 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
c648dabf65c67d20c208ed0b39b9622387e636c7 02-Aug-2003 Chris Lattner <sabre@nondot.org> DEBUG got moved to Debug.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7491 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
65f62790d6e3e7f7ceb9cd12a7a51a66d95a3b03 01-Aug-2003 Chris Lattner <sabre@nondot.org> Use the new FileUtilities library to do diff'ing of files


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7484 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
9d679cbc6cb5c7dc8cca87a1e1548c480fb056b8 30-Jul-2003 Misha Brukman <brukman+llvm@gmail.com> * Moved InputArgv out of anonymous scope to be extern'd in another file.
* Added DEBUG() statements to print out parameters passed to executing programs
* Actually ADD parameters to a program running via the JIT (using vector<char*>)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7433 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
800e6e216abaf93e7cc297af0e1e78f24b2d6143 30-Jul-2003 Misha Brukman <brukman+llvm@gmail.com> Moved definition of InputArgv into ExecutionDriver.cpp -- it is only used there.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7427 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
7835c852270da3da66d79d4d18cefda3c8e3019c 30-Jul-2003 Misha Brukman <brukman+llvm@gmail.com> Use a vector<char*> instead of char*[] so that we can add arbitrary number of
parameters, such as command-line arguments that the executing program gets via
bugpoint.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7423 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
91eabc13d3a456cc4b387d3d7fdb041d976732c7 28-Jul-2003 Misha Brukman <brukman+llvm@gmail.com> BugDriver.h:
* Added method to query if BugDriver is executing the JIT currently.
This provides the ability in adding code that is conditionally executed in
codegen debugging phase.

CodeGeneratorBug.cpp:
* Delete test functions from the Safe module
* Code conditionally added when debugging the JIT:
use the lazy resolver function added to Emitter.cpp to get function pointer
by name. When compiled into an .so, this is the only way to get a pointer to
an external function
* Added a symbol disambiguator which will keep symbols uniquely named across
modules
* Delete generated files by default
* The function `main' *must* stay in the .bc file for the JIT, but that prevents
debugging it alone. This patch makes the old `main' become `old_main' and adds
a new function named `main' which just calls the original with the same
parameters, thereby keeping functionality the same.

ExecutionDriver.cpp:
* Returned to getting unique filenames
* Simplified code choosing between using and not using shared library option


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7364 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.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/ExecutionDriver.cpp
f479be58f5d956e29c315446d7daa9181fba3193 03-May-2003 Chris Lattner <sabre@nondot.org> Make a comment more accurate


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5991 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
cc876a7421f6dbcca98446058d5f0637092c6e1a 03-May-2003 Chris Lattner <sabre@nondot.org> Add support for debugging miscompilations with the use of the JIT or CBE!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5990 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.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/ExecutionDriver.cpp
3c053a0a98e19f5ac8905011ad4c8238b08d6aea 23-Apr-2003 Chris Lattner <sabre@nondot.org> Allow specifying an input file for the program being executed


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5888 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
e1b52b765675015eee5ce9efdb1b81c6c3eaefb1 24-Dec-2002 Chris Lattner <sabre@nondot.org> Fix compilation on GCC 3.2


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5136 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/ExecutionDriver.cpp
4a10645c70199c8d8567fbc46312158c419720ab 24-Dec-2002 Chris Lattner <sabre@nondot.org> New files for miscompilation detection


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