12.11 Statement and operand traversals
There are two functions available for walking statements and
accordingly, and a third function for walking the operands in a
This function is used to walk the current statement in
GSI, optionally using traversal state stored in
NULL, no state is kept during the traversal.
CALLBACK_STMTis called. If
CALLBACK_STMTreturns true, it means that the callback function has handled all the operands of the statement and it is not necessary to walk its operands.
NULLor it returns false,
CALLBACK_OPis called on each operand of the statement via
NULLfor any operand, the remaining operands are not scanned.
The return value is that returned by the last call to
Use this function to walk the operands of statement
STMT. Every operand is walked via
walk_treewith optional state information in
CALLBACK_OPis called on each operand of
walk_tree. Additional parameters to
walk_treemust be stored in
WI. For each operand
walk_treeis called as:walk_tree (&
NULLfor an operand, the remaining operands are not scanned. The return value is that returned by the last call to
This function walks all the statements in the sequence
walk_gimple_stmton each one.
WIis as in
NULL, the walk is stopped and the value returned. Otherwise, all the statements are walked and