summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Delete this obsolete comment.Dan Gohman2010-10-291-4/+0
| | | | llvm-svn: 117655
* Get rid of static constructors for pass registration. Instead, every pass ↵Owen Anderson2010-10-191-0/+13
| | | | | | | | | | | | | | | | | exposes an initializeMyPassFunction(), which must be called in the pass's constructor. This function uses static dependency declarations to recursively initialize the pass's dependencies. Clients that only create passes through the createFooPass() APIs will require no changes. Clients that want to use the CommandLine options for passes will need to manually call the appropriate initialization functions in PassInitialization.h before parsing commandline arguments. I have tested this with all standard configurations of clang and llvm-gcc on Darwin. It is possible that there are problems with the static dependencies that will only be visible with non-standard options. If you encounter any crash in pass registration/creation, please send the testcase to me directly. llvm-svn: 116820
* Be more consistent in using ValueToValueMapTy.Rafael Espindola2010-10-134-14/+15
| | | | llvm-svn: 116387
* Move tool_output_file into its own file.Dan Gohman2010-10-072-2/+2
| | | | llvm-svn: 115973
* Revert "CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally."Michael J. Spencer2010-09-131-10/+3
| | | | | | | | | | This reverts commit r113632 Conflicts: cmake/modules/AddLLVM.cmake llvm-svn: 113819
* CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally.Michael J. Spencer2010-09-101-3/+10
| | | | llvm-svn: 113632
* Make tool_output_file's raw_ostream instance a member variable insteadDan Gohman2010-09-012-13/+13
| | | | | | | | | | 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
* Straighten out any triple strings passed on the command line beforeDuncan Sands2010-08-281-2/+2
| | | | | | they hit the rest of the system. llvm-svn: 112344
* 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-202-9/+29
| | | | | | checking to places which previously lacked it. llvm-svn: 111651
* Use RunPassesOn as in the rest of bugpoint.Rafael Espindola2010-08-103-26/+34
| | | | llvm-svn: 110682
* 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-088-46/+44
| | | | llvm-svn: 110534
* Try to fix cmake build.Rafael Espindola2010-08-081-1/+0
| | | | llvm-svn: 110528
* Run opt instead of bugpoint itself.Rafael Espindola2010-08-074-64/+26
| | | | llvm-svn: 110524
* Move the bugpoint test passes to a plugin in preparation for having bugpointRafael Espindola2010-08-071-75/+0
| | | | | | use opt. llvm-svn: 110520
* Reapply r110396, with fixes to appease the Linux buildbot gods.Owen Anderson2010-08-063-4/+6
| | | | llvm-svn: 110460
* Revert r110396 to fix buildbots.Owen Anderson2010-08-063-6/+4
| | | | llvm-svn: 110410
* Don't use PassInfo* as a type identifier for passes. Instead, use the ↵Owen Anderson2010-08-053-4/+6
| | | | | | | | address of the static ID member as the sole unique type identifier. Clean up APIs related to this change. llvm-svn: 110396
* Revert bugpoint change due to buildbot breakage.Bob Wilson2010-08-054-26/+64
| | | | | | | | | | --- 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-054-64/+26
| | | | | | Fixes PR753. llvm-svn: 110333
* Add const to compileProgram and to the various test functions in CrashDebugger.Rafael Espindola2010-08-053-14/+16
| | | | llvm-svn: 110306
* Add a Module argument to the remaining runPasses methods and mark getContextRafael Espindola2010-08-053-11/+8
| | | | | | const. llvm-svn: 110300
* Make EmitProgressBitcode const and add a Module argument to runPasses. UseRafael Espindola2010-08-055-18/+19
| | | | | | that argument to simplify runPassesOn. llvm-svn: 110291
* Add const to some methods and change TestMergedProgram to return the mergedRafael Espindola2010-07-313-23/+32
| | | | | | module and take a const BugDriver. llvm-svn: 109951
* The BlockExtractorPass() constructor was not reading the BlockFile and that wasRafael Espindola2010-07-311-2/+1
| | | | | | | | | | | | | | exactly what bugpoint expected it to do. There was also only one user of BlockExtractorPass(const std::vector<BasicBlock*> &B), so just remove it and make BlockExtractorPass read BlockFile. This fixes bugpoint's block extraction. Nick, please review. llvm-svn: 109936
* Add a Program argument to diffProgram to avoid a use of swapProgramIn.Rafael Espindola2010-07-305-22/+32
| | | | llvm-svn: 109859
* Do not pass a copy of the value map, pass a reference to it.Duncan Sands2010-07-301-1/+1
| | | | llvm-svn: 109852
* Make the test while reducing blocks functional. This avoids accessing freedRafael Espindola2010-07-291-4/+22
| | | | | | memory when one of the original BB is destroyed. llvm-svn: 109747
* Use the right gcc tool args for IsARMArchitecture.Jakob Stoklund Olesen2010-07-291-3/+3
| | | | llvm-svn: 109714
* Instead of abusing swapProgramIn, just add a Module argument toRafael Espindola2010-07-285-36/+28
| | | | | | EmitProgressBitcode. llvm-svn: 109602
* Clone and restore the module being reduced inRafael Espindola2010-07-261-6/+27
| | | | | | | | | | | ReduceMiscompilingFunctions::TestFuncs. This makes the test functional (i.e., no side effects). Before we would end up using dead functions if a pass decided to remove them (inline for example) and we would also keep broken functions and conclude that that a single function was enough to reproduce the bug. llvm-svn: 109387
* 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
* Speculatively revert r108813, in an attempt to get the self-host buildbots ↵Owen Anderson2010-07-208-37/+34
| | | | | | | | 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-208-34/+37
| | | | llvm-svn: 108813
* Revert r108794, "Separate PassInfo into two classes: a constructor-freeDaniel Dunbar2010-07-208-37/+34
| | | | | | | 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-208-34/+37
| | | | | | (StaticPassInfo) and a constructor-ful subclass (PassInfo). llvm-svn: 108794
* Convert some tab stops into spaces.Duncan Sands2010-07-123-4/+4
| | | | llvm-svn: 108130
* Use ValueMap instead of DenseMap.Devang Patel2010-06-244-41/+41
| | | | | | The ValueMapper used by various cloning utility maps MDNodes also. llvm-svn: 106706
* Save more temps with -save-temps.Rafael Espindola2010-06-211-3/+7
| | | | llvm-svn: 106409
* Run dead type elimination after dead argument elimination.Dan Gohman2010-06-071-1/+2
| | | | llvm-svn: 105552
* Use ->isVoidTy().Dan Gohman2010-06-073-5/+4
| | | | llvm-svn: 105550
* No need to special-case structs here; structs are first-class now.Dan Gohman2010-06-051-3/+1
| | | | llvm-svn: 105513
* No need to special-case structs here; structs are first-class now.Dan Gohman2010-06-041-3/+1
| | | | llvm-svn: 105442
* Eliminate some unnessary Path::exists() calls.Dan Gohman2010-05-271-2/+1
| | | | llvm-svn: 104888
* Apply timeouts and memory limits in more places. In particular, whenDuncan Sands2010-05-243-21/+40
| | | | | | | | 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
* Fix PR6951 by fixing Module leaks in bugpoint.Jeffrey Yasskin2010-05-111-7/+7
| | | | llvm-svn: 103523
OpenPOWER on IntegriCloud