summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint
Commit message (Collapse)AuthorAgeFilesLines
* Make bugpoint pass -load arguments to LLI. This lets one use bugpoint withDuncan Sands2009-11-171-4/+5
| | | | | | programs that depend on native shared libraries. Patch by Timo Lindfors. llvm-svn: 89087
* Add compare_lower and equals_lower methods to StringRef. Switch all users ofBenjamin Kramer2009-11-121-3/+3
| | | | | | StringsEqualNoCase (from StringExtras.h) to it. llvm-svn: 87020
* Introduce and use convenience methods for getting pointer typesDuncan Sands2009-10-061-2/+2
| | | | | | | where the element is of a basic builtin type. For example, to get an i8* use getInt8PtrTy. llvm-svn: 83379
* Remove the default value for ConstantStruct::get's isPacked parameter andNick Lewycky2009-09-191-2/+2
| | | | | | update the code which was broken by this. llvm-svn: 82327
* Add -output-prefix option to bugpoint (to change the default output name).Daniel Dunbar2009-09-074-11/+23
| | | | llvm-svn: 81154
* Make bugpoint use ParseIRFile instead of doing the same thing manually.Dan Gohman2009-09-031-12/+5
| | | | llvm-svn: 80927
* only print the override triple if it exists!Chris Lattner2009-08-311-2/+3
| | | | llvm-svn: 80534
* Make LLVM command-line tools overwrite their output files without -f.Dan Gohman2009-08-253-6/+4
| | | | | | | | | | | | | | | | This is conventional command-line tool behavior. -f now just means "enable binary output on terminals". Add a -f option to llvm-extract and llvm-link, for consistency. Remove F_Force from raw_fd_ostream and enable overwriting and truncating by default. Introduce an F_Excl flag to permit users to enable a failure when the file already exists. This flag is currently unused. Update Makefiles and documentation accordingly. llvm-svn: 79990
* prune the #includes in raw_ostream.h by moving a Chris Lattner2009-08-241-0/+1
| | | | | | | member out of line. ftostr is not particularly speedy, so that method is presumably not perf sensitive. llvm-svn: 79885
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-237-56/+63
| | | | | | | | | | | | | | | | | | forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. llvm-svn: 79869
* 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
* eliminate the std::ostream forms of the bitcode writing APIs.Chris Lattner2009-08-231-15/+17
| | | | llvm-svn: 79840
* Change raw_fd_ostream to take flags as an optional bitmask Chris Lattner2009-08-231-3/+2
| | | | | | | | | | | | | | | | instead of as two bools. Use this to add a F_Append flag which has the obvious behavior. Other unrelated changes conflated into this patch: 1. REmove EH stuff from llvm-dis and llvm-as, the try blocks are dead. 2. Simplify the filename inference code in llvm-as/llvm-dis, because raw_fd_ostream does the right thing with '-'. 3. Switch machine verifier to use raw_ostream instead of ostream (Which is the thing that needed append in the first place). llvm-svn: 79807
* Proper MSVC build fix (and remove my hack again). Patch by Yonggang Luo.Benjamin Kramer2009-08-191-7/+2
| | | | llvm-svn: 79418
* Add a hack to unbreak MSVC builds. str(n)casecmp are POSIX functions and ↵Benjamin Kramer2009-08-191-0/+5
| | | | | | aren't available on windows (mingw defines them though). llvm-svn: 79417
* Include valgrind in the steps to reproduce if valgrind was used to reproduceNick Lewycky2009-08-181-0/+1
| | | | | | the problem. llvm-svn: 79322
* Change bugpoint to use Triple to make runtime decisions.Daniel Dunbar2009-08-185-36/+64
| | | | | | | | | - This is cleaner, and makes bugpoint match the host instead of the build architecture. - Patch by Sandeep Patel! llvm-svn: 79309
* Push LLVMContexts through the IntegerType APIs.Owen Anderson2009-08-133-18/+25
| | | | llvm-svn: 78948
* Make LLVMContext and LLVMContextImpl classes instead of structs.Benjamin Kramer2009-08-111-1/+1
| | | | llvm-svn: 78690
* MSVC warning fixes; patch by Stein Roger!Daniel Dunbar2009-08-071-1/+1
| | | | llvm-svn: 78405
* Privatize the StructType table, which unfortunately involves routing ↵Owen Anderson2009-08-051-1/+2
| | | | | | contexts through a number of APIs. llvm-svn: 78258
* Use (void *)(intptr_t) to cast function addresses to void*Dan Gohman2009-08-051-8/+4
| | | | | | | for use with sys::Path::GetMainExecutable, to avoid warnings with -pedantic. llvm-svn: 78245
* Fix FindExecutable to use sys::Path::GetMainExecutable instead ofDan Gohman2009-08-055-37/+40
| | | | | | | | | | | | | 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
* Pass user only if it's non-empty. Patch by Sandeep.Anton Korobeynikov2009-08-051-2/+4
| | | | llvm-svn: 78184
* Add save-temps option to bugpoint to keep temporary stuff.Anton Korobeynikov2009-08-054-6/+14
| | | | | | Patch by Sandeep Patel llvm-svn: 78183
* Factor some of the constants+context related code out into a separate ↵Owen Anderson2009-08-041-1/+1
| | | | | | | | header, to make LLVMContextImpl.h not hideous. Also, fix some MSVC compile errors. llvm-svn: 78115
* Move a few more APIs back to 2.5 forms. The only remaining ones left to ↵Owen Anderson2009-07-314-7/+4
| | | | | | | | change back are metadata related, which I'm waiting on to avoid conflicting with Devang. llvm-svn: 77721
* Move more code back to 2.5 APIs.Owen Anderson2009-07-302-2/+2
| | | | llvm-svn: 77635
* Move types back to the 2.5 API.Owen Anderson2009-07-292-5/+4
| | | | llvm-svn: 77516
* Move ConstantExpr to 2.5 API.Owen Anderson2009-07-291-1/+1
| | | | llvm-svn: 77494
* Add a bugpoint flag to disable block extraction.David Goodwin2009-07-281-1/+5
| | | | llvm-svn: 77389
* Change ConstantArray to 2.5 API.Owen Anderson2009-07-282-2/+2
| | | | llvm-svn: 77347
* Pass true to the Internalize parameter of createStandardLTOPasses,Dan Gohman2009-07-271-1/+1
| | | | | | to match llvm-ld's default behavior. llvm-svn: 77273
* Move ConstantStruct back to 2.5 API.Owen Anderson2009-07-271-1/+1
| | | | llvm-svn: 77266
* Remove Value::setName(const char*, unsigned).Daniel Dunbar2009-07-261-2/+2
| | | | llvm-svn: 77100
* Revert the ConstantInt constructors back to their 2.5 forms where possible, ↵Owen Anderson2009-07-241-1/+1
| | | | | | thanks to contexts-on-types. More to come. llvm-svn: 77011
* Switch to getNameStr().Daniel Dunbar2009-07-241-1/+1
| | | | llvm-svn: 76962
* Get rid of the Pass+Context magic.Owen Anderson2009-07-222-2/+2
| | | | llvm-svn: 76702
* 80 col violation.Evan Cheng2009-07-211-9/+9
| | | | llvm-svn: 76629
* For remote execution, must cd to the executable directory since the exe ↵David Goodwin2009-07-201-3/+4
| | | | | | expects to find a dylib in the CWD ('.'). llvm-svn: 76432
* Add -std-{compile,link}-opts to bugpoint.Daniel Dunbar2009-07-201-0/+40
| | | | | | - Sheesh. llvm-svn: 76402
* fix testChris Lattner2009-07-191-1/+2
| | | | llvm-svn: 76378
* DisambiguateGlobalSymbols should not mangle intrinsics.Chris Lattner2009-07-191-2/+2
| | | | llvm-svn: 76377
* Require a remote command to exit with the exit status of the test program or ↵Viktor Kutuzov2009-07-181-11/+59
| | | | | | with 255 if an error occurred. llvm-svn: 76323
* Convert more tools code from cerr and cout to errs() and outs().Dan Gohman2009-07-169-181/+174
| | | | llvm-svn: 76070
* To simplify the upcoming context-on-type change, switch all command line ↵Owen Anderson2009-07-151-1/+1
| | | | | | | | tools to using the default global context for now. This will let us to hardwire stuff to the global context in the short term while the API is sorted out. llvm-svn: 75846
* Add a Force option to raw_fd_ostream to specify whether openingDan Gohman2009-07-151-9/+8
| | | | | | | | an existing file is considered an error. Convert several tools to use raw_fd_ostream instead of std::ostream, and to use this new option instead of doing a manual check. llvm-svn: 75801
* Use errs() instead of std::cerr.Dan Gohman2009-07-159-127/+129
| | | | llvm-svn: 75791
* eliminate the Mangler::PreserveAsmNames bit, the sole client of thisChris Lattner2009-07-151-5/+10
| | | | | | can do it perfectly well itself. llvm-svn: 75743
* control reaches end of non-void function.Evan Cheng2009-07-141-0/+2
| | | | llvm-svn: 75714
OpenPOWER on IntegriCloud