summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
* Reapply r110396, with fixes to appease the Linux buildbot gods.Owen Anderson2010-08-068-26/+31
| | | | llvm-svn: 110460
* Revert r110396 to fix buildbots.Owen Anderson2010-08-068-31/+26
| | | | llvm-svn: 110410
* Don't use PassInfo* as a type identifier for passes. Instead, use the ↵Owen Anderson2010-08-058-26/+31
| | | | | | | | 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
* build: Don't pass -avoid-version or -no-undefined on Darwin, they don't doDaniel Dunbar2010-07-313-5/+2
| | | | | | anything. llvm-svn: 109957
* llc: Add -mc-relax-all.Michael J. Spencer2010-07-311-0/+11
| | | | llvm-svn: 109954
* 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
* Transcribe IRC to svn. Also don't print basic block names twice if they match.John McCall2010-07-291-9/+19
| | | | llvm-svn: 109787
* Make the header self-contained and follow #include guidelines.John McCall2010-07-293-43/+52
| | | | llvm-svn: 109774
* Switch to using the LLVM CommandLine library so that our helpJohn McCall2010-07-291-39/+31
| | | | | | | message is properly contaminated with nonsense about timing passes that doesn't apply at all to this utility. :) llvm-svn: 109769
* Plug the remaining MC leaks by giving MCObjectStreamer/MCAsmStreamer ↵Benjamin Kramer2010-07-291-7/+6
| | | | | | ownership of the TargetAsmBackend and the MCCodeEmitter. llvm-svn: 109767
* 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
* Centralize the logic to permanently unify two instructions and make sureJohn McCall2010-07-291-20/+30
| | | | | | | it establishes a context and does a complaining diff. Also make sure we unify the prelude and postlude of a diff after a block-diff call. llvm-svn: 109744
* Diagnose non-structural differences in the case where blocks wereJohn McCall2010-07-291-5/+16
| | | | | | structurally identical. llvm-svn: 109743
* When unifying instructions during a block diff, actually complain aboutJohn McCall2010-07-291-1/+1
| | | | | | | | any differences we see. This should only happen if there are "non-structural" differences between the instructions, i.e. differences which wouldn't cause diff to return true. llvm-svn: 109742
* Somehow I was getting reasonable results for the test cases I was interestedJohn McCall2010-07-291-14/+38
| | | | | | | | | | | in despite not ever incrementing any path costs, so that the only nonzero costs arose from the all-left path in the first column. Anyway. Perform the diff starting from the beginning of the block to avoid capturing (say) loads of allocas. Vastly improves diff results on code that hasn't been mem2reg'ed. llvm-svn: 109741
* Cache the result of errs() and implement formatted logging.John McCall2010-07-292-37/+58
| | | | llvm-svn: 109740
* Add the llvm-diff tool, which performs a relatively naive structuralJohn McCall2010-07-295-0/+1095
| | | | | | | | | | | | diff of a function. There's a lot of cruft in the current version, and it's pretty far from perfect, but it's usable. Currently only capable of comparing functions. Currently ignores metadata. Currently ignores most attributes of functions and instructions. Patches welcome. llvm-svn: 109739
* Use the right gcc tool args for IsARMArchitecture.Jakob Stoklund Olesen2010-07-291-3/+3
| | | | llvm-svn: 109714
* simplify by using CallSite constructors; virtually eliminates CallSite::get ↵Gabor Greif2010-07-281-2/+2
| | | | | | from the tree llvm-svn: 109687
* 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
* Get rid of exceptions in llvmc.Mikhail Glushenkov2010-07-231-1/+0
| | | | | | llvmc can be now compiled with llvm-gcc on Windows. llvm-svn: 109215
* there is now no reason to link in TARGETS_TO_BUILD since we listChris Lattner2010-07-201-1/+1
| | | | | | | | | arm explicitly. X86 and ARM are the only two targets that support disassembly, so our explicit list is enough. These other targets weren't getting pulled in anyway though, since there were no references to their symbols. llvm-svn: 108934
* fix edis to only try to link in the x86 parts if the x86 backend isChris Lattner2010-07-201-1/+11
| | | | | | enabled. Add direct ARM support. llvm-svn: 108933
* Fix edis makefileDouglas Gregor2010-07-201-0/+1
| | | | llvm-svn: 108931
* fix DISABLE_EDISChris Lattner2010-07-201-2/+2
| | | | llvm-svn: 108925
* this logic is handled by tools/makefile.Chris Lattner2010-07-201-9/+2
| | | | llvm-svn: 108919
* edis needs to link in mcdisassembler.Chris Lattner2010-07-201-1/+1
| | | | llvm-svn: 108876
* update cmake.Chris Lattner2010-07-201-13/+0
| | | | llvm-svn: 108875
* edinfo doesn't need to be built here.Chris Lattner2010-07-202-9/+0
| | | | llvm-svn: 108873
* start straightening out libedis's dependencies and make it fitChris Lattner2010-07-2013-1930/+146
| | | | | | | | | | | | | | | | better in the llvm world. Among other things, this changes: 1. The guts of libedis are now moved into lib/MC/MCDisassembler 2. llvm-mc now depends on lib/MC/MCDisassembler, not tools/edis, so edis and mc don't have to be built in series. 3. lib/MC/MCDisassembler no longer depends on the C api, the C API depends on it. 4. Various code cleanup changes. There is still a lot to be done to make edis fit with the llvm design, but this is an incremental step in the right direction. llvm-svn: 108869
* 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
* llvmc: Add a new option type (switch_list).Mikhail Glushenkov2010-07-191-1/+8
| | | | llvm-svn: 108673
* Target: Give the TargetAsmParser access to the TargetMachine.Daniel Dunbar2010-07-192-2/+3
| | | | | | - Unfortunate, but necessary for now to handle subtarget instruction matching. Eventually we should factor out the lower level target machine information so we don't need to do this. llvm-svn: 108664
* edis: Save the TargetMachine in the EDDisassembler object.Daniel Dunbar2010-07-192-5/+7
| | | | llvm-svn: 108663
* MC: Move several clients to using AsmParser constructor function.Daniel Dunbar2010-07-182-10/+12
| | | | llvm-svn: 108645
* llvm-mc: Fix llvm-mc -as-lex.Daniel Dunbar2010-07-181-2/+2
| | | | llvm-svn: 108644
OpenPOWER on IntegriCloud