Class AbstractBlockVisitor

    • Constructor Detail

      • AbstractBlockVisitor

        public AbstractBlockVisitor()
    • Method Detail

      • process

        public void process​(MethodEntry method)
                     throws IOException
        Processes the given method by lifting to SSA and visiting its blocks and instructions.
        Specified by:
        process in interface Visitor<MethodEntry>
        Parameters:
        method - the method entry to process
        Throws:
        IOException - if an I/O error occurs during processing
      • visitBlock

        public void visitBlock​(IRBlock block)
        Visits an IR block.
        Parameters:
        block - the block to visit
      • visitPhi

        public void visitPhi​(PhiInstruction phi)
        Visits a phi instruction.
        Parameters:
        phi - the phi instruction to visit
      • visitInstruction

        public void visitInstruction​(IRInstruction instruction)
        Visits an IR instruction.
        Parameters:
        instruction - the instruction to visit
      • getIRMethod

        public IRMethod getIRMethod()
        Gets the current IR method being visited.
        Returns:
        the IR method
      • getMethod

        public MethodEntry getMethod()
        Gets the source method entry.
        Returns:
        the method entry