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
This commit is contained in:
Sebastian Pop 2010-09-30 21:20:37 +00:00 committed by Sebastian Pop
parent 26ccb556d8
commit c498b9b997
4 changed files with 29 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -1,3 +1,8 @@
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.

View File

@ -1913,5 +1913,23 @@ dot_lst (lst_p lst)
#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

View File

@ -1398,6 +1398,7 @@ extern int scop_max_loop_depth (scop_p);
extern int unify_scattering_dimensions (scop_p);
extern bool apply_poly_transforms (scop_p);
extern bool graphite_legal_transform (scop_p);
extern void cloog_checksum (scop_p);
/* Set the region of SCOP to REGION. */