Class CodeLocation

  • All Implemented Interfaces:
    java.lang.Comparable<CodeLocation>

    public class CodeLocation
    extends java.lang.Object
    implements java.lang.Comparable<CodeLocation>
    a reference to a specific instruction location in a given BBlock
    • Field Detail

      • block

        private BBlock block
        the basic block containing the instruction
      • instructionIdx

        private int instructionIdx
        the index of the instruction in the basic block's instruction sequence
    • Constructor Detail

      • CodeLocation

        public CodeLocation​(BBlock block,
                            int instructionIdx)
    • Method Detail

      • getBlock

        public BBlock getBlock()
      • getBlockIdx

        public int getBlockIdx()
      • getInstructionIdx

        public int getInstructionIdx()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(CodeLocation loc)
        Specified by:
        compareTo in interface java.lang.Comparable<CodeLocation>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object