This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
writing to a dump after a pass
- From: ranjith kumar <ranjit_kumar_b4u at yahoo dot co dot uk>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 22 Jul 2007 18:42:55 +0100 (BST)
- Subject: writing to a dump after a pass
Hi,
Vectorization is a pass called from
tree_vectorize() function and enabled by
-ftree-vectorize flag.
During that pass it prints information(related to
vectorization) to a "*.c.*vect" file.
After that pass it prints entire program to
"*.c.*vect" file. I want to see how it prints the
entire program. In which file gcc prints entire
program to "*.c.*vect"???
Actually my problem is this:
1)I can print all statements by
FOR_EACH_BB (bb)
print_generic_stmt(vect_dump,bb->stmt_list,0);
2)I can print all statements which defines PHI nodes
by
FOR_EACH_BB (bb)
for (phi = phi_nodes (bb); phi; phi = PHI_CHAIN (phi))
print_generic_expr (vect_dump, phi, TDF_SLIM);
3) But PHI node statements may exist between ordinary
statements. ie) PHI nose statements and ordinary
statements are intermixed inside a basic block.So how
to print all statements in a basic block with correct
order???
Thanks in advance.
___________________________________________________________
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html