@code{GIMPLE_PHI} - GNU Compiler Collection (GCC) Internals
Description: GNU Compiler Collection (GCC) Internals

Next: <code>GIMPLE_RESX</code>, Previous: <code>GIMPLE_OMP_SINGLE</code>, Up: Tuple specific accessors

#### 12.7.23 `GIMPLE_PHI`

— GIMPLE function: gimple make_phi_node (tree var, int len)

> Build a `PHI` node with len argument slots for variable var.

— GIMPLE function: unsigned gimple_phi_capacity (gimple g)

> Return the maximum number of arguments supported by `GIMPLE_PHI` `G`.

— GIMPLE function: unsigned gimple_phi_num_args (gimple g)

> Return the number of arguments in `GIMPLE_PHI` `G`. This must always be exactly the number of incoming edges for the basic block holding `G`.

— GIMPLE function: tree gimple_phi_result (gimple g)

> Return the `SSA` name created by `GIMPLE_PHI` `G`.

— GIMPLE function: tree * gimple_phi_result_ptr (gimple g)

> Return a pointer to the `SSA` name created by `GIMPLE_PHI` `G`.

— GIMPLE function: void gimple_phi_set_result (gimple g, tree result)

> Set `RESULT` to be the `SSA` name created by `GIMPLE_PHI` `G`.

— GIMPLE function: struct phi_arg_d * gimple_phi_arg (gimple g, index)

> Return the `PHI` argument corresponding to incoming edge `INDEX` for `GIMPLE_PHI` `G`.

— GIMPLE function: void gimple_phi_set_arg (gimple g, index, struct phi_arg_d * phiarg)

> Set `PHIARG` to be the argument corresponding to incoming edge `INDEX` for `GIMPLE_PHI` `G`.