diff options
author | dorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-12 10:24:40 +0000 |
---|---|---|
committer | dorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-12 10:24:40 +0000 |
commit | 82f7261aab7d0d5fc4a606e256f7314ea3cbc024 (patch) | |
tree | 5d72892c65985445fdedf3d27a2ff1dcd4cd21ac /gcc/tree-vectorizer.h | |
parent | cf90761f40944e1b22e126d744e9e5c801b34ba9 (diff) | |
download | gcc-82f7261aab7d0d5fc4a606e256f7314ea3cbc024.tar.gz |
2005-02-13 Ira Rosen <irar@il.ibm.com>
* tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
to base_address.
* tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
stmt_vec_info.
(vect_get_base_and_offset): Always return an address.
(vect_create_addr_base_for_vector_ref): Remove treatment for
different data reference types.
(vect_compute_data_ref_alignment): Rename base to base_address in
stmt_vec_info. Get the object in order to force its alignment.
(vect_get_memtag_and_dr): Rename base to base_address in
stmt_vec_info. Extract the object for memtag analysis.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94930 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vectorizer.h')
-rw-r--r-- | gcc/tree-vectorizer.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gcc/tree-vectorizer.h b/gcc/tree-vectorizer.h index 3d540596b66..7876cb6d7cb 100644 --- a/gcc/tree-vectorizer.h +++ b/gcc/tree-vectorizer.h @@ -174,20 +174,25 @@ typedef struct _stmt_vec_info { tree memtag; /** The following fields are used to store the information about - data-reference. {base + initial_offset} is the first location accessed by - data-ref in the loop, and step is the stride of data-ref in the loop; + data-reference. {base_address + initial_offset} is the first location + accessed by data-ref in the loop, and step is the stride of data-ref in + the loop in bytes; e.g.: Example 1 Example 2 data-ref a[j].b[i][j] a + 4B (a is int*) - - base a a + + base_address &a a initial_offset j_0*D_j + i_0*D_i + C 4 step D_j 4 + data-reference structure info: + base_name a NULL + access_fn <access_fns of indexes of b> (0, +, 1) + **/ - /* The above base, offset and step. */ - tree base; + /* The above base_address, offset and step. */ + tree base_address; tree initial_offset; tree step; @@ -208,7 +213,7 @@ typedef struct _stmt_vec_info { #define STMT_VINFO_VEC_STMT(S) (S)->vectorized_stmt #define STMT_VINFO_DATA_REF(S) (S)->data_ref_info #define STMT_VINFO_MEMTAG(S) (S)->memtag -#define STMT_VINFO_VECT_DR_BASE(S) (S)->base +#define STMT_VINFO_VECT_DR_BASE_ADDRESS(S)(S)->base_address #define STMT_VINFO_VECT_INIT_OFFSET(S) (S)->initial_offset #define STMT_VINFO_VECT_STEP(S) (S)->step #define STMT_VINFO_VECT_BASE_ALIGNED_P(S) (S)->base_aligned_p |