diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-06 21:53:29 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-06 21:53:29 +0000 |
commit | 2d6fe479ffe67598e38a1b89be0913544cf2f549 (patch) | |
tree | 139fa3121690e6edcefc6c130c481df1d4f69810 /gcc/graphite-ppl.h | |
parent | 6fe110773dc4e0ff861a8e05ab53ead156686b35 (diff) | |
download | gcc-2d6fe479ffe67598e38a1b89be0913544cf2f549.tar.gz |
Resolve CLooG's value_* macros to their respective mpz_* counterparts.
2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
* graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
CLooG's value_* macros to their respective mpz_* counterparts.
* graphite-clast-to-gimple.c (clast_to_gcc_expression): 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.
(1st_interchange_profitable_p): Same.
* graphite-poly.c (extend_scattering): Same.
(psct_scattering_dim_for_loop_depth): Same.
(pbb_number_of_iterations): Same.
(pbb_number_of_iterations_at_time): Same.
* graphite-poly.h (new_1st_loop): Same.
* graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
(oppose_constraint): Same.
(insert_constraint_into_matrix): Same.
(ppl_set_inhomogeneous_gmp): Same.
(ppl_set_coef_gmp): Same.
(ppl_strip_loop): Same.
(ppl_lexico_compare_linear_expressions): Same.
(ppl_max_for_le_pointset): Same.
(ppl_min_for_le_pointset): Same.
(ppl_build_realtion): Same.
* graphite-ppl.h (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.
(add_value_to_dim): Same.
(scan_tree_for_params_right_scev): Same.
(scan_tree_for_params_int): 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.
(create_linear_expr_from_tree): Same.
(add_condition_to_domain): Same.
(pdr_add_memory_accesses): Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159132 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-ppl.h')
-rw-r--r-- | gcc/graphite-ppl.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/graphite-ppl.h b/gcc/graphite-ppl.h index c14d61c370b..f5ab2f1acaf 100644 --- a/gcc/graphite-ppl.h +++ b/gcc/graphite-ppl.h @@ -71,10 +71,10 @@ gmp_cst_to_tree (tree type, Value val) Value tmp; double_int di; - value_init (tmp); - value_assign (tmp, val); + mpz_init (tmp); + mpz_set (tmp, val); di = mpz_get_double_int (t, tmp, true); - value_clear (tmp); + mpz_clear (tmp); return double_int_to_tree (t, di); } @@ -85,10 +85,10 @@ static inline void ppl_set_inhomogeneous (ppl_Linear_Expression_t e, int x) { Value v; - value_init (v); - value_set_si (v, x); + mpz_init (v); + mpz_set_si (v, x); ppl_set_inhomogeneous_gmp (e, v); - value_clear (v); + mpz_clear (v); } /* Set the inhomogeneous term of E to the tree X. */ @@ -97,10 +97,10 @@ static inline void ppl_set_inhomogeneous_tree (ppl_Linear_Expression_t e, tree x) { Value v; - value_init (v); + mpz_init (v); tree_int_to_gmp (x, v); ppl_set_inhomogeneous_gmp (e, v); - value_clear (v); + mpz_clear (v); } /* Set E[I] to integer X. */ @@ -109,10 +109,10 @@ static inline void ppl_set_coef (ppl_Linear_Expression_t e, ppl_dimension_type i, int x) { Value v; - value_init (v); - value_set_si (v, x); + mpz_init (v); + mpz_set_si (v, x); ppl_set_coef_gmp (e, i, v); - value_clear (v); + mpz_clear (v); } /* Set E[I] to tree X. */ @@ -121,10 +121,10 @@ static inline void ppl_set_coef_tree (ppl_Linear_Expression_t e, ppl_dimension_type i, tree x) { Value v; - value_init (v); + mpz_init (v); tree_int_to_gmp (x, v); ppl_set_coef_gmp (e, i, v); - value_clear (v); + mpz_clear (v); } /* Sets RES to the max of V1 and V2. */ @@ -132,9 +132,9 @@ ppl_set_coef_tree (ppl_Linear_Expression_t e, ppl_dimension_type i, tree x) static inline void value_max (Value res, Value v1, Value v2) { - if (value_compare (v1, v2) < 0) - value_assign (res, v2); - value_assign (res, v1); + if (mpz_cmp (v1, v2) < 0) + mpz_set (res, v2); + mpz_set (res, v1); } /* Builds a new identity map for dimension DIM. */ |