Class SDGActualInNode


  • public class SDGActualInNode
    extends PDGNode
    SDG node for one actual argument passed at a call site.
    • Constructor Detail

      • SDGActualInNode

        public SDGActualInNode​(int id,
                               int parameterIndex,
                               Value actualValue,
                               IRBlock block)
        Creates an actual-in node; the owning call node is set separately.
        Parameters:
        id - the node id
        parameterIndex - the zero-based argument position
        actualValue - the value passed at the call site
        block - the block holding the call
    • Method Detail

      • getCallNode

        public SDGCallNode getCallNode()
        Returns:
        the call node
      • setCallNode

        public void setCallNode​(SDGCallNode callNode)
        Links this node back to the call site that owns it.
        Parameters:
        callNode - the owning call node
      • getParameterIndex

        public int getParameterIndex()
        Returns:
        the parameter index
      • getActualValue

        public Value getActualValue()
        Returns:
        the actual value
      • getLabel

        public String getLabel()
        Specified by:
        getLabel in class PDGNode
        Returns:
        a short human-readable description of what this node represents
      • getDefinedValue

        public SSAValue getDefinedValue()
        Specified by:
        getDefinedValue in class PDGNode
        Returns:
        the value this node defines, or null if it defines none
      • isSSAValue

        public boolean isSSAValue()
        Returns:
        true if the actual argument is an SSA value rather than a constant
      • getActualSSAValue

        public SSAValue getActualSSAValue()
        Narrows the actual argument to an SSA value.
        Returns:
        the SSA value, or null if the argument is not one
      • getParameterName

        public String getParameterName()
        Names the argument for display, falling back to argN when the value has no name.
        Returns:
        the display name