diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-06 21:53:35 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-06 21:53:35 +0000 |
commit | 0ef84e3b6536aac0854c6538d6a46b6c587d94b6 (patch) | |
tree | 9b0fedc22b2799157436b5c9bade37493464faf5 /gcc/graphite-ppl.h | |
parent | 2d6fe479ffe67598e38a1b89be0913544cf2f549 (diff) | |
download | gcc-0ef84e3b6536aac0854c6538d6a46b6c587d94b6.tar.gz |
Replace Value with mpz_t
2010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
* graphite-blocking.c
(pbb_strip_mine_profitable_p): Replace Value with mpz_t.
* graphite-clast-to-gimple.c
(clast_to_gcc_expression): Same.
(precision_for_value): Same.
(precision_for_interval): Same.
(gcc_type_for_interval): Same.
(graphite_create_new_guard): Same.
(compute_bounds_for_level): Same.
(graphite_create_new_loop_guard): Same.
* graphite-interchange.c
(build_linearized_memory_access): Same.
(pdr_stride_in_loop): Same.
(memory_strides_in_loop_1): Same.
(memory_strides_in_loop): Same.
(extend_scattering): Same.
(psct_scattering_dim_for_loop_depth): Same.
(pbb_number_of_iterations): Same.
* graphite-poly.h
(debug_iteration_domains): Same.
* graphite-ppl.c
(new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
(ppl_set_inhomogeneous_gmp): Same.
(ppl_strip_loop): Same.
(ppl_lexico_compare_linear_expressions): Same.
(ppl_read_polyhedron_matrix): Same.
(ppl_max_for_le_pointset): Same.
* graphite-ppl.h
(ppl_read_polyhedron_matrix): Same.
(tree_int_to_gmp): Same.
(gmp_cst_to_tree): Same.
(ppl_set_inhomogeneous): Same.
(ppl_set_inhomogeneous_tree): Same.
(ppl_set_coef): Same.
(ppl_set_coef_tree): Same.
* graphite-sese-to-poly.c
(build_pbb_scattering_polyhedrons): Same.
(build_scop_scattering): Same.
(scan_tree_for_params_right_scev): Same.
(scan_tree_for_params): Same.
(find_params_in_bb): Same.
(find_scop_parameters): Same.
(add_upper_bounds_from_estimated_nit): Same.
(build_loop_iteration_domains): Same.
(add_condition_to_domain): Same.
(pdr_add_memory_accesses): Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159133 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-ppl.h')
-rw-r--r-- | gcc/graphite-ppl.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/graphite-ppl.h b/gcc/graphite-ppl.h index f5ab2f1acaf..6d5e09dcafd 100644 --- a/gcc/graphite-ppl.h +++ b/gcc/graphite-ppl.h @@ -44,19 +44,19 @@ void ppl_read_polyhedron_matrix (ppl_Polyhedron_t *, FILE *); void ppl_insert_dimensions (ppl_Polyhedron_t, int, int); void ppl_insert_dimensions_pointset (ppl_Pointset_Powerset_C_Polyhedron_t, int, int); -void ppl_set_inhomogeneous_gmp (ppl_Linear_Expression_t, Value); -void ppl_set_coef_gmp (ppl_Linear_Expression_t, ppl_dimension_type, Value); +void ppl_set_inhomogeneous_gmp (ppl_Linear_Expression_t, mpz_t); +void ppl_set_coef_gmp (ppl_Linear_Expression_t, ppl_dimension_type, mpz_t); void ppl_max_for_le_pointset (ppl_Pointset_Powerset_C_Polyhedron_t, - ppl_Linear_Expression_t, Value); + ppl_Linear_Expression_t, mpz_t); void ppl_min_for_le_pointset (ppl_Pointset_Powerset_C_Polyhedron_t, - ppl_Linear_Expression_t, Value); + ppl_Linear_Expression_t, mpz_t); ppl_Constraint_t ppl_build_relation (int, int, int, int, enum ppl_enum_Constraint_Type); /* Assigns to RES the value of the INTEGER_CST T. */ static inline void -tree_int_to_gmp (tree t, Value res) +tree_int_to_gmp (tree t, mpz_t res) { double_int di = tree_to_double_int (t); mpz_set_double_int (res, di, TYPE_UNSIGNED (TREE_TYPE (t))); @@ -65,10 +65,10 @@ tree_int_to_gmp (tree t, Value res) /* Converts a GMP constant VAL to a tree and returns it. */ static inline tree -gmp_cst_to_tree (tree type, Value val) +gmp_cst_to_tree (tree type, mpz_t val) { tree t = type ? type : integer_type_node; - Value tmp; + mpz_t tmp; double_int di; mpz_init (tmp); @@ -84,7 +84,7 @@ gmp_cst_to_tree (tree type, Value val) static inline void ppl_set_inhomogeneous (ppl_Linear_Expression_t e, int x) { - Value v; + mpz_t v; mpz_init (v); mpz_set_si (v, x); ppl_set_inhomogeneous_gmp (e, v); @@ -96,7 +96,7 @@ ppl_set_inhomogeneous (ppl_Linear_Expression_t e, int x) static inline void ppl_set_inhomogeneous_tree (ppl_Linear_Expression_t e, tree x) { - Value v; + mpz_t v; mpz_init (v); tree_int_to_gmp (x, v); ppl_set_inhomogeneous_gmp (e, v); @@ -108,7 +108,7 @@ ppl_set_inhomogeneous_tree (ppl_Linear_Expression_t e, tree x) static inline void ppl_set_coef (ppl_Linear_Expression_t e, ppl_dimension_type i, int x) { - Value v; + mpz_t v; mpz_init (v); mpz_set_si (v, x); ppl_set_coef_gmp (e, i, v); @@ -120,7 +120,7 @@ ppl_set_coef (ppl_Linear_Expression_t e, ppl_dimension_type i, int x) static inline void ppl_set_coef_tree (ppl_Linear_Expression_t e, ppl_dimension_type i, tree x) { - Value v; + mpz_t v; mpz_init (v); tree_int_to_gmp (x, v); ppl_set_coef_gmp (e, i, v); @@ -130,7 +130,7 @@ ppl_set_coef_tree (ppl_Linear_Expression_t e, ppl_dimension_type i, tree x) /* Sets RES to the max of V1 and V2. */ static inline void -value_max (Value res, Value v1, Value v2) +value_max (mpz_t res, mpz_t v1, mpz_t v2) { if (mpz_cmp (v1, v2) < 0) mpz_set (res, v2); |