Commit c498b9b9 by Sebastian Pop Committed by Sebastian Pop

Add cloog_checksum.

2010-09-09  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-poly.c (cloog_checksum): New.
	* graphite-poly.h (cloog_checksum): Declared.

From-SVN: r164803
parent 26ccb556
2010-09-30 Sebastian Pop <sebastian.pop@amd.com> 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
* graphite-poly.c (cloog_checksum): New.
* graphite-poly.h (cloog_checksum): Declared.
2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
* graphite-poly.c (pbb_number_of_iterations): Removed. * graphite-poly.c (pbb_number_of_iterations): Removed.
(pbb_number_of_iterations_at_time): Correctly compute the number (pbb_number_of_iterations_at_time): Correctly compute the number
of iterations in the transformed loop. of iterations in the transformed loop.
2010-09-09 Sebastian Pop <sebastian.pop@amd.com> 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
* graphite-poly.c (cloog_checksum): New.
* graphite-poly.h (cloog_checksum): Declared.
2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
* graphite-poly.c (pbb_number_of_iterations): Removed. * graphite-poly.c (pbb_number_of_iterations): Removed.
(pbb_number_of_iterations_at_time): Correctly compute the number (pbb_number_of_iterations_at_time): Correctly compute the number
of iterations in the transformed loop. of iterations in the transformed loop.
......
...@@ -1913,5 +1913,23 @@ dot_lst (lst_p lst) ...@@ -1913,5 +1913,23 @@ dot_lst (lst_p lst)
#endif #endif
} }
/* Computes a checksum for the code generated by CLooG for SCOP. */
DEBUG_FUNCTION void
cloog_checksum (scop_p scop ATTRIBUTE_UNUSED)
{
/* When debugging, enable the following code. This cannot be used
in production compilers because it calls "system". */
#if 0
FILE *stream = fopen ("/tmp/scop.cloog", "w");
gcc_assert (stream);
print_cloog (stream, scop, 0);
fclose (stream);
fputs ("\n", stdout);
system ("cloog -compilable 1 /tmp/scop.cloog > /tmp/scop.c ; gcc -O0 -g /tmp/scop.c -lm -o /tmp/scop; /tmp/scop | md5sum ");
#endif
}
#endif #endif
...@@ -1398,6 +1398,7 @@ extern int scop_max_loop_depth (scop_p); ...@@ -1398,6 +1398,7 @@ extern int scop_max_loop_depth (scop_p);
extern int unify_scattering_dimensions (scop_p); extern int unify_scattering_dimensions (scop_p);
extern bool apply_poly_transforms (scop_p); extern bool apply_poly_transforms (scop_p);
extern bool graphite_legal_transform (scop_p); extern bool graphite_legal_transform (scop_p);
extern void cloog_checksum (scop_p);
/* Set the region of SCOP to REGION. */ /* Set the region of SCOP to REGION. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment