Bug 40211 - 13.2 SSA Operands needs to be updated for tuples
13.2 SSA Operands needs to be updated for tuples
Status: UNCONFIRMED
Product: gcc
Classification: Unclassified
Component: tree-optimization
4.5.0
: P3 normal
: ---
Assigned To: Not yet assigned to anyone
: documentation
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-20 22:24 UTC by Andrew Pinski
Modified: 2009-05-20 22:24 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2009-05-20 22:24:43 UTC
While helping a new developer here at Sony, I noticed that the "13.2 SSA Operands" section in the GCC's internals manual still refers to statements that were tree types.
For an example:
If you wish to iterate over some or all operands, use the FOR_EACH_SSA_{USE,DEF,TREE}_OPERAND iterator. For example, to print all the operands for a statement:

     void
     print_ops (tree stmt)
     {
       ssa_op_iter;
       tree var;
     
       FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_ALL_OPERANDS)
         print_generic_expr (stderr, var, TDF_SLIM);
     }

That refers to tree statement rather than gimple_stmt.
There are more examples in this section which needs to be updated too.