Package iota

Class NHirPhiFunction


class NHirPhiFunction extends NHirInstruction
Representation of a phi function.
  • Field Details

    • args

      public ArrayList<NHirInstruction> args
      Function arguments.
    • index

      public int index
      Index of the variable to which the function is bound (-1 if there is no variable associated with the function).
  • Constructor Details

    • NHirPhiFunction

      public NHirPhiFunction(NBasicBlock block, int id, ArrayList<NHirInstruction> args, int index)
      Constructs an NHirPhiFunction object.
      Parameters:
      block - enclosing basic block.
      id - instruction id.
      args - function arguments.
      index - index of the variable to which the function is bound.
  • Method Details

    • toLir

      public NLirInstruction toLir()
      Converts and returns a low-level representation (LIR) of this instruction.
      Specified by:
      toLir in class NHirInstruction
      Returns:
      the LIR instruction corresponding to this instruction.
    • toString

      public String toString()
      Returns a string representation of this instruction.
      Overrides:
      toString in class NHirInstruction
      Returns:
      a string representation of this instruction.