summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ListReducer.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove uses of deprecated std::random_shuffle in the LLVM code base. ↵Marshall Clow2017-02-161-2/+3
| | | | | | Reviewed as https://reviews.llvm.org/D29780. llvm-svn: 295325
* Fix spelling mistakes in Tools/Tests comments. NFC.Simon Pilgrim2016-11-201-2/+2
| | | | | | Identified by Pedro Giffuni in PR27636. llvm-svn: 287489
* bugpoint: Return Errors instead of passing around stringsJustin Bogner2016-09-061-22/+27
| | | | | | | | | | | | | 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
* Revert "bugpoint: Stop threading errors through APIs that never fail"Justin Bogner2016-09-061-14/+13
| | | | | | | | | | | | | This isn't the right thing to do - it turns out a number of the APIs that "never fail" just exit(1) if something bad happens. We can and should thread Error through this instead. That diff will make more sense with this reverted. Sorry for the noise. This reverts r280690 llvm-svn: 280691
* bugpoint: Stop threading errors through APIs that never failJustin Bogner2016-09-061-13/+14
| | | | | | | | | | | | | This simplifies ListReducer and most of its subclasses by removing the std::string &Error that was threaded through all of them but almost never used. If we end up needing error handling in more places here we can reinstate it using llvm::Error instead of these unwieldy strings. The 2 cases (out of 12) that actually can hit the error cases are a little bit awkward now, but those will clean up as I refactor this API further. llvm-svn: 280690
* bugpoint: clang-format and modernize comments in ListReducer. NFCJustin Bogner2016-09-011-36/+32
| | | | llvm-svn: 280414
* bugpoint: make the number of trim iterations a compile-time constantTobias Grosser2015-07-261-3/+9
| | | | | | | | | | | | Around 10 year ago Chris limited this code to a single iteration by just dropping a break into the loop body. We now make the number of trim iterations a compile time constant to be able to play with it and see if this can improve the bugpoint results. We currently use with '3' still a small and conservative value, but this can be adjusted in the future, if needed. I tried to look for a trivial test case, but did not succeed yet. llvm-svn: 243247
* 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
* Sort the #include lines for tools/...Chandler Carruth2012-12-041-3/+3
| | | | | | | | 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
* Convert some tab stops into spaces.Duncan Sands2010-07-121-2/+2
| | | | llvm-svn: 108130
* Remove use of exceptions from bugpoint. No deliberate functionality change!Nick Lewycky2010-04-121-9/+21
| | | | llvm-svn: 101013
* Use errs() instead of std::cerr.Dan Gohman2009-07-151-7/+7
| | | | llvm-svn: 75791
* Detabify.Bill Wendling2008-02-261-11/+10
| | | | llvm-svn: 47596
* remove attributions from tools.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45421
* Make the bugpoint reduction heuristics more effective. Patch submitted byChris Lattner2006-10-101-2/+58
| | | | | | Domagoj Babic, thanks! llvm-svn: 30863
* Remove a dead var noticed by YorionChris Lattner2006-10-091-1/+0
| | | | llvm-svn: 30841
* Patches to make the LLVM sources more -pedantic clean. Patch providedChris Lattner2006-05-241-1/+1
| | | | | | by Anton Korobeynikov! This is a step towards closing PR786. llvm-svn: 28447
* Fix line length of a comment.Reid Spencer2006-01-081-2/+2
| | | | llvm-svn: 25149
* When the user hits ctrl-c, bugpoint should attempt to stop reduction asChris Lattner2005-08-021-0/+13
| | | | | | | quickly as possible and output what it has so far. If they hit it twice, bugpoint is killed. llvm-svn: 22579
* Remove trailing whitespaceMisha Brukman2005-04-221-4/+4
| | | | llvm-svn: 21428
* Remove debugging code, unneuter this functionalityChris Lattner2004-11-181-1/+4
| | | | llvm-svn: 17963
* Make this code not depend on LinkModules leaving the second argument unmolested.Chris Lattner2004-11-161-1/+1
| | | | llvm-svn: 17874
* A class that is meant to be a base class should have a virtual destructorChris Lattner2004-05-111-0/+2
| | | | llvm-svn: 13470
* be 3.4 happyChris Lattner2003-11-291-0/+1
| | | | llvm-svn: 10265
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* fix file headersChris Lattner2003-10-201-1/+0
| | | | llvm-svn: 9293
* Added copyright header to all C++ source files.John Criswell2003-10-201-0/+8
| | | | llvm-svn: 9291
* Spell `necessary' correctly.Misha Brukman2003-08-181-1/+1
| | | | llvm-svn: 7944
* CodeGeneratorBug.cpp:Misha Brukman2003-07-301-1/+20
| | | | | | | | | | | | | | | | * Temporarily externing InputArgv to print it out for the benefit of LLI command needed to reproduce the result. * Print out the list of functions currently being tested * ListReducer now returns a bool if there was a failure, so test for it ListReducer.h: * Handle the case where there is no problem by returning true if failure is found. Also correctly handles the case when there is only 1 pass/function. Miscompilation.cpp: * ListReducer now returns a bool if there was a failure, so test for it llvm-svn: 7434
* Rename Kept -> SuffixChris Lattner2003-04-251-4/+4
| | | | | | FIX problem where we were incorrectly putting the prefix of the list into the "suffix" list. llvm-svn: 5926
* Allow reducer interfaces to mutate the lists passed inChris Lattner2003-04-241-2/+2
| | | | llvm-svn: 5909
* Move the ListReducer Class into it's own header file instead of living in ↵Chris Lattner2003-04-241-0/+86
Miscompilation.cpp llvm-svn: 5907
OpenPOWER on IntegriCloud