summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ProfileInfo.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Revert r110396 to fix buildbots.Owen Anderson2010-08-061-3/+3
| | | | llvm-svn: 110410
* Don't use PassInfo* as a type identifier for passes. Instead, use the ↵Owen Anderson2010-08-051-3/+3
| | | | | | | | address of the static ID member as the sole unique type identifier. Clean up APIs related to this change. llvm-svn: 110396
* Add INSTANTIATE_AG_PASS, which combines RegisterPass<> with ↵Owen Anderson2010-07-211-5/+2
| | | | | | RegisterAnalysisGroup<> for pass registration. llvm-svn: 109058
* Speculatively revert r108813, in an attempt to get the self-host buildbots ↵Owen Anderson2010-07-201-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 Anderson2010-07-201-1/+1
| | | | llvm-svn: 108813
* cache another dereferenced iteratorGabor Greif2010-07-151-4/+6
| | | | llvm-svn: 108421
* Remove a pointless variable.Duncan Sands2010-06-291-5/+1
| | | | llvm-svn: 107128
* rename pred_const_iterator to const_pred_iterator for consistency's sakeGabor Greif2010-03-251-9/+9
| | | | llvm-svn: 99567
* adopt getAdjustedAnalysisPointer in a few more passes.Chris Lattner2010-01-201-0/+14
| | | | llvm-svn: 94018
* Change dbgs() back to errs() for assert messages as Chris requested.David Greene2009-12-231-3/+3
| | | | llvm-svn: 92076
* Convert debug messages to use dbgs(). Generally this meansDavid Greene2009-12-231-20/+20
| | | | | | s/errs/dbgs/g except for certain special cases. llvm-svn: 92060
* You can't use typedefs to declare template member specializations, andJohn McCall2009-12-151-35/+49
| | | | | | clang enforces it. llvm-svn: 91397
* Converted ProfileInfo to template, added more API for ProfileInfo-preserving.Andreas Neustifter2009-12-031-40/+925
| | | | llvm-svn: 90445
* Remove includes of Support/Compiler.h that are no longer needed after theNick Lewycky2009-10-251-1/+0
| | | | | | VISIBILITY_HIDDEN removal. llvm-svn: 85043
* Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces.Nick Lewycky2009-10-251-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
* Add the first functions for updating ProfileInfo.Andreas Neustifter2009-09-091-0/+83
| | | | llvm-svn: 81359
* Move ProfileInfo::Edge's operator<< out of line. Among other benefits,Dan Gohman2009-08-261-0/+8
| | | | | | | this eliminates the ATTRIBUTE_USED, which wasn't being used in a manner acceptable to some GCC versions, according to the buildbots. llvm-svn: 80103
* Moved isDeclaration() check further down to allow for function counts forAndreas Neustifter2009-08-261-1/+4
| | | | | | declarations if necessary. llvm-svn: 80084
* This patch cleans up the ProfileInfo byAndreas Neustifter2009-08-241-2/+4
| | | | | | | | | | | *) introducing new data type and export function of edge info for whole function (preparation for next patch). *) renaming variables to make clear distinction between data and containers that contain this data. *) updated comments and whitespaces. *) made ProfileInfo::MissingValue a double (as it should be...). (Discussed at http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090817/084955.html.) llvm-svn: 79940
* Broke line before break.Andreas Neustifter2009-08-191-1/+2
| | | | llvm-svn: 79404
* Some ProfileInfo cleanups.Daniel Dunbar2009-08-081-0/+1
| | | | | | - Part of optimal static profiling patch sequence by Andreas Neustifter. llvm-svn: 78485
* More ProfileInfo improvements.Daniel Dunbar2009-08-081-39/+28
| | | | | | | | | | | | - 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 Dunbar2009-08-051-1/+6
| | | | | | - Part of optimal static profiling patch sequence by Andreas Neustifter. llvm-svn: 78247
* ProfileInfo interface tweaks.Daniel Dunbar2009-07-141-6/+10
| | | | | | | | | | | | - Add getExecutionCount(const Function). - Add helper Edge type. - constify. - No functionality change. llvm-svn: 75623
* Tidy up several unbeseeming casts from pointer to intptr_t.Dan Gohman2008-09-041-1/+1
| | | | llvm-svn: 55779
* Clean up the use of static and anonymous namespaces. This turned upDan Gohman2008-05-131-10/+8
| | | | | | | 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 Patel2008-03-201-1/+1
| | | | llvm-svn: 48579
* PassInfo keep tracks whether a pass is an analysis pass or not.Devang Patel2008-03-191-1/+1
| | | | llvm-svn: 48554
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45418
* Drop 'const'Devang Patel2007-05-031-3/+3
| | | | llvm-svn: 36662
* Use 'static const char' instead of 'static const int'.Devang Patel2007-05-021-3/+3
| | | | | | | Due to darwin gcc bug, one version of darwin linker coalesces static const int, which defauts PassID based pass identification. llvm-svn: 36652
* Fix build error.Lauro Ramos Venancio2007-05-021-1/+1
| | | | llvm-svn: 36648
* Do not use typeinfo to identify pass in pass manager.Devang Patel2007-05-011-1/+6
| | | | llvm-svn: 36632
* Change uses of Function::front to Function::getEntryBlock for readability.Dan Gohman2007-03-221-1/+1
| | | | llvm-svn: 35265
* Make classes in anonymous namespaces use VISIBILITY_HIDDEN to help reduceReid Spencer2007-02-051-1/+3
| | | | | | LLVM's footprint and speed up linking. llvm-svn: 33941
* simplify AnalysisGroup registration, eliminating one typeid call.Chris Lattner2006-08-281-1/+1
| | | | llvm-svn: 29932
* eliminate RegisterOpt. It does the same thing as RegisterPass.Chris Lattner2006-08-271-1/+1
| | | | llvm-svn: 29925
* Remove trailing whitespaceMisha Brukman2005-04-211-3/+3
| | | | llvm-svn: 21416
* Add even more missing createXxxPass functions.Jeff Cohen2005-01-081-0/+3
| | | | llvm-svn: 19402
* Switch to using edge profiling information as the basic source of profile infoChris Lattner2004-03-081-0/+52
| | | | | | from using basic block counts. llvm-svn: 12242
* Refactor implementationsChris Lattner2004-03-081-3/+1
| | | | llvm-svn: 12240
* Fix copy-and-pastosChris Lattner2004-02-111-2/+2
| | | | llvm-svn: 11319
* Make sure to register the 'no profile' implementation as the default for ↵Chris Lattner2004-02-111-1/+1
| | | | | | ProfileInfo llvm-svn: 11309
* An initial implementation of an LLVM ProfileInfo class which is designed toChris Lattner2004-02-101-0/+42
eventually allow Passes to use profiling information to direct them. llvm-svn: 11294
OpenPOWER on IntegriCloud