[m-rev.] diff: MR_MEASURE_REGISTER_USAGE

Zoltan Somogyi zs at cs.mu.OZ.AU
Thu Apr 10 15:47:35 AEST 2003


runtime/mercury_conf_param.h:
runtime/mercury_regs.h:
runtime/mercury_wrapper.c:
	Add an MR_ prefix.

Zoltan.

cvs diff: Diffing .
Index: mercury_conf_param.h
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/runtime/mercury_conf_param.h,v
retrieving revision 1.69
diff -u -b -r1.69 mercury_conf_param.h
--- mercury_conf_param.h	3 Mar 2003 09:03:16 -0000	1.69
+++ mercury_conf_param.h	10 Apr 2003 05:46:06 -0000
@@ -271,7 +271,7 @@
 /*
 ** Profiling options:
 **
-** MEASURE_REGISTER_USAGE
+** MR_MEASURE_REGISTER_USAGE
 ** Enable this if you want to measure the number of times
 ** each register is used.  (Note that the measurement includes
 ** uses which occur inside debugging routines, so to get an accurate
Index: mercury_regs.h
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/runtime/mercury_regs.h,v
retrieving revision 1.21
diff -u -b -r1.21 mercury_regs.h
--- mercury_regs.h	9 Sep 2002 18:07:33 -0000	1.21
+++ mercury_regs.h	10 Apr 2003 05:46:09 -0000
@@ -197,7 +197,7 @@
 ** The Mercury abstract machine registers layer
 */
 
-#ifdef MEASURE_REGISTER_USAGE
+#ifdef MR_MEASURE_REGISTER_USAGE
   #define MR_count_usage(num,reg)	MR_LVALUE_SEQ(MR_num_uses[num]++, reg)
 #else
   #define MR_count_usage(num,reg)	(reg)
Index: mercury_wrapper.c
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/runtime/mercury_wrapper.c,v
retrieving revision 1.118
diff -u -b -r1.118 mercury_wrapper.c
--- mercury_wrapper.c	18 Mar 2003 16:38:13 -0000	1.118
+++ mercury_wrapper.c	10 Apr 2003 05:46:15 -0000
@@ -341,7 +341,7 @@
 static	void	process_options(int argc, char **argv);
 static	void	usage(void);
 
-#ifdef MEASURE_REGISTER_USAGE
+#ifdef MR_MEASURE_REGISTER_USAGE
 static	void	print_register_usage_counts(void);
 #endif
 #ifdef MR_TYPE_CTOR_STATS
@@ -1429,7 +1429,7 @@
 	}
 #endif
 
-#ifdef MEASURE_REGISTER_USAGE
+#ifdef MR_MEASURE_REGISTER_USAGE
 	printf("\n");
 	print_register_usage_counts();
 #endif
@@ -1558,7 +1558,7 @@
 
 #endif
 
-#ifdef MEASURE_REGISTER_USAGE
+#ifdef MR_MEASURE_REGISTER_USAGE
 static void 
 print_register_usage_counts(void)
 {
cvs diff: Diffing GETOPT
cvs diff: Diffing machdeps
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list