Class ConstructorPcodeTemplate

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public class ConstructorPcodeTemplate
    extends java.lang.Object
    See Also:
    Serialized Form
    • Constructor Detail

      • ConstructorPcodeTemplate

        public ConstructorPcodeTemplate()
    • Method Detail

      • trimToSize

        public void trimToSize()
      • optimize

        public void optimize()
        The default pcode generated for a constructor is typically not very efficient. For example, for an add instruction, we might generate something like tmp1 = LOAD register_space register1 tmp2 = LOAD register_space register2 tmp3 = ADD tmp1 tmp2 STORE register_space register3 tmp3 This routine marks opcodes and varnodes as potentially omitable, which allows us to generate much simpler pcode whenever there are no dynamic references involved. In the case above we would replace the 4 pcode ops above with a single pcode op: register3 = ADD register1 register2
      • getFlowFlags

        public int getFlowFlags()
      • getPcode

        public Handle getPcode​(java.util.ArrayList<PcodeOp> pcode,
                               Position position,
                               int off,
                               java.util.ArrayList<PcodeOp> delayPcode)
                        throws java.lang.Exception
        Method getPcode. Recursive pcode generation method.
        pcode - - current list of pcode instructions to which we will append new instructions
        position -
        off -
        delayPcode - - pcode for instruction(s) in delay slot
        HandleTemplate - handle for the result of this constructors pcode
      • delaySlotDepth

        public int delaySlotDepth()