summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ExtractFunction.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* There are two ways of checking for a given type, for example isa<PointerType>(T)Duncan Sands2010-02-161-1/+1
| | | | | | | and T->isPointerTy(). Convert most instances of the first form to the second form. Requested by Chris. llvm-svn: 96344
* Replace strcpy with memcpy when we have the length around anyway.Benjamin Kramer2010-01-281-6/+2
| | | | llvm-svn: 94746
* 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-071-1/+2
| | | | llvm-svn: 81154
* Make LLVM command-line tools overwrite their output files without -f.Dan Gohman2009-08-251-2/+1
| | | | | | | | | | | | | | | | 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 #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-231-0/+1
| | | | | | | | | | | | | | | | | | 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
* 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
* Push LLVMContexts through the IntegerType APIs.Owen Anderson2009-08-131-2/+3
| | | | llvm-svn: 78948
* Privatize the StructType table, which unfortunately involves routing ↵Owen Anderson2009-08-051-1/+2
| | | | | | contexts through a number of APIs. llvm-svn: 78258
* Move a few more APIs back to 2.5 forms. The only remaining ones left to ↵Owen Anderson2009-07-311-1/+1
| | | | | | | | 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-301-1/+1
| | | | llvm-svn: 77635
* Move types back to the 2.5 API.Owen Anderson2009-07-291-2/+1
| | | | llvm-svn: 77516
* Change ConstantArray to 2.5 API.Owen Anderson2009-07-281-1/+1
| | | | llvm-svn: 77347
* 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-221-1/+1
| | | | llvm-svn: 76702
* Convert more tools code from cerr and cout to errs() and outs().Dan Gohman2009-07-161-10/+11
| | | | llvm-svn: 76070
* Use errs() instead of std::cerr.Dan Gohman2009-07-151-7/+7
| | | | llvm-svn: 75791
* Move EVER MORE stuff over to LLVMContext.Owen Anderson2009-07-141-4/+5
| | | | llvm-svn: 75703
* #include "llvm/Assembly/Writer.h" to get the declaration for WriteAsOperand.Dan Gohman2009-07-131-0/+1
| | | | llvm-svn: 75542
* Fix the build.Owen Anderson2009-07-131-0/+1
| | | | llvm-svn: 75536
* Begin the painful process of tearing apart the rat'ss nest that is ↵Owen Anderson2009-07-131-1/+1
| | | | | | | | | Constants.cpp and ConstantFold.cpp. This involves temporarily hard wiring some parts to use the global context. This isn't ideal, but it's the only way I could figure out to make this process vaguely incremental. llvm-svn: 75445
* Switch GlobalVariable ctors to a sane API, where *either* a context or a ↵Owen Anderson2009-07-081-4/+4
| | | | | | module is required. llvm-svn: 75025
* Push LLVMContext through GlobalVariables and IRBuilder.Owen Anderson2009-07-081-2/+4
| | | | llvm-svn: 74985
* Use CloneModule's ValueMap in more places, instead of lookingDan Gohman2009-04-221-14/+18
| | | | | | up functions by name. llvm-svn: 69805
* Add the private linkage.Rafael Espindola2009-01-151-1/+1
| | | | llvm-svn: 62279
* 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
* several multiple-retval fixes for bugpoint.Chris Lattner2008-04-281-1/+3
| | | | llvm-svn: 50331
* Fix PR1797Chris Lattner2008-01-081-0/+3
| | | | llvm-svn: 45736
* remove attributions from tools.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45421
* Allow the block extractor take to take a list of basic blocks to not extractNick Lewycky2007-11-141-3/+47
| | | | | | | | | 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
* Pretty straightforward replacement of "bytecode" by "bitcode"Gabor Greif2007-07-041-2/+2
| | | | | | performed on tools/ first, in order not to cause lethal damage llvm-svn: 37877
* Drop 'const'Devang Patel2007-05-031-2/+2
| | | | llvm-svn: 36662
* Use 'static const char' instead of 'static const int'.Devang Patel2007-05-021-2/+2
| | | | | | | Due to darwin gcc bug, one version of darwin linker coalesces static const int, which defauts PassID based pass identification. llvm-svn: 36652
* Do not use typeinfo to identify pass in pass manager.Devang Patel2007-05-011-0/+4
| | | | llvm-svn: 36632
* For PR411:Reid Spencer2007-02-051-5/+5
| | | | | | | | | | This patch replaces the SymbolTable class with ValueSymbolTable which does not support types planes. This means that all symbol names in LLVM must now be unique. The patch addresses the necessary changes to deal with this and removes code no longer needed as a result. This completes the bulk of the changes for this PR. Some cleanup patches will follow. llvm-svn: 33918
* For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoidReid Spencer2007-01-301-3/+3
| | | | | | confusion with external linkage types. llvm-svn: 33663
* For PR950:Reid Spencer2006-12-311-1/+1
| | | | | | Convert signed integer types to signless. llvm-svn: 32790
* For PR950:Reid Spencer2006-11-271-1/+1
| | | | | | | | | | The long awaited CAST patch. This introduces 12 new instructions into LLVM to replace the cast instruction. Corresponding changes throughout LLVM are provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the exception of 175.vpr which fails only on a slight floating point output difference. llvm-svn: 31931
* completely revert patrick's enhancement to bugpoint. Though it makes bugpointChris Lattner2006-11-091-123/+15
| | | | | | | | | speed up, it sometimes makes it crash on complex bc files, which isn't very nice. With this, bugpoint can reduce the 176.gcc failure. llvm-svn: 31589
* For PR950:Reid Spencer2006-10-201-3/+3
| | | | | | | | This patch implements the first increment for the Signless Types feature. All changes pertain to removing the ConstantSInt and ConstantUInt classes in favor of just using ConstantInt. llvm-svn: 31063
* Code cleanups, no functionality change.Chris Lattner2006-08-291-36/+30
| | | | llvm-svn: 29969
* eliminate RegisterOpt. It does the same thing as RegisterPass.Chris Lattner2006-08-271-1/+1
| | | | llvm-svn: 29925
* Updating the comments above SplitFunctionsOutOfModule in ExtractFunction.cpp ↵Patrick Jenkins2006-07-281-5/+0
| | | | | | to reflect the changes made to that function. Specifically I am removing the FIXME comment because the issue has been addressed. llvm-svn: 29385
* This commit improves bugpoints speed. On my G4 this changed caused kimwitu++ ↵Patrick Jenkins2006-07-281-15/+132
| | | | | | | | to run through bugpoint in 1091.15 seconds (user + system time). The time it took to run this on my G4 before I made these changes is 1420.82 seconds (user + system time). This is a speedup of about 5.5 minutes. This is faster because SplitFunctionsOutOfModule no longer calls Clone Module and then removes the functions it doesnt want from the module returned. Instead it creates a module and copies over the specified functions, making changes to the new and old module where neccessary. This reduces the memory demand. llvm-svn: 29379
OpenPOWER on IntegriCloud