summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ToolRunner.h
Commit message (Collapse)AuthorAgeFilesLines
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [bugpoint] Find 'opt', etc., in bugpoint directoryBrian Gesiak2018-12-101-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: When bugpoint attempts to find the other executables it needs to run, such as `opt` or `clang`, it tries searching the user's PATH. However, in many cases, the 'bugpoint' executable is part of an LLVM build, and the 'opt' executable it's looking for is in that same directory. Many LLVM tools handle this case by using the `Paths` parameter of `llvm::sys::findProgramByName`, passing the parent path of the currently running executable. Do this same thing for bugpoint. However, to preserve the current behavior exactly, first search the user's PATH, and then search for 'opt' in the directory containing 'bugpoint'. Test Plan: `check-llvm`. Many of the existing bugpoint tests no longer need to use the `--opt-command` option as a result of these changes. Reviewers: MatzeB, silvas, davide Reviewed By: MatzeB, davide Subscribers: davide, llvm-commits Differential Revision: https://reviews.llvm.org/D54884 llvm-svn: 348734
* bugpoint: Return Errors instead of passing around stringsJustin Bogner2016-09-061-34/+29
| | | | | | | | | | | | | This replaces the threading of `std::string &Error` through all of these APIs with checked Error returns instead. There are very few places here that actually emit any errors right now, but threading the APIs through will allow us to replace a bunch of exit(1)'s that are scattered through this code with proper error handling. This is more or less NFC, but does move around where a couple of error messages are printed out. llvm-svn: 280720
* bugpoint: clang-format all of bugpoint. NFCJustin Bogner2016-09-021-59/+47
| | | | | | | I'm going to clean up the APIs here a bit and touch many many lines anyway. llvm-svn: 280450
* [Bugpoint] Use 'CC' instead of 'GCC' for variable naming.Davide Italiano2015-10-141-25/+25
| | | | | | | | | | We now use clang by default and fallback to gcc when requested. With this commit, names reflect reality. No functional change intended. Discussed with: Rafael Espindola. llvm-svn: 250321
* Use 'override/final' instead of 'virtual' for overridden methodsAlexander Kornienko2015-04-111-1/+1
| | | | | | | | | | | | | | The patch is generated using clang-tidy misc-use-override check. This command was used: tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \ -checks='-*,misc-use-override' -header-filter='llvm|clang' \ -j=32 -fix -format http://reviews.llvm.org/D8925 llvm-svn: 234679
* Canonicalize header guards into a common format.Benjamin Kramer2014-08-131-2/+2
| | | | | | | | | | Add header guards to files that were missing guards. Remove #endif comments as they don't seem common in LLVM (we can easily add them back if we decide they're useful) Changes made by clang-tidy with minor tweaks. llvm-svn: 215558
* [C++] Use 'nullptr'.Craig Topper2014-04-281-7/+9
| | | | llvm-svn: 207394
* [C++11] Add 'override' keyword to virtual methods that override their base ↵Craig Topper2014-03-081-17/+17
| | | | | | class. llvm-svn: 203345
* Don't use PathV1.h in ToolRunner.h.Rafael Espindola2013-06-171-3/+2
| | | | llvm-svn: 184107
* Remove CBE related code.Rafael Espindola2013-06-171-50/+0
| | | | llvm-svn: 184106
* Further reduce usage of sys::Path in bugpoint.Rafael Espindola2013-06-131-3/+3
| | | | llvm-svn: 183912
* Include PathV1.h in files that use it.Rafael Espindola2013-06-111-0/+1
| | | | | | This is preparation for replacing Path.h with PathV2.h. llvm-svn: 183782
* Sort the #include lines for tools/...Chandler Carruth2012-12-041-1/+1
| | | | | | | | 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. llvm-svn: 169252
* Unweaken vtables as per ↵David Blaikie2011-12-201-0/+1
| | | | | | http://llvm.org/docs/CodingStandards.html#ll_virtual_anch llvm-svn: 146960
* Added bugpoint options: -compile-custom and -compile-command=...Andrew Trick2011-02-081-2/+7
| | | | | | | | | 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
* whitespaceAndrew Trick2011-02-081-1/+1
| | | | llvm-svn: 125095
* Merge System into Support.Michael J. Spencer2010-11-291-1/+1
| | | | llvm-svn: 120298
* Convert some tab stops into spaces.Duncan Sands2010-07-121-1/+1
| | | | llvm-svn: 108130
* Apply timeouts and memory limits in more places. In particular, whenDuncan Sands2010-05-241-6/+15
| | | | | | | | 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
* Add command line option --gcc to bugpoint.Kalle Raiskila2010-05-101-3/+3
| | | | | | Remove sending duplicate of the --gcc-tool-args parameters to gcc. llvm-svn: 103397
* Remove use of exceptions from bugpoint. No deliberate functionality change!Nick Lewycky2010-04-121-34/+30
| | | | llvm-svn: 101013
* add support for bugpointing the integrated assembler. Something like thisChris Lattner2010-03-161-4/+8
| | | | | | | | | 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
* eliminate the ostream version of CheckBitcodeOutputToConsole,Chris Lattner2009-08-231-0/+1
| | | | | | | change the raw_ostream one to take the raw_ostream byref instead of byptr. Prune #includes, eliminate a use of Streams.h llvm-svn: 79863
* Change bugpoint to use Triple to make runtime decisions.Daniel Dunbar2009-08-181-0/+2
| | | | | | | | | - This is cleaner, and makes bugpoint match the host instead of the build architecture. - Patch by Sandeep Patel! llvm-svn: 79309
* Fix FindExecutable to use sys::Path::GetMainExecutable instead ofDan Gohman2009-08-051-9/+6
| | | | | | | | | | | | | 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
* Add save-temps option to bugpoint to keep temporary stuff.Anton Korobeynikov2009-08-051-0/+3
| | | | | | Patch by Sandeep Patel llvm-svn: 78183
* Add a "-gcc-tool-args" option. This option acts like the "-tool-args" option,Bill Wendling2009-03-021-16/+28
| | | | | | | but passes the arguments to the "gcc" invocation instead of to the "llc" invocation. llvm-svn: 65896
* Allow use of ssh to perform remote execution.Evan Cheng2008-09-091-3/+3
| | | | llvm-svn: 55979
* Add possibility of using arbitrary to to execute stuff from bugpoint.Anton Korobeynikov2008-04-281-0/+4
| | | | | | Patch by Pekka Jääskeläinen! llvm-svn: 50373
* remove attributions from tools.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45421
* Pretty straightforward replacement of "bytecode" by "bitcode"Gabor Greif2007-07-041-16/+16
| | | | | | performed on tools/ first, in order not to cause lethal damage llvm-svn: 37877
* Added -rsh-host and -rsh-user to support remote execution.Evan Cheng2007-05-031-1/+3
| | | | llvm-svn: 36685
* Add possibility to set memory limit for binaries run via libSystem. ThisAnton Korobeynikov2007-02-161-4/+8
| | | | | | is especially needed for bugpoint. This partly implements PR688 llvm-svn: 34349
* Add a new -cbe-bug mode, which works just like -run-llc, except that it usesChris Lattner2006-09-151-10/+18
| | | | | | LLC as the reference compiler to reduce testcases for bugs in GCC. llvm-svn: 30400
* Pass -Xlinker flags to gcc when it builds the shared object.Chris Lattner2006-06-271-2/+3
| | | | llvm-svn: 28939
* Move ToolRunner.(cpp|h) into the bugpoint directoryChris Lattner2006-06-061-0/+199
llvm-svn: 28699
OpenPOWER on IntegriCloud