Enum Class JitIndirectMemoryVar

java.lang.Object
java.lang.Enum<JitIndirectMemoryVar>
ghidra.pcode.emu.jit.var.JitIndirectMemoryVar
All Implemented Interfaces:
JitMemoryVar, JitVal, JitVar, Serializable, Comparable<JitIndirectMemoryVar>, Constable

public enum JitIndirectMemoryVar extends Enum<JitIndirectMemoryVar> implements JitMemoryVar
A dummy variable node representing an indirect memory access.

These are caused by PcodeOp.LOAD, since that is the only manner in which the JitDataFlowState can be accessed with a non-constant offset. However, the node is immediately dropped on the floor by JitDataFlowArithmetic.modAfterLoad(PcodeOp, AddressSpace, JitVal, JitVal), which instead places the JitLoadOp into the use-def graph. This just exists so we don't return null.

  • Enum Constant Details

  • Method Details

    • values

      public static JitIndirectMemoryVar[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JitIndirectMemoryVar valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • size

      public int size()
      Description copied from interface: JitVal
      The size in bytes.
      Specified by:
      size in interface JitVal
      Returns:
      the size
    • uses

      public List<JitVal.ValUse> uses()
      Description copied from interface: JitVal
      The list of uses.
      Specified by:
      uses in interface JitVal
      Returns:
      the uses
    • addUse

      public void addUse(JitOp op, int position)
      Description copied from interface: JitVal
      Add a use.

      In most cases, uses should be final, once this value node has been entered into the use-def graph. An exception deals with phi nodes, as this analysis occurs after each intra-block portion of the graph has been constructed. During inter-block analysis, additional uses will get recorded. Even further uses may be recorded uding op-use analysis, since it may generate more phi nodes.

      Specified by:
      addUse in interface JitVal
      Parameters:
      op - the operator node using this one
      position - the position of this value in the operator's input operands
    • removeUse

      public void removeUse(JitOp op, int position)
      Description copied from interface: JitVal
      Remove a use.
      Specified by:
      removeUse in interface JitVal
      Parameters:
      op - as in JitVal.addUse(JitOp, int)
      position - as in JitVal.addUse(JitOp, int)
      See Also:
    • id

      public int id()
      Description copied from interface: JitVar
      A unique id for this variable
      Specified by:
      id in interface JitVar
      Returns:
      the id
    • space

      public AddressSpace space()
      Description copied from interface: JitVar
      The address space of this variable.
      Specified by:
      space in interface JitVar
      Returns:
      the space