Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Get rid of static constructors for pass registration. Instead, every pass ↵ | Owen Anderson | 2010-10-19 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | 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 | ||||
* | Now that PassInfo and Pass::ID have been separated, move the rest of the ↵ | Owen Anderson | 2010-08-23 | 1 | -4/+2 |
| | | | | | | passes over to the new registration API. llvm-svn: 111815 | ||||
* | Reapply r110396, with fixes to appease the Linux buildbot gods. | Owen Anderson | 2010-08-06 | 1 | -4/+4 |
| | | | | llvm-svn: 110460 | ||||
* | Revert r110396 to fix buildbots. | Owen Anderson | 2010-08-06 | 1 | -4/+4 |
| | | | | llvm-svn: 110410 | ||||
* | Don't use PassInfo* as a type identifier for passes. Instead, use the ↵ | Owen Anderson | 2010-08-05 | 1 | -4/+4 |
| | | | | | | | | address of the static ID member as the sole unique type identifier. Clean up APIs related to this change. llvm-svn: 110396 | ||||
* | Speculatively revert r108813, in an attempt to get the self-host buildbots ↵ | Owen Anderson | 2010-07-20 | 1 | -1/+1 |
| | | | | | | | | 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 Anderson | 2010-07-20 | 1 | -1/+1 |
| | | | | llvm-svn: 108813 | ||||
* | Revert r108794, "Separate PassInfo into two classes: a constructor-free | Daniel Dunbar | 2010-07-20 | 1 | -1/+1 |
| | | | | | | | 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 Anderson | 2010-07-20 | 1 | -1/+1 |
| | | | | | | (StaticPassInfo) and a constructor-ful subclass (PassInfo). llvm-svn: 108794 | ||||
* | rename pred_const_iterator to const_pred_iterator for consistency's sake | Gabor Greif | 2010-03-25 | 1 | -1/+1 |
| | | | | llvm-svn: 99567 | ||||
* | adopt getAdjustedAnalysisPointer in a few more passes. | Chris Lattner | 2010-01-20 | 1 | -0/+10 |
| | | | | llvm-svn: 94018 | ||||
* | Change dbgs() back to errs() for assert messages as Chris requested. | David Greene | 2009-12-23 | 1 | -4/+4 |
| | | | | llvm-svn: 92077 | ||||
* | Convert debug messages to use dbgs(). Generally this means | David Greene | 2009-12-23 | 1 | -9/+9 |
| | | | | | | s/errs/dbgs/g except for certain special cases. llvm-svn: 92063 | ||||
* | Use ProfileInfo-API in ProfileInfo Loader and do more assertions. | Andreas Neustifter | 2009-12-03 | 1 | -46/+10 |
| | | | | llvm-svn: 90446 | ||||
* | Apply fix for PR5135, Credit to Andreas Neustifter. | Edward O'Callaghan | 2009-11-02 | 1 | -4/+4 |
| | | | | llvm-svn: 85779 | ||||
* | 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 | -1/+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 | ||||
* | Reapplied r81355 with the problems fixed. | Andreas Neustifter | 2009-09-16 | 1 | -7/+17 |
| | | | | | | | (See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090907/086737.html and http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090907/086746.html) llvm-svn: 82039 | ||||
* | Cleaned up code by factoring out common portions of edge loading into function. | Andreas Neustifter | 2009-09-10 | 1 | -50/+44 |
| | | | | llvm-svn: 81438 | ||||
* | Reverted r81358. | Andreas Neustifter | 2009-09-09 | 1 | -22/+27 |
| | | | | llvm-svn: 81364 | ||||
* | Fix build, add missing simicolon. | Benjamin Kramer | 2009-09-09 | 1 | -1/+1 |
| | | | | llvm-svn: 81362 | ||||
* | Cleaned up code by factoring out common portions of edge loading into funcion. | Andreas Neustifter | 2009-09-09 | 1 | -27/+22 |
| | | | | llvm-svn: 81358 | ||||
* | revert r81335, which breaks the build. | Chris Lattner | 2009-09-09 | 1 | -24/+6 |
| | | | | llvm-svn: 81347 | ||||
* | Updated ProfileInfo to have clean seperation between different sentinels. | Andreas Neustifter | 2009-09-09 | 1 | -6/+24 |
| | | | | llvm-svn: 81335 | ||||
* | Revert "--- Reverse-merging r80908 into '.':", I already "fixed" this. | Daniel Dunbar | 2009-09-03 | 1 | -1/+1 |
| | | | | llvm-svn: 80970 | ||||
* | --- Reverse-merging r80908 into '.': | Bill Wendling | 2009-09-03 | 1 | -1/+1 |
| | | | | | | | | | | | D test/Analysis/Profiling --- Reverse-merging r80907 into '.': U lib/Analysis/ProfileInfoLoaderPass.cpp Attempt to remove failure in the self-hosting build bot. llvm-svn: 80966 | ||||
* | Remove undefined behavior when loading optimal edge profile info. | Daniel Dunbar | 2009-09-03 | 1 | -1/+1 |
| | | | | llvm-svn: 80907 | ||||
* | OptimalEdgeProfiling: Reading in Profiles. | Andreas Neustifter | 2009-09-01 | 1 | -1/+160 |
| | | | | | | This enables LLVM to read the OptimalEdgeProfiles. llvm-svn: 80715 | ||||
* | remove uses of llvm/Support/Streams.h. | Chris Lattner | 2009-08-23 | 1 | -7/+7 |
| | | | | llvm-svn: 79838 | ||||
* | Some ProfileInfo cleanups. | Daniel Dunbar | 2009-08-08 | 1 | -1/+1 |
| | | | | | | - Part of optimal static profiling patch sequence by Andreas Neustifter. llvm-svn: 78485 | ||||
* | More ProfileInfo improvements. | Daniel Dunbar | 2009-08-08 | 1 | -23/+52 |
| | | | | | | | | | | | | - Part of optimal static profiling patch sequence by Andreas Neustifter. - Store edge, block, and function information separately for each functions (instead of in one giant map). - Return frequencies as double instead of int, and use a sentinel value for missing information. llvm-svn: 78477 | ||||
* | Make block and function count available via ProfileInfo. | Daniel Dunbar | 2009-08-05 | 1 | -5/+13 |
| | | | | | | - Part of optimal static profiling patch sequence by Andreas Neustifter. llvm-svn: 78247 | ||||
* | Remove unnecessary ProfileInfoLoader methods. | Daniel Dunbar | 2009-08-05 | 1 | -14/+17 |
| | | | | | | - Part of optimal static profiling patch sequence by Andreas Neustifter. llvm-svn: 78199 | ||||
* | 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 | -10/+10 |
| | | | | | | | several things that were neither in an anonymous namespace nor static but not intended to be global. llvm-svn: 51017 | ||||
* | Make several variable declarations static. | Dan Gohman | 2008-05-06 | 1 | -1/+1 |
| | | | | llvm-svn: 50696 | ||||
* | 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 | -4/+1 |
| | | | | llvm-svn: 48520 | ||||
* | Identify Analysis pass. | Devang Patel | 2008-03-18 | 1 | -0/+3 |
| | | | | | | | 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 | ||||
* | More explicit keywords. | Dan Gohman | 2007-08-01 | 1 | -1/+1 |
| | | | | llvm-svn: 40673 | ||||
* | 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 | -1/+3 |
| | | | | llvm-svn: 36632 | ||||
* | Make classes in anonymous namespaces use VISIBILITY_HIDDEN to help reduce | Reid Spencer | 2007-02-05 | 1 | -1/+2 |
| | | | | | | LLVM's footprint and speed up linking. llvm-svn: 33941 | ||||
* | Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are | Bill Wendling | 2006-12-07 | 1 | -2/+2 |
| | | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298 | ||||
* | Removed some of the iostream #includes. Moved towards converting to using | Bill Wendling | 2006-11-28 | 1 | -3/+2 |
| | | | | | | llvm streams llvm-svn: 31983 | ||||
* | simplify AnalysisGroup registration, eliminating one typeid call. | Chris Lattner | 2006-08-28 | 1 | -1/+1 |
| | | | | llvm-svn: 29932 |