summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint
Commit message (Collapse)AuthorAgeFilesLines
...
* switch the .ll parser into SMDiagnostic.Chris Lattner2009-07-021-2/+3
| | | | llvm-svn: 74734
* Make the use of const with respect to LLVMContext sane. Hopefully this is ↵Owen Anderson2009-07-012-6/+6
| | | | | | | | the last time, for the moment, that I will need to make far-reaching changes. llvm-svn: 74655
* Hold the LLVMContext by reference rather than by pointer.Owen Anderson2009-07-013-7/+10
| | | | llvm-svn: 74640
* Add a pointer to the owning LLVMContext to Module. This requires threading ↵Owen Anderson2009-07-016-16/+22
| | | | | | | | | | LLVMContext through a lot of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools. Patches for Clang and LLVM-GCC to follow. llvm-svn: 74614
* Fix the crash debugger to actually bisect globals once it's determined that itNick Lewycky2009-05-251-1/+1
| | | | | | can't just eliminate all global initializers. llvm-svn: 72378
* Add a bisection step on the list of instructions before doing the linearNick Lewycky2009-05-251-0/+92
| | | | | | | simplification. It's not clear to me whether this can replace the first of the linear instruction simplification stages or not, so I left it in. llvm-svn: 72377
* Make bugpoint emit a bugpoint-reduced-blocks.bc, because bugpoint itselfTorok Edwin2009-05-241-0/+3
| | | | | | | can crash during instruction simplification (for example if it creates a broken module). llvm-svn: 72362
* Add -disable-global-remove option to bugpoint.Torok Edwin2009-05-241-1/+6
| | | | | | | | | Sometimes when bugpointing a crash the bugpoint-reduced-simplified.bc reproduces a totally different bug than the original one ("GV doesn't have initializer"). Although its useful to report that bug too, I need a way to reduce the original bug, hence I introduced -disable-global-remove. llvm-svn: 72361
* bugpoint for jit should just ignore GCC arguments.Evan Cheng2009-05-051-5/+0
| | | | llvm-svn: 70988
* Improve bugpoint's error messages when it runs out of memory,Dan Gohman2009-04-271-0/+8
| | | | | | or when some other std::exception is thrown. llvm-svn: 70175
* Use CloneModule's ValueMap in more places, instead of lookingDan Gohman2009-04-223-27/+45
| | | | | | up functions by name. llvm-svn: 69805
* CloneModule stores the BasicBlock mapping in ValueMap. There's no need toNick Lewycky2009-04-041-17/+6
| | | | | | recompute it. This fixes a O(n^2) in number of blocks when reducing a crash. llvm-svn: 68422
* Also pass -gcc-tool-args when building a shared object.Evan Cheng2009-03-121-2/+5
| | | | llvm-svn: 66746
* Change various llvm utilities to use PrettyStackTraceProgram inChris Lattner2009-03-061-2/+4
| | | | | | | their main routines. This makes the tools print their argc/argv commands if they crash. llvm-svn: 66248
* Use CloneModule's ValueMap to avoid needing to look upDan Gohman2009-03-061-5/+4
| | | | | | functions by name. This fixes PR718. llvm-svn: 66239
* Fix a bugpoint bug on anonymous functions. Instead of looking upDan Gohman2009-03-051-2/+4
| | | | | | | functions in the new module by name, use the ValueMap provided by CloneModule to do the lookups. llvm-svn: 66216
* Add a "-gcc-tool-args" option. This option acts like the "-tool-args" option,Bill Wendling2009-03-023-37/+70
| | | | | | | but passes the arguments to the "gcc" invocation instead of to the "llc" invocation. llvm-svn: 65896
* Eliminate several more unnecessary intptr_t casts.Dan Gohman2009-02-181-2/+2
| | | | llvm-svn: 64888
* 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
* fix bugpoint url, patch by Pieter de Bie!Chris Lattner2009-02-071-1/+1
| | | | llvm-svn: 64022
* Add the private linkage.Rafael Espindola2009-01-151-1/+1
| | | | llvm-svn: 62279
* Reimplement the old and horrible bison parser for .ll files with a niceChris Lattner2009-01-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and clean recursive descent parser. This change has a couple of ramifications: 1. The parser code is about 400 lines shorter (in what we maintain, not including what is autogenerated). 2. The code should be significantly faster than the old code because we don't have to work around bison's poor handling of datatypes with ctors/dtors. This also makes the code much more resistant to memory leaks. 3. We now get caret diagnostics from the .ll parser, woo. 4. The actual diagnostics emited from the parser are completely different so a bunch of testcases had to be updated. 5. I now disallow "%ty = type opaque %ty = type i32". There was no good reason to support this, it was just an accident of the old implementation. I have no reason to think that anyone is actually using this. 6. The syntax for sticking a global variable has changed to make it unambiguous. I don't think anyone is depending on this since only clang supports this and it is not solid yet, so I'm not worried about anything breaking. 7. This gets rid of the last use of bison, and along with it the .cvs files. I'll prune this from the makefiles as a subsequent commit. There are a few minor cleanups that can be done after this commit (suggestions welcome!) but this passes dejagnu testing and is ready for its time in the limelight. llvm-svn: 61558
* Generalize bugpoint's concept of a "safe" backend, and add optionsDan Gohman2008-12-084-59/+123
| | | | | | | | | | | | | | to allow the "safe" backend to be run with a different path, and/or with different command-line options. This enables the following use cases: - bugpoint llc against an llc command from a different build - bugpoint llc against the same llc with different command-line options - and more... Also, document the existing "custom" interpreter options. llvm-svn: 60681
* Remove -check-exit-code from bugpoint. This is subsumed by -append-exit-code.Nick Lewycky2008-10-261-19/+0
| | | | | | Note that -check-exit-code was on by default while -append-exit-code is not. llvm-svn: 58221
* Initial support for the CMake build system.Oscar Fuentes2008-09-221-0/+16
| | | | llvm-svn: 56419
* Allow use of ssh to perform remote execution.Evan Cheng2008-09-092-17/+28
| | | | llvm-svn: 55979
* Improve bugpoint output a bit by outputting the actual instructions instead ofMatthijs Kooijman2008-07-291-2/+1
| | | | | | | just it's name, which is often empty. Also remove a newline from the output that wasn't really needed. llvm-svn: 54158
* Reformat this message to fit in 80 cols.Dan Gohman2008-07-141-4/+4
| | | | llvm-svn: 53561
* Global variables beginning with \01 have special meaning on Darwin, so we ↵Owen Anderson2008-07-081-1/+4
| | | | | | | | | need to remove the name prefix when we change them from internal to external. This allows bugpointing of codegen miscompilations to work more reliably on Darwin. llvm-svn: 53236
* Let bugpoint display generated messages on stderr only if no interpreter wasMatthijs Kooijman2008-06-121-1/+4
| | | | | | | found, this ensures that messages like "Found gcc" end up on stdout where they belong. llvm-svn: 52235
* Add -silence-passes option to bugpoint. This option suppresses output generatedMatthijs Kooijman2008-06-121-1/+8
| | | | | | when bugpoint is running passes in a child process. llvm-svn: 52234
* Fix a bunch of 80col violations that arose from the Create API change. Tweak ↵Gabor Greif2008-05-151-7/+11
| | | | | | makefile targets to find these better. llvm-svn: 51143
* Add possibility of using arbitrary to to execute stuff from bugpoint.Anton Korobeynikov2008-04-283-2/+122
| | | | | | Patch by Pekka Jääskeläinen! llvm-svn: 50373
* several multiple-retval fixes for bugpoint.Chris Lattner2008-04-282-11/+12
| | | | llvm-svn: 50331
* Revert r49614. As Dan pointed out, some of these aren't correct.Owen Anderson2008-04-141-1/+1
| | | | llvm-svn: 49657
* Replace calls of the form V1->setName(V2->getName()) with V1->takeName(V2), Owen Anderson2008-04-131-1/+1
| | | | | | which is significantly more efficient. llvm-svn: 49614
* Remove tabs. Patch by Mike Stump!Bill Wendling2008-04-071-2/+2
| | | | llvm-svn: 49317
* API changes for class Use size reduction, wave 1.Gabor Greif2008-04-062-30/+30
| | | | | | | | Specifically, introduction of XXX::Create methods for Users that have a potentially variable number of Uses. llvm-svn: 49277
* -fPIC is required on x86-64 when building shared objects.Torok Edwin2008-04-062-2/+2
| | | | llvm-svn: 49274
* With debug info, there are nameless constant global values. do not crash ↵Andrew Lenharth2008-03-241-2/+3
| | | | | | when we hit one llvm-svn: 48749
* Detabify.Bill Wendling2008-02-263-13/+12
| | | | llvm-svn: 47596
* Fix a missing space in the description of the find-bugs option.Dan Gohman2008-02-181-1/+1
| | | | llvm-svn: 47271
* PR2027, Fix bugpoint's -find-bugs option, clean up the code.Nick Lewycky2008-02-141-11/+8
| | | | llvm-svn: 47105
* Fix PR1797Chris Lattner2008-01-081-0/+3
| | | | llvm-svn: 45736
* remove attributions from tools.Chris Lattner2007-12-2913-26/+26
| | | | llvm-svn: 45421
* remove attributions from tools/utils makefiles.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45414
* Change the PointerType api for creating pointer types. The old functionality ↵Christopher Lamb2007-12-171-3/+3
| | | | | | of PointerType::get() has become PointerType::getUnqual(), which returns a pointer in the generic address space. The new prototype of PointerType::get() requires both a type and an address space. llvm-svn: 45082
* Rather than having special rules like "intrinsics cannotDuncan Sands2007-12-031-1/+1
| | | | | | | | | throw exceptions", just mark intrinsics with the nounwind attribute. Likewise, mark intrinsics as readnone/readonly and get rid of special aliasing logic (which didn't use anything more than this anyway). llvm-svn: 44544
* Allow the block extractor take to take a list of basic blocks to not extractNick Lewycky2007-11-144-11/+63
| | | | | | | | | from a file containing Function/BasicBlock pairings. This is not safe against anonymous or abnormally-named Funcs or BBs. Make bugpoint use this interface to pass the BBs list to the child bugpoint. llvm-svn: 44101
* Deleting redundant copy of block extractor pass. See also PR1775.Gordon Henriksen2007-11-051-51/+2
| | | | llvm-svn: 43694
OpenPOWER on IntegriCloud