Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Get rid of static constructors for pass registration. Instead, every pass ↵ | Owen Anderson | 2010-10-19 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | 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 | ||||
* | Now with fewer extraneous semicolons! | Owen Anderson | 2010-10-07 | 1 | -1/+1 |
| | | | | llvm-svn: 115996 | ||||
* | Revert r111082. No warnings for this common pattern. | Argyrios Kyrtzidis | 2010-08-15 | 1 | -1/+1 |
| | | | | llvm-svn: 111102 | ||||
* | Add ATTRIBUTE_UNUSED to methods that are not supposed to be used. | Argyrios Kyrtzidis | 2010-08-14 | 1 | -1/+1 |
| | | | | llvm-svn: 111082 | ||||
* | Reapply r110396, with fixes to appease the Linux buildbot gods. | Owen Anderson | 2010-08-06 | 1 | -1/+1 |
| | | | | llvm-svn: 110460 | ||||
* | Revert r110396 to fix buildbots. | Owen Anderson | 2010-08-06 | 1 | -1/+1 |
| | | | | llvm-svn: 110410 | ||||
* | Don't use PassInfo* as a type identifier for passes. Instead, use the ↵ | Owen Anderson | 2010-08-05 | 1 | -1/+1 |
| | | | | | | | | address of the static ID member as the sole unique type identifier. Clean up APIs related to this change. llvm-svn: 110396 | ||||
* | Fix batch of converting RegisterPass<> to INTIALIZE_PASS(). | Owen Anderson | 2010-07-21 | 1 | -2/+2 |
| | | | | llvm-svn: 109045 | ||||
* | Change dbgs() back to errs() as Chris requested. | David Greene | 2009-12-23 | 1 | -1/+1 |
| | | | | llvm-svn: 92086 | ||||
* | Convert debug messages to use dbgs(). Generally this means | David Greene | 2009-12-23 | 1 | -1/+2 |
| | | | | | | s/errs/dbgs/g except for certain special cases. llvm-svn: 92039 | ||||
* | Remove FreeInst. | Victor Hernandez | 2009-10-26 | 1 | -2/+2 |
| | | | | | | | Remove LowerAllocations pass. Update some more passes to treate free calls just like they were treating FreeInst. llvm-svn: 85176 | ||||
* | Remove includes of Support/Compiler.h that are no longer needed after the | Nick Lewycky | 2009-10-25 | 1 | -1/+0 |
| | | | | | | VISIBILITY_HIDDEN removal. llvm-svn: 85043 | ||||
* | Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces. | Nick Lewycky | 2009-10-25 | 1 | -2/+1 |
| | | | | | | | Chris claims we should never have visibility_hidden inside any .cpp file but that's still not true even after this commit. llvm-svn: 85042 | ||||
* | Remove MallocInst from LLVM Instructions. | Victor Hernandez | 2009-10-17 | 1 | -2/+2 |
| | | | | llvm-svn: 84299 | ||||
* | Change Pass::print to take a raw ostream instead of std::ostream, | Chris Lattner | 2009-08-23 | 1 | -1/+1 |
| | | | | | | update all code that this affects. llvm-svn: 79830 | ||||
* | eliminate the "Value" printing methods that print to a std::ostream. | Chris Lattner | 2009-08-23 | 1 | -2/+2 |
| | | | | | | This required converting a bunch of stuff off DOUT and other cleanups. llvm-svn: 79819 | ||||
* | llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. | Torok Edwin | 2009-07-14 | 1 | -1/+1 |
| | | | | | | | | | This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). llvm-svn: 75640 | ||||
* | Convert more assert(0)+abort() -> LLVM_UNREACHABLE, | Torok Edwin | 2009-07-11 | 1 | -1/+2 |
| | | | | | | and abort()/exit() -> llvm_report_error(). llvm-svn: 75363 | ||||
* | Remove some unnecessary #includes. | Dan Gohman | 2009-06-05 | 1 | -1/+0 |
| | | | | llvm-svn: 72948 | ||||
* | Tidy up several unbeseeming casts from pointer to intptr_t. | Dan Gohman | 2008-09-04 | 1 | -1/+1 |
| | | | | llvm-svn: 55779 | ||||
* | Clean up the use of static and anonymous namespaces. This turned up | Dan Gohman | 2008-05-13 | 1 | -4/+4 |
| | | | | | | | several things that were neither in an anonymous namespace nor static but not intended to be global. llvm-svn: 51017 | ||||
* | Restore isCFGOnly property of various analysis passes. | Devang Patel | 2008-03-20 | 1 | -1/+1 |
| | | | | llvm-svn: 48579 | ||||
* | PassInfo keep tracks whether a pass is an analysis pass or not. | Devang Patel | 2008-03-19 | 1 | -2/+2 |
| | | | | llvm-svn: 48554 | ||||
* | Do not use virtual function to identify an analysis pass. | Devang Patel | 2008-03-19 | 1 | -5/+1 |
| | | | | llvm-svn: 48520 | ||||
* | Identify Analysis pass. | Devang Patel | 2008-03-18 | 1 | -0/+4 |
| | | | | | | | Do not run analysis pass again if analysis info is still available. This fixes PR1441. llvm-svn: 48476 | ||||
* | Remove attribution from file headers, per discussion on llvmdev. | Chris Lattner | 2007-12-29 | 1 | -2/+2 |
| | | | | llvm-svn: 45418 | ||||
* | Fix typo in comment. | Nick Lewycky | 2007-05-06 | 1 | -1/+1 |
| | | | | llvm-svn: 36873 | ||||
* | Drop 'const' | Devang Patel | 2007-05-03 | 1 | -2/+2 |
| | | | | llvm-svn: 36662 | ||||
* | Use 'static const char' instead of 'static const int'. | Devang Patel | 2007-05-02 | 1 | -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 Patel | 2007-05-01 | 1 | -0/+4 |
| | | | | llvm-svn: 36632 | ||||
* | Make classes in anonymous namespaces use VISIBILITY_HIDDEN to help reduce | Reid Spencer | 2007-02-05 | 1 | -1/+3 |
| | | | | | | LLVM's footprint and speed up linking. llvm-svn: 33941 | ||||
* | eliminate static ctors from Statistics | Chris Lattner | 2006-12-19 | 1 | -6/+8 |
| | | | | llvm-svn: 32697 | ||||
* | Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are | Bill Wendling | 2006-12-07 | 1 | -1/+1 |
| | | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298 | ||||
* | Detemplatize the Statistic class. The only type it is instantiated with | Chris Lattner | 2006-12-06 | 1 | -5/+5 |
| | | | | | | is 'unsigned'. llvm-svn: 32279 | ||||
* | Removed some of the iostream #includes. Moved towards converting to using | Bill Wendling | 2006-11-28 | 1 | -2/+3 |
| | | | | | | llvm streams llvm-svn: 31983 | ||||
* | Eliminate RegisterAnalysis. RegisterPass now does all that is necessary. | Chris Lattner | 2006-08-27 | 1 | -2/+2 |
| | | | | llvm-svn: 29921 | ||||
* | Add explicit iostream #includes | Chris Lattner | 2006-01-22 | 1 | -0/+1 |
| | | | | llvm-svn: 25513 | ||||
* | expose a ctor | Chris Lattner | 2005-10-24 | 1 | -0/+3 |
| | | | | llvm-svn: 23924 | ||||
* | Remove trailing whitespace | Misha Brukman | 2005-04-21 | 1 | -5/+5 |
| | | | | llvm-svn: 21416 | ||||
* | Directly count the number of memory instructions. | Chris Lattner | 2005-03-22 | 1 | -4/+9 |
| | | | | llvm-svn: 20766 | ||||
* | Standardize on 'class' instead of 'struct'. Gets rid of warnings in VC++ | Reid Spencer | 2004-11-16 | 1 | -1/+1 |
| | | | | | | Patch contributed by Jeff Cohen. llvm-svn: 17889 | ||||
* | Convert 'struct' to 'class' in various places to adhere to the coding standards | Chris Lattner | 2004-10-27 | 1 | -1/+1 |
| | | | | | | and work better with VC++. Patch contributed by Morten Ofstad! llvm-svn: 17281 | ||||
* | Changes For Bug 352 | Reid Spencer | 2004-09-01 | 1 | -1/+1 |
| | | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137 | ||||
* | Put all LLVM code into the llvm namespace, as per bug 109. | Brian Gaeke | 2003-11-11 | 1 | -0/+4 |
| | | | | llvm-svn: 9903 | ||||
* | Added LLVM project notice to the top of every C++ source file. | John Criswell | 2003-10-20 | 1 | -0/+7 |
| | | | | | | Header files will be on the way. llvm-svn: 9298 | ||||
* | There is no reason for this to be a pass! | Chris Lattner | 2003-08-29 | 1 | -5/+5 |
| | | | | llvm-svn: 8214 | ||||
* | Add total instruction, bb, & function counts | Chris Lattner | 2002-12-07 | 1 | -2/+9 |
| | | | | llvm-svn: 4954 | ||||
* | Simplify code | Chris Lattner | 2002-12-03 | 1 | -118/+13 |
| | | | | llvm-svn: 4886 | ||||
* | Count CallInsts correctly, remove unneccesary initializers | Chris Lattner | 2002-11-17 | 1 | -37/+3 |
| | | | | | | S: ---------------------------------------------------------------------- llvm-svn: 4721 | ||||
* | Gives the count for various instructions. | Dinakar Dhurjati | 2002-11-13 | 1 | -0/+189 |
llvm-svn: 4706 |