summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ToolRunner.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Bugpoint support for miscompilations that result in a crash.Andrew Trick2011-05-111-2/+16
| | | | | | | | | 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. llvm-svn: 131186
* ADT/Triple: Move a variety of clients to using isOSDarwin() and isOSWindows()Daniel Dunbar2011-04-191-3/+2
| | | | | | predicates. llvm-svn: 129816
* Switch FileRemover from PathV1 to V2.Michael J. Spencer2011-03-311-3/+3
| | | | llvm-svn: 128630
* Added bugpoint options: -compile-custom and -compile-command=...Andrew Trick2011-02-081-24/+108
| | | | | | | | | 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 llvm-svn: 125096
* Merge System into Support.Michael J. Spencer2010-11-291-1/+1
| | | | llvm-svn: 120298
* Fix some places where error messages were being swallowed.Dan Gohman2010-11-091-6/+7
| | | | llvm-svn: 118464
* Rename FindExecutable to PrependMainExecutablePath.Mikhail Glushenkov2010-11-031-5/+5
| | | | | | Makes it more clear that it is just a path manipulation function. llvm-svn: 118174
* 80-col violations, trailing whitespace.Mikhail Glushenkov2010-11-031-22/+23
| | | | llvm-svn: 118173
* Fix these error messages to not mention PATH in cases whereDan Gohman2010-10-291-6/+6
| | | | | | | PATH isn't actually searched, and to not mention the executable directory when it isn't actually searched. llvm-svn: 117657
* Use the right gcc tool args for IsARMArchitecture.Jakob Stoklund Olesen2010-07-291-3/+3
| | | | llvm-svn: 109714
* Revert unintended white space change.Rafael Espindola2010-07-241-1/+1
| | | | llvm-svn: 109364
* Fix a trivial use after free.Rafael Espindola2010-07-241-2/+6
| | | | llvm-svn: 109363
* Apply timeouts and memory limits in more places. In particular, whenDuncan Sands2010-05-241-14/+24
| | | | | | | | 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. llvm-svn: 104485
* Fix complete badness in bugpoint's IsARMArchitecture() function.Jakob Stoklund Olesen2010-05-131-3/+2
| | | | | | | | | | The revision history for this function is interesting, with multiple layers of wrongness being introduced one at a time. This fixes a weird issue where bugpoint -run-llc would suddenly exit 13 half way through isolating a miscompilation. llvm-svn: 103721
* Add command line option --gcc to bugpoint.Kalle Raiskila2010-05-101-6/+8
| | | | | | Remove sending duplicate of the --gcc-tool-args parameters to gcc. llvm-svn: 103397
* The llc -f flag was removed.Nick Lewycky2010-04-291-1/+0
| | | | llvm-svn: 102670
* Remove use of exceptions from bugpoint. No deliberate functionality change!Nick Lewycky2010-04-121-43/+50
| | | | llvm-svn: 101013
* add support for bugpointing the integrated assembler. Something like thisChris Lattner2010-03-161-33/+49
| | | | | | | | | 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. llvm-svn: 98618
* Make bugpoint pass -load arguments to LLI. This lets one use bugpoint withDuncan Sands2009-11-171-4/+5
| | | | | | programs that depend on native shared libraries. Patch by Timo Lindfors. llvm-svn: 89087
* Add compare_lower and equals_lower methods to StringRef. Switch all users ofBenjamin Kramer2009-11-121-3/+3
| | | | | | StringsEqualNoCase (from StringExtras.h) to it. llvm-svn: 87020
* Make LLVM command-line tools overwrite their output files without -f.Dan Gohman2009-08-251-1/+0
| | | | | | | | | | | | | | | | 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 the #includes in raw_ostream.h by moving a Chris Lattner2009-08-241-0/+1
| | | | | | | member out of line. ftostr is not particularly speedy, so that method is presumably not perf sensitive. llvm-svn: 79885
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-231-10/+11
| | | | | | | | | | | | | | | | | | 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
* Proper MSVC build fix (and remove my hack again). Patch by Yonggang Luo.Benjamin Kramer2009-08-191-7/+2
| | | | llvm-svn: 79418
* Add a hack to unbreak MSVC builds. str(n)casecmp are POSIX functions and ↵Benjamin Kramer2009-08-191-0/+5
| | | | | | aren't available on windows (mingw defines them though). llvm-svn: 79417
* Change bugpoint to use Triple to make runtime decisions.Daniel Dunbar2009-08-181-28/+25
| | | | | | | | | - This is cleaner, and makes bugpoint match the host instead of the build architecture. - Patch by Sandeep Patel! llvm-svn: 79309
* Use (void *)(intptr_t) to cast function addresses to void*Dan Gohman2009-08-051-8/+4
| | | | | | | for use with sys::Path::GetMainExecutable, to avoid warnings with -pedantic. llvm-svn: 78245
* Fix FindExecutable to use sys::Path::GetMainExecutable instead ofDan Gohman2009-08-051-15/+22
| | | | | | | | | | | | | 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
* Pass user only if it's non-empty. Patch by Sandeep.Anton Korobeynikov2009-08-051-2/+4
| | | | llvm-svn: 78184
* Add save-temps option to bugpoint to keep temporary stuff.Anton Korobeynikov2009-08-051-3/+8
| | | | | | Patch by Sandeep Patel llvm-svn: 78183
* For remote execution, must cd to the executable directory since the exe ↵David Goodwin2009-07-201-3/+4
| | | | | | expects to find a dylib in the CWD ('.'). llvm-svn: 76432
* Require a remote command to exit with the exit status of the test program or ↵Viktor Kutuzov2009-07-181-11/+59
| | | | | | with 255 if an error occurred. llvm-svn: 76323
* Add a Force option to raw_fd_ostream to specify whether openingDan Gohman2009-07-151-9/+8
| | | | | | | | an existing file is considered an error. Convert several tools to use raw_fd_ostream instead of std::ostream, and to use this new option instead of doing a manual check. llvm-svn: 75801
* Use errs() instead of std::cerr.Dan Gohman2009-07-151-35/+35
| | | | llvm-svn: 75791
* control reaches end of non-void function.Evan Cheng2009-07-141-0/+2
| | | | llvm-svn: 75714
* Fix for bugpoint -remote-clientViktor Kutuzov2009-07-141-7/+15
| | | | llvm-svn: 75665
* Fix unused function warning.Daniel Dunbar2009-07-111-0/+2
| | | | llvm-svn: 75386
* Support remote execute for ARM.David Goodwin2009-07-101-1/+30
| | | | llvm-svn: 75292
* bugpoint for jit should just ignore GCC arguments.Evan Cheng2009-05-051-5/+0
| | | | llvm-svn: 70988
* Also pass -gcc-tool-args when building a shared object.Evan Cheng2009-03-121-2/+5
| | | | llvm-svn: 66746
* Add a "-gcc-tool-args" option. This option acts like the "-tool-args" option,Bill Wendling2009-03-021-9/+18
| | | | | | | but passes the arguments to the "gcc" invocation instead of to the "llc" invocation. llvm-svn: 65896
* Rename bugpoint's error message file so that if it somehowDan Gohman2009-02-121-1/+1
| | | | | | gets left behind, it's less cryptic. llvm-svn: 64399
* Allow use of ssh to perform remote execution.Evan Cheng2008-09-091-14/+25
| | | | llvm-svn: 55979
* Add possibility of using arbitrary to to execute stuff from bugpoint.Anton Korobeynikov2008-04-281-0/+104
| | | | | | Patch by Pekka Jääskeläinen! llvm-svn: 50373
* -fPIC is required on x86-64 when building shared objects.Torok Edwin2008-04-061-1/+1
| | | | llvm-svn: 49274
* remove attributions from tools.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45421
* Pretty straightforward replacement of "bytecode" by "bitcode"Gabor Greif2007-07-041-20/+20
| | | | | | performed on tools/ first, in order not to cause lethal damage llvm-svn: 37877
* Fix bugpoint to run -llc-safe with -Xlinker.Lauro Ramos Venancio2007-06-061-0/+2
| | | | llvm-svn: 37483
* Added -rsh-host and -rsh-user to support remote execution.Evan Cheng2007-05-031-5/+41
| | | | llvm-svn: 36685
* Add possibility to set memory limit for binaries run via libSystem. ThisAnton Korobeynikov2007-02-161-14/+25
| | | | | | is especially needed for bugpoint. This partly implements PR688 llvm-svn: 34349
OpenPOWER on IntegriCloud