summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/OptimizerDriver.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Teach bugpoint to kill optimization passes that run over the timeout limit,Chris Lattner2006-06-131-1/+1
| | | | | | | which allows it to debug optimizer infinite loops. This patch is contributed by Nick Lewycky, thanks! llvm-svn: 28763
* Fix a bug found by inspection.Chris Lattner2006-05-141-1/+5
| | | | llvm-svn: 28297
* Pass plugins on to children when optimizing.Andrew Lenharth2006-01-261-1/+10
| | | | llvm-svn: 25650
* this doesn't work, remove itChris Lattner2006-01-231-2/+0
| | | | llvm-svn: 25518
* Get bugpoint building with VC++ again.Jeff Cohen2005-12-231-0/+1
| | | | llvm-svn: 24977
* For PR351:Reid Spencer2005-12-221-51/+59
| | | | | | | | | | | | 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. llvm-svn: 24961
* Final Changes For PR495:Reid Spencer2005-07-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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. llvm-svn: 22354
* For PR495:Reid Spencer2005-07-071-2/+2
| | | | | | | | | | | | | | | | | | | | | 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. llvm-svn: 22349
* Eliminate tabs and trailing spacesJeff Cohen2005-04-221-2/+2
| | | | llvm-svn: 21441
* Remove trailing whitespaceMisha Brukman2005-04-221-3/+3
| | | | llvm-svn: 21428
* Get bugpoint compiling with VC++ again, not that it works anyway.Jeff Cohen2005-02-161-1/+3
| | | | llvm-svn: 20211
* oopsJeff Cohen2005-01-221-1/+1
| | | | llvm-svn: 19752
* Use binary mode for reading/writing bytecode filesJeff Cohen2005-01-221-3/+21
| | | | llvm-svn: 19751
* For PR351:Reid Spencer2004-12-161-2/+2
| | | | | | | | | | | * 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 llvm-svn: 19001
* For PR351:Reid Spencer2004-12-151-1/+4
| | | | | | * Convert use of getUniqueFilename to sys::Path::makeUnique(); llvm-svn: 18949
* Enable compression by default.Reid Spencer2004-11-071-1/+1
| | | | llvm-svn: 17566
OpenPOWER on IntegriCloud