7857a64909 
								
							 
						 
						
							
							
								
								Disable statistics on Release builds and move tests that depend on -stats.  
							
							... 
							
							
							
							Summary:
Statistics are still available in Release+Asserts (any +Asserts builds),
and stats can also be turned on with LLVM_ENABLE_STATS.
Move some of the FastISel stats that were moved under DEBUG()
back out of DEBUG(), since stats are disabled across the board now.
Many tests depend on grepping "-stats" output.  Move those into
a orig_dir/Stats/. so that they can be marked as unsupported
when building without statistics.
Differential Revision: http://llvm-reviews.chandlerc.com/D486 
llvm-svn: 176733 
							
						 
						
							2013-03-08 22:56:31 +00:00  
				
					
						
							
							
								 
						
							
								ed0881b2a6 
								
							 
						 
						
							
							
								
								Use the new script to sort the includes of every file under lib.  
							
							... 
							
							
							
							Sooooo many of these had incorrect or strange main module includes.
I have manually inspected all of these, and fixed the main module
include to be the nearest plausible thing I could find. If you own or
care about any of these source files, I encourage you to take some time
and check that these edits were sensible. I can't have broken anything
(I strictly added headers, and reordered them, never removed), but they
may not be the headers you'd really like to identify as containing the
API being implemented.
Many forward declarations and missing includes were added to a header
files to allow them to parse cleanly when included first. The main
module rule does in fact have its merits. =]
llvm-svn: 169131 
							
						 
						
							2012-12-03 16:50:05 +00:00  
				
					
						
							
							
								 
						
							
								91ce36c986 
								
							 
						 
						
							
							
								
								Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. See:  http://en.wikipedia.org/wiki/If_and_only_if  Commit 164767  
							
							... 
							
							
							
							llvm-svn: 164768 
							
						 
						
							2012-09-27 10:14:43 +00:00  
				
					
						
							
							
								 
						
							
								721cffd53a 
								
							 
						 
						
							
							
								
								Fix a typo 'iff' => 'if'  
							
							... 
							
							
							
							llvm-svn: 164767 
							
						 
						
							2012-09-27 09:59:43 +00:00  
				
					
						
							
							
								 
						
							
								897a57ecda 
								
							 
						 
						
							
							
								
								Silence tsan false-positives (tsan can't track things which are only safe due to  
							
							... 
							
							
							
							memory fences) in statistics registration, which works the same way that
ManagedStatic registration does.
llvm-svn: 145869 
							
						 
						
							2011-12-05 23:07:05 +00:00  
				
					
						
							
							
								 
						
							
								cc863b2bb6 
								
							 
						 
						
							
							
								
								Let printf do the formatting instead aligning strings ourselves.  
							
							... 
							
							
							
							While at it, merge some format strings.
llvm-svn: 142140 
							
						 
						
							2011-10-16 16:30:34 +00:00  
				
					
						
							
							
								 
						
							
								06dfe8e9c5 
								
							 
						 
						
							
							
								
								Support: Add llvm::AreStatisticsEnabled().  
							
							... 
							
							
							
							llvm-svn: 126558 
							
						 
						
							2011-02-26 23:17:12 +00:00  
				
					
						
							
							
								 
						
							
								447762da85 
								
							 
						 
						
							
							
								
								Merge System into Support.  
							
							... 
							
							
							
							llvm-svn: 120298 
							
						 
						
							2010-11-29 18:16:10 +00:00  
				
					
						
							
							
								 
						
							
								a927736604 
								
							 
						 
						
							
							
								
								remove trailing whitespace  
							
							... 
							
							
							
							llvm-svn: 111254 
							
						 
						
							2010-08-17 17:37:22 +00:00  
				
					
						
							
							
								 
						
							
								83fd0156a9 
								
							 
						 
						
							
							
								
								Introduce namespace-scope functions to enable LLVM statistics without  
							
							... 
							
							
							
							passing the command-line parameter "-stats" and to print the resulting
statistics without calling llvm_shutdown().
llvm-svn: 99893 
							
						 
						
							2010-03-30 17:32:08 +00:00  
				
					
						
							
							
								 
						
							
								6cbd8d118e 
								
							 
						 
						
							
							
								
								rename GetLibSupportInfoOutputFile -> CreateInfoOutputFile and  
							
							... 
							
							
							
							have it always return a new stream to simplify clients.
llvm-svn: 99874 
							
						 
						
							2010-03-30 05:01:08 +00:00  
				
					
						
							
							
								 
						
							
								dcd68b7a65 
								
							 
						 
						
							
							
								
								if a timergroup is destroyed before its timers, print times.  
							
							... 
							
							
							
							llvm-svn: 99873 
							
						 
						
							2010-03-30 04:58:26 +00:00  
				
					
						
							
							
								 
						
							
								b28b1ed1a8 
								
							 
						 
						
							
							
								
								Change errs() to dbgs().  
							
							... 
							
							
							
							llvm-svn: 92642 
							
						 
						
							2010-01-05 01:28:47 +00:00  
				
					
						
							
							
								 
						
							
								819d15c7d9 
								
							 
						 
						
							
							
								
								Avoid using mutex locks if not in multithreaded mode by using a SmartScopedMutex  
							
							... 
							
							
							
							in RegisterStatistic.
llvm-svn: 82896 
							
						 
						
							2009-09-27 11:08:03 +00:00  
				
					
						
							
							
								 
						
							
								471ba48cb9 
								
							 
						 
						
							
							
								
								remove some uses of llvm/Support/Streams.h  
							
							... 
							
							
							
							llvm-svn: 79842 
							
						 
						
							2009-08-23 08:43:55 +00:00  
				
					
						
							
							
								 
						
							
								5c96ef7c4e 
								
							 
						 
						
							
							
								
								Have scoped mutexes take referenes instead of pointers.  
							
							... 
							
							
							
							llvm-svn: 74931 
							
						 
						
							2009-07-07 18:33:04 +00:00  
				
					
						
							
							
								 
						
							
								ca8f986f63 
								
							 
						 
						
							
							
								
								Use atomic operations when accessing statistics, and make the lazy initialization of statistics actually threadsafe.  
							
							... 
							
							
							
							llvm-svn: 74005 
							
						 
						
							2009-06-23 21:19:38 +00:00  
				
					
						
							
							
								 
						
							
								975ce637db 
								
							 
						 
						
							
							
								
								Guard the statistics table.  
							
							... 
							
							
							
							llvm-svn: 73916 
							
						 
						
							2009-06-22 23:08:27 +00:00  
				
					
						
							
							
								 
						
							
								d78c400b5b 
								
							 
						 
						
							
							
								
								Clean up the use of static and anonymous namespaces. This turned up  
							
							... 
							
							
							
							several things that were neither in an anonymous namespace nor static
but not intended to be global.
llvm-svn: 51017 
							
						 
						
							2008-05-13 00:00:25 +00:00  
				
					
						
							
							
								 
						
							
								86cb31862f 
								
							 
						 
						
							
							
								
								Fix more -Wshorten-64-to-32 warnings.  
							
							... 
							
							
							
							llvm-svn: 50659 
							
						 
						
							2008-05-05 18:30:58 +00:00  
				
					
						
							
							
								 
						
							
								579f07135a 
								
							 
						 
						
							
							
								
								Unbreak build with gcc 4.3: provide missed includes and silence most annoying warnings.  
							
							... 
							
							
							
							llvm-svn: 47367 
							
						 
						
							2008-02-20 11:08:44 +00:00  
				
					
						
							
							
								 
						
							
								f3ebc3f3d2 
								
							 
						 
						
							
							
								
								Remove attribution from file headers, per discussion on llvmdev.  
							
							... 
							
							
							
							llvm-svn: 45418 
							
						 
						
							2007-12-29 20:36:04 +00:00  
				
					
						
							
							
								 
						
							
								00bb216977 
								
							 
						 
						
							
							
								
								eliminate constructor from Statistic class.  It is now impossible to get a  
							
							... 
							
							
							
							static constructor for them :).   Transition complete.
llvm-svn: 32710 
							
						 
						
							2006-12-19 23:17:40 +00:00  
				
					
						
							
							
								 
						
							
								13bfd32f5d 
								
							 
						 
						
							
							
								
								Refactor statistic a big and introduce a horrible-but-necessary macro  
							
							... 
							
							
							
							(STATISTIC), which allows us to define statistics that don't introduce
static ctors into the .o files.  I'm migrating code over to use this
incrementally.
llvm-svn: 32687 
							
						 
						
							2006-12-19 21:27:47 +00:00  
				
					
						
							
							
								 
						
							
								8c9969ac03 
								
							 
						 
						
							
							
								
								Change the implementation of statistic to not need destructors at all.  
							
							... 
							
							
							
							Instead, the stat info is printed when llvm_shutdown() is called.
These also don't need static ctors, but getting rid of them is uglier:
still investigating.  This reduces the number of static dtors in llvm from
~1400 to ~750.
llvm-svn: 32372 
							
						 
						
							2006-12-08 20:00:42 +00:00  
				
					
						
							
							
								 
						
							
								30c0f3367c 
								
							 
						 
						
							
							
								
								Don't use <sstream> in Streams.h but <iosfwd> instead.  
							
							... 
							
							
							
							llvm-svn: 32340 
							
						 
						
							2006-12-07 23:41:45 +00:00  
				
					
						
							
							
								 
						
							
								355fc5ad50 
								
							 
						 
						
							
							
								
								Removed more <iostream> includes  
							
							... 
							
							
							
							llvm-svn: 32321 
							
						 
						
							2006-12-07 20:28:15 +00:00  
				
					
						
							
							
								 
						
							
								5bbf770764 
								
							 
						 
						
							
							
								
								merge the Statistic and StatisticBase classes, eliminating virtual methods  
							
							... 
							
							
							
							and eliminating #includes from the Statistic.h file.
llvm-svn: 32282 
							
						 
						
							2006-12-06 18:20:44 +00:00  
				
					
						
							
							
								 
						
							
								700b873130 
								
							 
						 
						
							
							
								
								Detemplatize the Statistic class.  The only type it is instantiated with  
							
							... 
							
							
							
							is 'unsigned'.
llvm-svn: 32279 
							
						 
						
							2006-12-06 17:46:33 +00:00  
				
					
						
							
							
								 
						
							
								f5bed76353 
								
							 
						 
						
							
							
								
								Instantiate Statistic<> in one place, not in every .o file that uses it.  
							
							... 
							
							
							
							llvm-svn: 29971 
							
						 
						
							2006-08-30 04:17:00 +00:00  
				
					
						
							
							
								 
						
							
								1c12a881fb 
								
							 
						 
						
							
							
								
								Add some out-of-line virtual dtors so that the class has a "home", preventing  
							
							... 
							
							
							
							vtables for (e.g.) Instruction from being emitted into every .o file.
llvm-svn: 28898 
							
						 
						
							2006-06-21 16:53:47 +00:00  
				
					
						
							
							
								 
						
							
								10468d8a3c 
								
							 
						 
						
							
							
								
								Remove trailing whitespace  
							
							... 
							
							
							
							llvm-svn: 21422 
							
						 
						
							2005-04-21 22:55:34 +00:00  
				
					
						
							
							
								 
						
							
								7c16caa336 
								
							 
						 
						
							
							
								
								Changes For Bug 352  
							
							... 
							
							
							
							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 
							
						 
						
							2004-09-01 22:55:40 +00:00  
				
					
						
							
							
								 
						
							
								96e9a91f55 
								
							 
						 
						
							
							
								
								Pass std::string to constructor as const reference to avoid multiple  
							
							... 
							
							
							
							copies.
llvm-svn: 10705 
							
						 
						
							2004-01-06 09:16:02 +00:00  
				
					
						
							
							
								 
						
							
								dd978ce8c5 
								
							 
						 
						
							
							
								
								Finegrainify namespacification  
							
							... 
							
							
							
							Make the Timer code give correct user/system/user+system times when -track-memory is enabled
llvm-svn: 10463 
							
						 
						
							2003-12-14 21:27:33 +00:00  
				
					
						
							
							
								 
						
							
								960707c335 
								
							 
						 
						
							
							
								
								Put all LLVM code into the llvm namespace, as per bug 109.  
							
							... 
							
							
							
							llvm-svn: 9903 
							
						 
						
							2003-11-11 22:41:34 +00:00  
				
					
						
							
							
								 
						
							
								482202a601 
								
							 
						 
						
							
							
								
								Added LLVM project notice to the top of every C++ source file.  
							
							... 
							
							
							
							Header files will be on the way.
llvm-svn: 9298 
							
						 
						
							2003-10-20 19:43:21 +00:00  
				
					
						
							
							
								 
						
							
								afa3ec446c 
								
							 
						 
						
							
							
								
								This file uses stable_sort  
							
							... 
							
							
							
							llvm-svn: 7831 
							
						 
						
							2003-08-13 21:32:37 +00:00  
				
					
						
							
							
								 
						
							
								8fb754a5b9 
								
							 
						 
						
							
							
								
								Move debug functionality to Debug.cpp/Debug.h  
							
							... 
							
							
							
							llvm-svn: 7494 
							
						 
						
							2003-08-01 22:15:41 +00:00  
				
					
						
							
							
								 
						
							
								b0e5958961 
								
							 
						 
						
							
							
								
								Add a new info-output-file option (hidden from --help) which is to be used by  
							
							... 
							
							
							
							the testing scripts  to avoid breaking diffs while still gathering stats.
llvm-svn: 6067 
							
						 
						
							2003-05-09 20:05:44 +00:00  
				
					
						
							
							
								 
						
							
								c15e3d93f2 
								
							 
						 
						
							
							
								
								Remove the -debug option from release executables  
							
							... 
							
							
							
							llvm-svn: 5521 
							
						 
						
							2003-02-09 21:13:57 +00:00  
				
					
						
							
							
								 
						
							
								c98c871617 
								
							 
						 
						
							
							
								
								Add #include  
							
							... 
							
							
							
							llvm-svn: 4291 
							
						 
						
							2002-10-27 19:08:03 +00:00  
				
					
						
							
							
								 
						
							
								195d3fb37f 
								
							 
						 
						
							
							
								
								added cast to unsigned to compile with gcc3.2 (sparc)  
							
							... 
							
							
							
							llvm-svn: 4041 
							
						 
						
							2002-10-04 23:56:18 +00:00  
				
					
						
							
							
								 
						
							
								c758fe6b72 
								
							 
						 
						
							
							
								
								- Rework Statistics:  
							
							... 
							
							
							
							* Renamed StatisticReporter.h/cpp to Statistic.h/cpp
    * Broke constructor to take two const char * arguments instead of one, so
      that indendation can be taken care of automatically.
    * Sort the list by pass name when printing
    * Make sure to print all statistics as a group, instead of randomly when
      the statistics dtors are called.
llvm-svn: 3999 
							
						 
						
							2002-10-01 22:35:45 +00:00  
				
					
						
							
							
								 
						
							
								f5cad15a67 
								
							 
						 
						
							
							
								
								*** empty log message ***  
							
							... 
							
							
							
							llvm-svn: 2985 
							
						 
						
							2002-07-22 02:10:13 +00:00  
				
					
						
							
							
								 
						
							
								5184bdc596 
								
							 
						 
						
							
							
								
								Implement a new command line option, -debug, which is meant to unify all of  
							
							... 
							
							
							
							the random debugging macros scattered throughout llvm.
The new DEBUG(x) macro should be used instead of special purpose debug macros.
llvm-svn: 2709 
							
						 
						
							2002-05-22 17:06:20 +00:00  
				
					
						
							
							
								 
						
							
								9eb0052548 
								
							 
						 
						
							
							
								
								Initial checkin of Statistic class.  
							
							... 
							
							
							
							llvm-svn: 2598 
							
						 
						
							2002-05-10 15:36:46 +00:00