diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2005-05-10 14:50:35 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-05-10 14:50:35 +0000 |
commit | 9cbb7989ef4aecb7cc18400bbfba432fad279471 (patch) | |
tree | c31d8bba84ef62037ce64656b15511e9c7ed39b6 /gcc/tree-data-ref.h | |
parent | 30dc60c78c8b91da22d56f64847c2ec6f6029c4a (diff) | |
download | gcc-9cbb7989ef4aecb7cc18400bbfba432fad279471.zip gcc-9cbb7989ef4aecb7cc18400bbfba432fad279471.tar.gz gcc-9cbb7989ef4aecb7cc18400bbfba432fad279471.tar.bz2 |
tree-data-ref.c (analyze_array_indexes, [...]): Use VEC instead of VARRAY.
* tree-data-ref.c (analyze_array_indexes, analyze_array,
init_data_ref, access_functions_are_affine_or_constant_p,
free_data_refs): Use VEC instead of VARRAY.
* tree-data-ref.h (data_reference): Change the type of
access_fns to VEC(tree,gc)*.
(DR_ACCESS_FN, DR_NUM_DIMENSIONS): Use VEC instead of VARRAY.
From-SVN: r99517
Diffstat (limited to 'gcc/tree-data-ref.h')
-rw-r--r-- | gcc/tree-data-ref.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-data-ref.h b/gcc/tree-data-ref.h index d9b7d59..66d6644 100644 --- a/gcc/tree-data-ref.h +++ b/gcc/tree-data-ref.h @@ -36,7 +36,7 @@ struct data_reference tree base_name; /* A list of chrecs. */ - varray_type access_fns; + VEC(tree,heap) *access_fns; /* Auxiliary info specific to a pass. */ int aux; @@ -50,8 +50,8 @@ struct data_reference #define DR_REF(DR) DR->ref #define DR_BASE_NAME(DR) DR->base_name #define DR_ACCESS_FNS(DR) DR->access_fns -#define DR_ACCESS_FN(DR, I) VARRAY_TREE (DR_ACCESS_FNS (DR), I) -#define DR_NUM_DIMENSIONS(DR) VARRAY_ACTIVE_SIZE (DR_ACCESS_FNS (DR)) +#define DR_ACCESS_FN(DR, I) VEC_index (tree, DR_ACCESS_FNS (DR), I) +#define DR_NUM_DIMENSIONS(DR) VEC_length (tree, DR_ACCESS_FNS (DR)) #define DR_IS_READ(DR) DR->is_read enum data_dependence_direction { |