History log of /external/llvm/tools/bugpoint/bugpoint.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

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

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/tools/bugpoint/bugpoint.cpp
69f4280b5451071285700eb5bb5c38beb4336048 25-Oct-2013 Daniel Sanders <daniel.sanders@imgtec.com> [bugpoint] Increase the default memory limit for subprocesses to 300MB.

Summary:
Currently shared library builds (BUILD_SHARED_LIBS=ON in cmake) fail three
bugpoint tests (BugPoint/remove_arguments_test.ll,
BugPoint/crash-narrowfunctiontest.ll, and BugPoint/metadata.ll).

If I run the bugpoint commands that llvm-lit runs with without -silence-passes
I see errors such as this:
opt: error while loading shared libraries: libLLVMSystemZInfo.so: failed to
map segment from shared object: Cannot allocate memory

It seems that the increased size of the binaries in a shared library build is
causing the subprocess to exceed the 100MB memory limit. This patch therefore
increases the default limit to a level at which these tests pass.

Reviewers: dsanders

Reviewed By: dsanders

CC: llvm-commits, rafael

Differential Revision: http://llvm-reviews.chandlerc.com/D2013

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193420 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
24c4898973a074713201fb9351d302b9f7733e92 28-Jan-2013 Michael Gottesman <mgottesman@apple.com> Extracted ObjCARC.cpp into its own library libLLVMObjCARCOpts in preparation for refactoring the ARC Optimizer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173647 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
90230c84668269fbd53d163e398cd16486d5d414 19-Jan-2013 Chandler Carruth <chandlerc@gmail.com> Sort all of the includes. Several files got checked in with mis-sorted
includes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172891 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
446991dc348a1b6c12666d52449d2ca7a2e39a1a 10-Jan-2013 Jakub Staszak <kubastaszak@gmail.com> Fix #includes after my last commit.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172114 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.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/bugpoint.cpp
0ae2510ea00454af29c6fc3f4b012e35d5f5d431 07-Feb-2012 Hal Finkel <hfinkel@anl.gov> Allow bugpoint to recognize -bb-vectorize

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150003 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
c684e83e4554bfaf6180426f86b9253b65dd46ec 02-Aug-2011 Rafael Espindola <rafael.espindola@gmail.com> Move methods in PassManagerBuilder offline.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136727 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
3d453ac1317f910b0589d87c061f056be29e36cd 02-Aug-2011 Rafael Espindola <rafael.espindola@gmail.com> move PassManagerBuilder.h to IPO. This is a non intuitive place to put it,
but it solves a layering violation since things in Support are not supposed to
use things in Transforms.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136726 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
be2d1239a40db5efd25e3f306ae15390d9db35c6 07-Jun-2011 Eli Friedman <eli.friedman@gmail.com> Add -O1/2/3 to bugpoint, so when you conclude opt -O2 reproduces an issue, you can just run bugpoint -O2. :) My implementation isn't precisely equivalent to what opt does, but as far as I can tell, it's close enough.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132695 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
817a01ffb24504f5b00fdac9d79aa034c918f28b 22-May-2011 Chris Lattner <sabre@nondot.org> switch bugpoint and liblto to PassManagerBuilder.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131821 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
3f84a4537dbad2d11adcadbfc6fe7a93c9b3526c 14-Jan-2011 Devang Patel <dpatel@apple.com> Disable debug mode.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123443 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
bc8d5f11e7c34e4dff86b8cbcfa5f8be70ff69dd 13-Jan-2011 Devang Patel <dpatel@apple.com> Little help to debug the bugpoint itself.
Patch by Bob Wilson.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123390 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.cpp
081c34b725980f995be9080eaec24cd3dfaaf065 19-Oct-2010 Owen Anderson <resistor@mac.com> Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which
must be called in the pass's constructor. This function uses static dependency declarations to recursively initialize
the pass's dependencies.

Clients that only create passes through the createFooPass() APIs will require no changes. Clients that want to use the
CommandLine options for passes will need to manually call the appropriate initialization functions in PassInitialization.h
before parsing commandline arguments.

I have tested this with all standard configurations of clang and llvm-gcc on Darwin. It is possible that there are problems
with the static dependencies that will only be visible with non-standard options. If you encounter any crash in pass
registration/creation, please send the testcase to me directly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116820 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
75ebbceeeda1e7a78efe1848bb90e034f0c6ba61 28-Aug-2010 Duncan Sands <baldrick@free.fr> Straighten out any triple strings passed on the command line before
they hit the rest of the system.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112344 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.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/bugpoint.cpp
90c579de5a383cee278acc3f7e7b9d0a656e6a35 06-Aug-2010 Owen Anderson <resistor@mac.com> Reapply r110396, with fixes to appease the Linux buildbot gods.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110460 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
1f74590e9d1b9cf0f1f81a156efea73f76546e05 06-Aug-2010 Owen Anderson <resistor@mac.com> Revert r110396 to fix buildbots.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110410 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
9ccaf53ada99c63737547c0235baeb8454b04e80 06-Aug-2010 Owen Anderson <resistor@mac.com> Don't use PassInfo* as a type identifier for passes. Instead, use the address of the static
ID member as the sole unique type identifier. Clean up APIs related to this change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110396 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.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/bugpoint.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/bugpoint.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/bugpoint.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/bugpoint.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/bugpoint.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/bugpoint.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/bugpoint.cpp
306110845ade031f56bf50245357d6e18a929659 31-Aug-2009 Chris Lattner <sabre@nondot.org> only print the override triple if it exists!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80534 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.cpp
482cccd37e71ad69845d954b548bd46c2ee15155 07-Aug-2009 Daniel Dunbar <daniel@zuster.org> MSVC warning fixes; patch by Stein Roger!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78405 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
b6dec1bdd6f6d33310879e6bbc3120f719c97483 28-Jul-2009 Dan Gohman <gohman@apple.com> Pass true to the Internalize parameter of createStandardLTOPasses,
to match llvm-ld's default behavior.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77273 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
1488670076908261af145778c23cb9aca30904e5 20-Jul-2009 Daniel Dunbar <daniel@zuster.org> Add -std-{compile,link}-opts to bugpoint.
- Sheesh.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76402 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.cpp
0d7c695c74ae6d5f68cc07378c17491915e607d3 16-Jul-2009 Owen Anderson <resistor@mac.com> To simplify the upcoming context-on-type change, switch all command line tools to using the default global context for now.

This will let us to hardwire stuff to the global context in the short term while the API is sorted out.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75846 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.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/bugpoint.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/bugpoint.cpp
0324205bbb0ea8fb70e2bdfd5ea201c3a5fc24ec 27-Apr-2009 Dan Gohman <gohman@apple.com> Improve bugpoint's error messages when it runs out of memory,
or when some other std::exception is thrown.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70175 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
cc14d25dd99e891c586bd56aa41796abbe4ac3d8 06-Mar-2009 Chris Lattner <sabre@nondot.org> Change various llvm utilities to use PrettyStackTraceProgram in
their main routines. This makes the tools print their argc/argv
commands if they crash.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66248 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
3a4baf1951dd1767c5b6380f5c5f3739929f8215 07-Feb-2009 Chris Lattner <sabre@nondot.org> fix bugpoint url, patch by Pieter de Bie!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64022 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
39564499c4b3d19af6e42f7718317443808e714f 18-Feb-2008 Dan Gohman <gohman@apple.com> Fix a missing space in the description of the find-bugs option.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47271 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.cpp
82a13c9c4811e40d0ff858c508cb54d672ee926e 08-Oct-2007 Dan Gohman <gohman@apple.com> Move the space in overview output for commands out of each of the
commands and into the common code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42752 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.cpp
c30598bc3ad792eb8cc75b188eb872a28c62ab71 06-Dec-2006 Chris Lattner <sabre@nondot.org> make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.

With this change, I can now move -stats to print when llvm_shutdown is called.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32250 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
a089d4430d8c5ddeec02ad3e0329c3110ef110ad 17-Nov-2006 Bill Wendling <isanbard@gmail.com> Need <iostream> for the time being.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31821 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
62c5105adc4f51c6dd07be3471ea2462c8e00c82 21-Aug-2006 Reid Spencer <rspencer@reidspencer.com> For PR885:
Consolidate the LinkAllAnalyses.h and LinkAllPasses.h headers into one
so there is no dupliation.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29787 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.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/bugpoint.cpp
e3f056154537194afd06c1940de72d4b6f2f4147 08-Jun-2006 Reid Spencer <rspencer@reidspencer.com> Make sure this tool links in all of libVMCore.a because it can --load
shared objects.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28720 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.cpp
9dce2b33807f47d794b0482313ae3fe0d275c833 14-Mar-2006 Reid Spencer <rspencer@reidspencer.com> Convert llvm.cs.uiuc.edu -> llvm.org


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26748 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.cpp
831843d5d148ddadb68f356ff19ba9f955446886 24-Oct-2005 Chris Lattner <sabre@nondot.org> Link to archive versions of libraries instead of the relinked ones


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23925 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
f9aaae06cd2109082cda2b09ef3f23e0e1cff47b 02-Aug-2005 Chris Lattner <sabre@nondot.org> When the user hits ctrl-c, bugpoint should attempt to stop reduction as
quickly as possible and output what it has so far. If they hit it twice,
bugpoint is killed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22579 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.cpp
1ef8bdaedbd98bee35a573b8bc87149f2182cb5e 30-Dec-2004 Reid Spencer <rspencer@reidspencer.com> For PR351:
* Place a try/catch block around the entire tool to Make sure std::string
exceptions are caught and printed before exiting the tool.
* Make sure we catch unhandled exceptions at the top level so that we don't
abort with a useless message but indicate than an unhandled exception was
generated.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19192 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
51163306ab0c51f1103139200cadb8e3fa6bfd18 27-Dec-2004 Reid Spencer <rspencer@reidspencer.com> For PR351:
* sys::PreventCoreFiles -> sys::Process::PreventCoreFiles


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19162 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
6e6e88a3f0fa8805de982eff665d8892a39571e7 20-Dec-2004 Misha Brukman <brukman+llvm@gmail.com> llvm/Config/unistd.h has gone away, far, far away


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19068 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.cpp
9de7b334ec6f80a15f093f11b339f5741c964b34 29-Aug-2004 Reid Spencer <rspencer@reidspencer.com> The functions in Signal.h are now in the llvm::sys namespace - adjust


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16091 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.cpp
4a1de8b25044a6bd8ca2d113d1a6eb907d222e4c 11-Jul-2004 Chris Lattner <sabre@nondot.org> Add -load option


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14740 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
bed85ff010b95923646ed4e187a5d432cedf67da 27-May-2004 Chris Lattner <sabre@nondot.org> Header file moved


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13813 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
3733f3be73e1034bc2fb6201a3d5657011fe725b 19-Feb-2004 Chris Lattner <sabre@nondot.org> Make sure to print a stack trace whenever an error signal is delivered
to the tool.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11634 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.cpp
230fef8b11a9faa7eda31c34a22a3085e2aa8e04 18-Feb-2004 Chris Lattner <sabre@nondot.org> Catch exception and print message as appropriate


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11594 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
74d4527e4038bf0e9a0e11edf09adf80c38eed85 18-Feb-2004 Chris Lattner <sabre@nondot.org> Bugpoint will be throwing exceptions soon, perpare for the worst.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11584 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.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/bugpoint.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/bugpoint.cpp
670406d269283c8a7045a5b55c78049222cd3a07 18-Oct-2003 Chris Lattner <sabre@nondot.org> Add usage blurb


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9246 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.cpp
67b36e4a2fba4931747cad61979aa92d43002ccc 12-Sep-2003 Misha Brukman <brukman+llvm@gmail.com> Bugpoint has the ability of generating a plethora of core files, so to
avoid filling up the disk, set the max core file size to 0.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8503 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.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/bugpoint.cpp
c1869e85de60c09359250f67474dd03eddc64a3e 30-Jul-2003 Chris Lattner <sabre@nondot.org> Add variable to capture arguments that should be passed to the user program
This is unused so far.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7422 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/tools/bugpoint/bugpoint.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/bugpoint.cpp
fb74224662ece1c1e4eb411c0f8fcf48ae3478d7 03-May-2003 Chris Lattner <sabre@nondot.org> Bugpoint is always verbose, eliminate option


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