summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/OptimizerDriver.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Have Program::Wait return -2 for crashed and timeouts instead of embeddingAndrew Trick2011-05-211-1/+1
| | | | | | info in the error message. Per Dan's request. llvm-svn: 131780
* fit in 80 cols.Chris Lattner2011-02-241-1/+2
| | | | llvm-svn: 126399
* Merge System into Support.Michael J. Spencer2010-11-291-2/+2
| | | | llvm-svn: 120298
* Rename FindExecutable to PrependMainExecutablePath.Mikhail Glushenkov2010-11-031-1/+2
| | | | | | Makes it more clear that it is just a path manipulation function. llvm-svn: 118174
* 80-col violations, trailing whitespace.Mikhail Glushenkov2010-11-031-4/+4
| | | | llvm-svn: 118173
* Check for (unlikely) errors from FindExecutable.Dan Gohman2010-10-291-1/+8
| | | | llvm-svn: 117658
* Delete this obsolete comment.Dan Gohman2010-10-291-4/+0
| | | | llvm-svn: 117655
* Move tool_output_file into its own file.Dan Gohman2010-10-071-1/+1
| | | | llvm-svn: 115973
* Make tool_output_file's raw_ostream instance a member variable insteadDan Gohman2010-09-011-8/+8
| | | | | | | | | | of a base class. This makes it possible to unregister the file from FilesToRemove when the file is done. Also, this eliminates the need for formatted_tool_output_file. llvm-svn: 112706
* Apply "Win32's Hybrid path separator in argv[0] should be accepted to bugpoint",Chris Lattner2010-08-241-10/+3
| | | | | | patch by NAKAMURA Takumi! llvm-svn: 111929
* Convert tools to use tool_output_file, and introduce errorDan Gohman2010-08-201-8/+20
| | | | | | checking to places which previously lacked it. llvm-svn: 111651
* Add a opt-args option that can be used to pass arguments to every optRafael Espindola2010-08-081-0/+6
| | | | | | | | invocation. Fixes PR7793: bugpoint -debug test.ll --opt-args -unroll-count=4 llvm-svn: 110555
* Most of bugpoint now only needs to know the pass names.Rafael Espindola2010-08-081-4/+4
| | | | llvm-svn: 110534
* Run opt instead of bugpoint itself.Rafael Espindola2010-08-071-35/+19
| | | | llvm-svn: 110524
* Revert bugpoint change due to buildbot breakage.Bob Wilson2010-08-051-19/+35
| | | | | | | | | | --- Reverse-merging r110333 into '.': U tools/bugpoint/BugDriver.h U tools/bugpoint/OptimizerDriver.cpp U tools/bugpoint/bugpoint.cpp U tools/bugpoint/BugDriver.cpp llvm-svn: 110341
* Run opt instead of bugpoint itself.Rafael Espindola2010-08-051-35/+19
| | | | | | Fixes PR753. llvm-svn: 110333
* Make EmitProgressBitcode const and add a Module argument to runPasses. UseRafael Espindola2010-08-051-10/+7
| | | | | | that argument to simplify runPassesOn. llvm-svn: 110291
* Instead of abusing swapProgramIn, just add a Module argument toRafael Espindola2010-07-281-5/+6
| | | | | | EmitProgressBitcode. llvm-svn: 109602
* Speculatively revert r108813, in an attempt to get the self-host buildbots ↵Owen Anderson2010-07-201-4/+4
| | | | | | | | 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. llvm-svn: 108818
* Reapply r108794, a fix for the failing test from last time.Owen Anderson2010-07-201-4/+4
| | | | llvm-svn: 108813
* Revert r108794, "Separate PassInfo into two classes: a constructor-freeDaniel Dunbar2010-07-201-4/+4
| | | | | | | superclass (StaticPassInfo) and a constructor-ful subclass (PassInfo).", it is breaking teh everything. llvm-svn: 108805
* Separate PassInfo into two classes: a constructor-free superclass ↵Owen Anderson2010-07-201-4/+4
| | | | | | (StaticPassInfo) and a constructor-ful subclass (PassInfo). llvm-svn: 108794
* Bugpoint's default memory limit (100MB) was too low for valgrind, soJeffrey Yasskin2010-03-191-2/+0
| | | | | | | this patch raises the default to 800MB when valgrind's active. 800 was chosen semi-arbitrarily. llvm-svn: 98905
* Add -output-prefix option to bugpoint (to change the default output name).Daniel Dunbar2009-09-071-3/+6
| | | | llvm-svn: 81154
* Make LLVM command-line tools overwrite their output files without -f.Dan Gohman2009-08-251-3/+3
| | | | | | | | | | | | | | | | This is conventional command-line tool behavior. -f now just means "enable binary output on terminals". Add a -f option to llvm-extract and llvm-link, for consistency. Remove F_Force from raw_fd_ostream and enable overwriting and truncating by default. Introduce an F_Excl flag to permit users to enable a failure when the file already exists. This flag is currently unused. Update Makefiles and documentation accordingly. llvm-svn: 79990
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-231-20/+18
| | | | | | | | | | | | | | | | | | 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. llvm-svn: 79869
* eliminate the std::ostream forms of the bitcode writing APIs.Chris Lattner2009-08-231-15/+17
| | | | llvm-svn: 79840
* Include valgrind in the steps to reproduce if valgrind was used to reproduceNick Lewycky2009-08-181-0/+1
| | | | | | the problem. llvm-svn: 79322
* Fix FindExecutable to use sys::Path::GetMainExecutable instead ofDan Gohman2009-08-051-1/+1
| | | | | | | | | | | | | 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. llvm-svn: 78240
* Convert more tools code from cerr and cout to errs() and outs().Dan Gohman2009-07-161-25/+24
| | | | llvm-svn: 76070
* Add a pointer to the owning LLVMContext to Module. This requires threading ↵Owen Anderson2009-07-011-1/+1
| | | | | | | | | | 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. llvm-svn: 74614
* Add -silence-passes option to bugpoint. This option suppresses output generatedMatthijs Kooijman2008-06-121-1/+8
| | | | | | when bugpoint is running passes in a child process. llvm-svn: 52234
* Detabify.Bill Wendling2008-02-261-1/+1
| | | | llvm-svn: 47596
* remove attributions from tools.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45421
* Allow the block extractor take to take a list of basic blocks to not extractNick Lewycky2007-11-141-4/+9
| | | | | | | | | from a file containing Function/BasicBlock pairings. This is not safe against anonymous or abnormally-named Funcs or BBs. Make bugpoint use this interface to pass the BBs list to the child bugpoint. llvm-svn: 44101
* Pretty straightforward replacement of "bytecode" by "bitcode"Gabor Greif2007-07-041-18/+18
| | | | | | performed on tools/ first, in order not to cause lethal damage llvm-svn: 37877
* Fix a buggy conversion from bytecode to bitcodeChris Lattner2007-05-061-1/+1
| | | | llvm-svn: 36883
* switch tools to bitcode from bytecodeChris Lattner2007-05-061-16/+4
| | | | llvm-svn: 36872
* add bitcode supportChris Lattner2007-05-061-1/+8
| | | | llvm-svn: 36849
* Add possibility to set memory limit for binaries run via libSystem. ThisAnton Korobeynikov2007-02-161-1/+2
| | | | | | is especially needed for bugpoint. This partly implements PR688 llvm-svn: 34349
* default to emiting an uncompressed .bc fileChris Lattner2007-01-211-1/+1
| | | | llvm-svn: 33420
* Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling2006-12-071-26/+25
| | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298
* Replacing std::iostreams with llvm iostreams. Some of these changes involveBill Wendling2006-11-291-21/+25
| | | | | | | adding a temporary wrapper around the ostream to make it friendly to functions expecting an LLVM stream. This should be fixed in the future. llvm-svn: 31990
* Fix --enable-valgrind. Add room for the new arguments, and don't keepNick Lewycky2006-09-141-3/+4
| | | | | | a pointer to a temporary. llvm-svn: 30312
* Add --enable-valgrind option to run optimizations through valgrind toNick Lewycky2006-09-141-3/+16
| | | | | | pick up on memory errors. llvm-svn: 30311
* analyze no longer exists, don't offer to run it :)Chris Lattner2006-08-271-12/+1
| | | | llvm-svn: 29919
* For PR797:Reid Spencer2006-08-231-3/+11
| | | | | | | Final removal of exceptions from lib/System and adjustment of users to accommodate. llvm-svn: 29846
* For PR797:Reid Spencer2006-08-211-5/+8
| | | | | | | | Adjust usage of the ExecuteAndWait function to use the last argument which is the ErrMsg string. This is necessitated because this function no longer throws exceptions on error. llvm-svn: 29791
* For PR797:Reid Spencer2006-08-211-0/+2
| | | | | | | | Make sys::Program::ExecuteAndWait not throw exceptions and update any affected code. It now return -9999 to signal that the program couldn't be executed. Only one case (in bugpoint) actually examines the result code. llvm-svn: 29785
* Don't pass target name into TargetData anymore, it is never used or needed.Chris Lattner2006-06-161-1/+1
| | | | llvm-svn: 28831
OpenPOWER on IntegriCloud