Next: <code>GIMPLE_TRY</code>, Previous: <code>GIMPLE_RETURN</code>, Up: Tuple specific accessors
GIMPLE_SWITCH
Build a
GIMPLE_SWITCH
statement.NLABELS
are the number of labels excluding the default label. The default label is passed inDEFAULT_LABEL
. The rest of the arguments are trees representing the labels. Each label is a tree of codeCASE_LABEL_EXPR
.
VEC
(tree,heap) *args)This function is an alternate way of building
GIMPLE_SWITCH
statements.INDEX
andDEFAULT_LABEL
are as in gimple_build_switch.ARGS
is a vector ofCASE_LABEL_EXPR
trees that contain the labels.
Return the number of labels associated with the switch statement
G
.
Set
NLABELS
to be the number of labels for the switch statementG
.
Return the index variable used by the switch statement
G
.
Set
INDEX
to be the index variable for switch statementG
.
Return the label numbered
INDEX
. The default label is 0, followed by any labels in a switch statement.
Set the label number
INDEX
toLABEL
. 0 is always the default label.