This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to access structure information from "pass_vectorize"
- From: Swati Rathi <swatirathi at cse dot iitb dot ac dot in>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 19 Jan 2014 22:31:49 +0530
- Subject: How to access structure information from "pass_vectorize"
- Authentication-results: sourceware.org; auth=none
We are writing a GIMPLE pass and would like to use some information
computed in
pass_vectorize. However, we are not able to use the data structures
which gets populated in pass_vectorize
because the information is not made available across passes.
In particular, we wish to access the structures "stmt_vec_info" and
"data_reference".
How do we access this information? Should we invoke pass_vectorize as a
sub-pass of our pass? Should
we explicitly call the execute function of pass_vectorize in our pass?
Or should we modify pass_vectorize
code and make a deep copy in a global variable? Is there any other way
of getting this information?