scala.tools.nsc.backend.icode.BasicBlocks

BasicBlock

class BasicBlock extends ProgramPoint[BasicBlock] with Seq[Instruction]

This class represents a basic block. Each basic block contains a list of instructions that are either executed all, or none. No jumps to/from the "middle" of the basic block are allowed (modulo exceptions).

Source
BasicBlocks.scala
Linear Supertypes
Seq[Instruction], SeqLike[Instruction, Seq[Instruction]], GenSeq[Instruction], GenSeqLike[Instruction, Seq[Instruction]], Iterable[Instruction], IterableLike[Instruction, Seq[Instruction]], Equals, GenIterable[Instruction], GenIterableLike[Instruction, Seq[Instruction]], Traversable[Instruction], GenTraversable[Instruction], GenericTraversableTemplate[Instruction, Seq], TraversableLike[Instruction, Seq[Instruction]], GenTraversableLike[Instruction, Seq[Instruction]], Parallelizable[Instruction, ParSeq[Instruction]], TraversableOnce[Instruction], GenTraversableOnce[Instruction], FilterMonadic[Instruction, Seq[Instruction]], HasNewBuilder[Instruction, Seq[Instruction]], PartialFunction[Int, Instruction], (Int) ⇒ Instruction, ProgramPoint[BasicBlock], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. BasicBlock
  2. Seq
  3. SeqLike
  4. GenSeq
  5. GenSeqLike
  6. Iterable
  7. IterableLike
  8. Equals
  9. GenIterable
  10. GenIterableLike
  11. Traversable
  12. GenTraversable
  13. GenericTraversableTemplate
  14. TraversableLike
  15. GenTraversableLike
  16. Parallelizable
  17. TraversableOnce
  18. GenTraversableOnce
  19. FilterMonadic
  20. HasNewBuilder
  21. PartialFunction
  22. Function1
  23. ProgramPoint
  24. AnyRef
  25. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BasicBlock (label: Int, method: IMethod)

Type Members

  1. type Self = Seq[Instruction]

    Attributes
    protected
    Definition Classes
    TraversableLike

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def ++ [B >: Instruction, That] (that: TraversableOnce[B])(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    TraversableLike
    Annotations
    @bridge()
  5. def ++ [B >: Instruction, That] (that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  6. def ++: [B >: Instruction, That] (that: Traversable[B])(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    TraversableLike
  7. def ++: [B >: Instruction, That] (that: TraversableOnce[B])(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    TraversableLike
  8. def +: [B >: Instruction, That] (elem: B)(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  9. def /: [B] (z: B)(op: (B, Instruction) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  10. def /:\ [A1 >: Instruction] (z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
  11. def :+ [B >: Instruction, That] (elem: B)(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  12. def :\ [B] (z: B)(op: (Instruction, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  13. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  14. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  15. def addString (b: StringBuilder): StringBuilder

    Definition Classes
    TraversableOnce
  16. def addString (b: StringBuilder, sep: String): StringBuilder

    Definition Classes
    TraversableOnce
  17. def addString (b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
    TraversableOnce
  18. def aggregate [B] (z: B)(seqop: (B, Instruction) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  19. def andThen [C] (k: (Instruction) ⇒ C): PartialFunction[Int, C]

    Definition Classes
    PartialFunction → Function1
  20. def apply (n: Int): Instruction

    Return the n-th instruction.

    Return the n-th instruction.

    Definition Classes
    BasicBlock → SeqLike → GenSeqLike → Function1
  21. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  22. def blockContents : String

  23. def canEqual (that: Any): Boolean

    Definition Classes
    IterableLike → Equals
  24. def clear (): Unit

  25. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. def close (): Unit

    Close the block

  27. def closeWith (instr: Instruction, pos: Position): Unit

  28. def closeWith (instr: Instruction): Unit

    do nothing if block is already closed

  29. def closed : Boolean

    Is this block closed?

  30. def closed_= (b: Boolean): Unit

  31. def code : Code

  32. def collect [B, That] (pf: PartialFunction[Instruction, B])(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  33. def collectFirst [B] (pf: PartialFunction[Instruction, B]): Option[B]

    Definition Classes
    TraversableOnce
  34. def combinations (n: Int): Iterator[Seq[Instruction]]

    Definition Classes
    SeqLike
  35. def companion : GenericCompanion[Seq]

    Definition Classes
    Seq → GenSeq → Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  36. def compose [A] (g: (A) ⇒ Int): (A) ⇒ Instruction

    Definition Classes
    Function1
  37. def contains (elem: Any): Boolean

    Definition Classes
    SeqLike
  38. def containsSlice [B] (that: Seq[B]): Boolean

    Definition Classes
    SeqLike
    Annotations
    @bridge()
  39. def containsSlice [B] (that: GenSeq[B]): Boolean

    Definition Classes
    SeqLike
  40. def copyToArray [B >: Instruction] (xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  41. def copyToArray [B >: Instruction] (xs: Array[B]): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  42. def copyToArray [B >: Instruction] (xs: Array[B], start: Int): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  43. def copyToBuffer [B >: Instruction] (dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  44. def corresponds [B] (that: Seq[B])(p: (Instruction, B) ⇒ Boolean): Boolean

    Definition Classes
    SeqLike
    Annotations
    @bridge()
  45. def corresponds [B] (that: GenSeq[B])(p: (Instruction, B) ⇒ Boolean): Boolean

    Definition Classes
    SeqLike → GenSeqLike
  46. def count (p: (Instruction) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  47. def diff [B >: Instruction] (that: Seq[B]): Seq[Instruction]

    Definition Classes
    SeqLike
    Annotations
    @bridge()
  48. def diff [B >: Instruction] (that: GenSeq[B]): Seq[Instruction]

    Definition Classes
    SeqLike → GenSeqLike
  49. def directSuccessors : List[BasicBlock]

  50. def distinct : Seq[Instruction]

    Definition Classes
    SeqLike → GenSeqLike
  51. def drop (n: Int): Seq[Instruction]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  52. def dropRight (n: Int): Seq[Instruction]

    Definition Classes
    IterableLike
  53. def dropWhile (p: (Instruction) ⇒ Boolean): Seq[Instruction]

    Definition Classes
    TraversableLike → GenTraversableLike
  54. def emit (instrs: Seq[Instruction]): Unit

  55. def emit (instr: Instruction, pos: Position): Unit

    Emitting does not set touched to true.

    Emitting does not set touched to true. During code generation this is a hotspot and setting the flag for each emit is a waste. Caching should happen only after a block is closed, which sets the DIRTYSUCCS flag.

  56. def emit (instr: Instruction): Unit

    Add a new instruction at the end of the block, using the same source position as the last emitted instruction

  57. def emitOnly (instrs: Instruction*): Unit

    The semantics of this are a little odd but it's designed to work seamlessly with the existing code.

    The semantics of this are a little odd but it's designed to work seamlessly with the existing code. It emits each supplied instruction, then closes the block. The odd part is that if the instruction has pos == NoPosition, it calls the 1-arg emit, but otherwise it calls the 2-arg emit. This way I could retain existing behavior exactly by calling setPos on any instruction using the two arg version which I wanted to include in a call to emitOnly.

  58. def endsWith [B] (that: Seq[B]): Boolean

    Definition Classes
    SeqLike
    Annotations
    @bridge()
  59. def endsWith [B] (that: GenSeq[B]): Boolean

    Definition Classes
    SeqLike → GenSeqLike
  60. def enterIgnoreMode (): Unit

    Enter ignore mode: new 'emit'ted instructions will not be added to this basic block.

    Enter ignore mode: new 'emit'ted instructions will not be added to this basic block. It makes the generation of THROW and RETURNs easier.

  61. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  62. def equals (other: Any): Boolean

    Definition Classes
    BasicBlock → GenSeqLike → Equals → AnyRef → Any
  63. def exceptionHandlerStart : Boolean

    Is this block the start block of an exception handler?

    Is this block the start block of an exception handler?

    Definition Classes
    BasicBlockProgramPoint
  64. def exceptionHandlerStart_= (b: Boolean): Unit

  65. def exceptionSuccessors : List[BasicBlock]

  66. def exceptionSuccessorsForBlock (block: BasicBlock): List[BasicBlock]

  67. def exists (p: (Instruction) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  68. def exitIgnoreMode (): Unit

  69. def filter (p: (Instruction) ⇒ Boolean): Seq[Instruction]

    Definition Classes
    TraversableLike → GenTraversableLike
  70. def filterNot (p: (Instruction) ⇒ Boolean): Seq[Instruction]

    Definition Classes
    TraversableLike → GenTraversableLike
  71. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  72. def find (p: (Instruction) ⇒ Boolean): Option[Instruction]

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  73. def firstInstruction : Instruction

  74. def flagsString : String

  75. def flatMap [B, That] (f: (Instruction) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  76. def flatten [B] (implicit asTraversable: (Instruction) ⇒ TraversableOnce[B]): Traversable[B]

    Definition Classes
    Traversable → GenericTraversableTemplate
    Annotations
    @bridge()
  77. def fold [A1 >: Instruction] (z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  78. def foldLeft [B] (z: B)(op: (B, Instruction) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  79. def foldRight [B] (z: B)(op: (Instruction, B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  80. def forall (p: (Instruction) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  81. def foreach [U] (f: (Instruction) ⇒ U): Unit

    Apply a function to all the instructions of the block.

    Apply a function to all the instructions of the block.

    Definition Classes
    BasicBlock → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  82. def fromList (is: List[Instruction]): Unit

  83. def fullString : String

  84. def genericBuilder [B] : Builder[B, Seq[B]]

    Definition Classes
    GenericTraversableTemplate
  85. def getArray : Array[Instruction]

    return the underlying array of instructions

  86. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  87. def groupBy [K] (f: (Instruction) ⇒ K): Map[K, Seq[Instruction]]

    Definition Classes
    TraversableLike → GenTraversableLike
  88. def grouped (size: Int): Iterator[Seq[Instruction]]

    Definition Classes
    IterableLike
  89. def hasDefiniteSize : Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  90. def hasFlag (flag: Int): Boolean

    Does this block have the given flag?

  91. def hashCode (): Int

    Definition Classes
    BasicBlock → GenSeqLike → AnyRef → Any
  92. def head : Instruction

    Definition Classes
    IterableLike → GenIterableLike → TraversableLike → GenTraversableLike
  93. def headOption : Option[Instruction]

    Definition Classes
    TraversableLike
  94. def ignore : Boolean

    When set, the emit methods will be ignored.

  95. def ignore_= (b: Boolean): Unit

  96. def indexOf (inst: Instruction): Int

    Return the index of inst.

    Return the index of inst. Uses reference equality. Returns -1 if not found.

  97. def indexOf [B >: Instruction] (elem: B, from: Int): Int

    Definition Classes
    GenSeqLike
  98. def indexOf [B >: Instruction] (elem: B): Int

    Definition Classes
    GenSeqLike
  99. def indexOfSlice [B >: Instruction] (that: Seq[B], from: Int): Int

    Definition Classes
    SeqLike
    Annotations
    @bridge()
  100. def indexOfSlice [B >: Instruction] (that: GenSeq[B], from: Int): Int

    Definition Classes
    SeqLike
  101. def indexOfSlice [B >: Instruction] (that: Seq[B]): Int

    Definition Classes
    SeqLike
    Annotations
    @bridge()
  102. def indexOfSlice [B >: Instruction] (that: GenSeq[B]): Int

    Definition Classes
    SeqLike
  103. def indexWhere (p: (Instruction) ⇒ Boolean, from: Int): Int

    Definition Classes
    SeqLike → GenSeqLike
  104. def indexWhere (p: (Instruction) ⇒ Boolean): Int

    Definition Classes
    GenSeqLike
  105. def indices : Range

    Definition Classes
    SeqLike
  106. def indirectExceptionSuccessors : List[BasicBlock]

    Return a list of successors for 'b' that come from exception handlers covering b's (non-exceptional) successors.

    Return a list of successors for 'b' that come from exception handlers covering b's (non-exceptional) successors. These exception handlers might not cover 'b' itself. This situation corresponds to an exception being thrown as the first thing of one of b's successors.

  107. def init : Seq[Instruction]

    Definition Classes
    TraversableLike
  108. def inits : Iterator[Seq[Instruction]]

    Definition Classes
    TraversableLike
  109. def insertAfter (idx: Int, is: List[Instruction]): Unit

    Insert instructions in 'is' immediately after index 'idx'.

  110. def intersect [B >: Instruction] (that: Seq[B]): Seq[Instruction]

    Definition Classes
    SeqLike
    Annotations
    @bridge()
  111. def intersect [B >: Instruction] (that: GenSeq[B]): Seq[Instruction]

    Definition Classes
    SeqLike → GenSeqLike
  112. def isDefinedAt (idx: Int): Boolean

    Definition Classes
    GenSeqLike
  113. def isEmpty : Boolean

    Definition Classes
    BasicBlock → IterableLike → GenIterableLike → GenericTraversableTemplate → TraversableLike → TraversableOnce → GenTraversableOnce
  114. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  115. def isTraversableAgain : Boolean

    Attributes
    final
    Definition Classes
    GenTraversableLike → GenTraversableOnce
  116. def iterator : Iterator[Instruction]

    Return an iterator over the instructions in this basic block.

    Return an iterator over the instructions in this basic block.

    Definition Classes
    BasicBlock → IterableLike → GenIterableLike
  117. val label : Int

  118. def last : Instruction

    Definition Classes
    TraversableLike
  119. def lastIndexOf [B >: Instruction] (elem: B, end: Int): Int

    Definition Classes
    GenSeqLike
  120. def lastIndexOf [B >: Instruction] (elem: B): Int

    Definition Classes
    GenSeqLike
  121. def lastIndexOfSlice [B >: Instruction] (that: Seq[B], end: Int): Int

    Definition Classes
    SeqLike
    Annotations
    @bridge()
  122. def lastIndexOfSlice [B >: Instruction] (that: GenSeq[B], end: Int): Int

    Definition Classes
    SeqLike
  123. def lastIndexOfSlice [B >: Instruction] (that: Seq[B]): Int

    Definition Classes
    SeqLike
    Annotations
    @bridge()
  124. def lastIndexOfSlice [B >: Instruction] (that: GenSeq[B]): Int

    Definition Classes
    SeqLike
  125. def lastIndexWhere (p: (Instruction) ⇒ Boolean, end: Int): Int

    Definition Classes
    SeqLike → GenSeqLike
  126. def lastIndexWhere (p: (Instruction) ⇒ Boolean): Int

    Definition Classes
    GenSeqLike
  127. def lastInstruction : Instruction

    Return the last instruction of this basic block.

  128. def lastOption : Option[Instruction]

    Definition Classes
    TraversableLike
  129. def length : Int

    The number of instructions in this basic block so far.

    The number of instructions in this basic block so far.

    Definition Classes
    BasicBlock → SeqLike → GenSeqLike
  130. def lengthCompare (len: Int): Int

    Definition Classes
    SeqLike
  131. def lift : (Int) ⇒ Option[Instruction]

    Definition Classes
    PartialFunction
  132. def loopHeader : Boolean

    Is this block the head of a while?

  133. def loopHeader_= (b: Boolean): Unit

  134. def map [B, That] (f: (Instruction) ⇒ B)(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  135. def max [B >: Instruction] (implicit cmp: Ordering[B]): Instruction

    Definition Classes
    TraversableOnce → GenTraversableOnce
  136. def maxBy [B] (f: (Instruction) ⇒ B)(implicit cmp: Ordering[B]): Instruction

    Definition Classes
    TraversableOnce → GenTraversableOnce
  137. val method : IMethod

  138. def min [B >: Instruction] (implicit cmp: Ordering[B]): Instruction

    Definition Classes
    TraversableOnce → GenTraversableOnce
  139. def minBy [B] (f: (Instruction) ⇒ B)(implicit cmp: Ordering[B]): Instruction

    Definition Classes
    TraversableOnce → GenTraversableOnce
  140. def mkString : String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  141. def mkString (sep: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  142. def mkString (start: String, sep: String, end: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  143. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  144. def newBuilder : Builder[Instruction, Seq[Instruction]]

    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  145. def nonEmpty : Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  146. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  147. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  148. def open (): Unit

  149. def orElse [A1 <: Int, B1 >: Instruction] (that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Definition Classes
    PartialFunction
  150. def padTo [B >: Instruction, That] (len: Int, elem: B)(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  151. def par : ParSeq[Instruction]

    Definition Classes
    Parallelizable
  152. def parCombiner : Combiner[Instruction, ParSeq[Instruction]]

    Attributes
    protected[this]
    Definition Classes
    SeqLike → TraversableLike → Parallelizable
  153. def partition (p: (Instruction) ⇒ Boolean): (Seq[Instruction], Seq[Instruction])

    Definition Classes
    TraversableLike → GenTraversableLike
  154. def patch [B >: Instruction, That] (from: Int, patch: Seq[B], replaced: Int)(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    SeqLike
    Annotations
    @bridge()
  155. def patch [B >: Instruction, That] (from: Int, patch: GenSeq[B], replaced: Int)(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  156. def permutations : Iterator[Seq[Instruction]]

    Definition Classes
    SeqLike
  157. def predContents : String

  158. def predecessors : List[BasicBlock]

    Returns the predecessors of this block.

    Returns the predecessors of this block.

    Definition Classes
    BasicBlockProgramPoint
  159. var preds : List[BasicBlock]

    Cached predecessors.

  160. def prefixLength (p: (Instruction) ⇒ Boolean): Int

    Definition Classes
    GenSeqLike
  161. def print (out: PrintStream): Unit

  162. def print (): Unit

  163. def product [B >: Instruction] (implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  164. def reduce [A1 >: Instruction] (op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  165. def reduceLeft [B >: Instruction] (op: (B, Instruction) ⇒ B): B

    Definition Classes
    TraversableOnce
  166. def reduceLeftOption [B >: Instruction] (op: (B, Instruction) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  167. def reduceOption [A1 >: Instruction] (op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  168. def reduceRight [B >: Instruction] (op: (Instruction, B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  169. def reduceRightOption [B >: Instruction] (op: (Instruction, B) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  170. def removeInstructionsAt (positions: Int*): Unit

    Removes instructions found at the given positions.

    Removes instructions found at the given positions.

    positions

    ...

  171. def removeLastInstruction (): Unit

    Remove the last instruction of this basic block.

    Remove the last instruction of this basic block. It is fast for an open block, but slower when the block is closed.

  172. def replaceInstruction (oldInstr: Instruction, is: List[Instruction]): Boolean

    Replaces oldInstr with is.

    Replaces oldInstr with is. It does not update the position field in the newly inserted instructions, so it behaves differently than the one-instruction versions of this function.

    is

    ..

    returns

    ..

  173. def replaceInstruction (oldInstr: Instruction, newInstr: Instruction): Boolean

    Replace the given instruction with the new one.

    Replace the given instruction with the new one. Returns true' if it actually changed something. It retains the position of the previous instruction.

  174. def replaceInstruction (pos: Int, instr: Instruction): Boolean

    Replace the instruction at the given position.

    Replace the instruction at the given position. Used by labels when they are anchored. It retains the position of the previous instruction.

  175. def repr : Seq[Instruction]

    Definition Classes
    TraversableLike → GenTraversableLike
  176. def reverse : Seq[Instruction]

    Definition Classes
    SeqLike → GenSeqLike
  177. def reverseIterator : Iterator[Instruction]

    Definition Classes
    SeqLike
  178. def reverseMap [B, That] (f: (Instruction) ⇒ B)(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  179. def reversed : List[Instruction]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  180. def sameElements [B >: Instruction] (that: Iterable[B]): Boolean

    Definition Classes
    IterableLike
    Annotations
    @bridge()
  181. def sameElements [B >: Instruction] (that: GenIterable[B]): Boolean

    Definition Classes
    IterableLike → GenIterableLike
  182. def scan [B >: Instruction, That] (z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  183. def scanLeft [B, That] (z: B)(op: (B, Instruction) ⇒ B)(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  184. def scanRight [B, That] (z: B)(op: (Instruction, B) ⇒ B)(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

  185. def segmentLength (p: (Instruction) ⇒ Boolean, from: Int): Int

    Definition Classes
    SeqLike → GenSeqLike
  186. def seq : Seq[Instruction]

    Definition Classes
    Seq → GenSeq → Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  187. def size : Int

    Definition Classes
    SeqLike → GenTraversableLike → TraversableOnce → GenTraversableOnce
  188. def slice (from: Int, until: Int): Seq[Instruction]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  189. def sliding [B >: Instruction] (size: Int, step: Int): Iterator[Seq[Instruction]]

    Definition Classes
    IterableLike
  190. def sliding [B >: Instruction] (size: Int): Iterator[Seq[Instruction]]

    Definition Classes
    IterableLike
  191. def sortBy [B] (f: (Instruction) ⇒ B)(implicit ord: Ordering[B]): Seq[Instruction]

    Definition Classes
    SeqLike
  192. def sortWith (lt: (Instruction, Instruction) ⇒ Boolean): Seq[Instruction]

    Definition Classes
    SeqLike
  193. def sorted [B >: Instruction] (implicit ord: Ordering[B]): Seq[Instruction]

    Definition Classes
    SeqLike
  194. def span (p: (Instruction) ⇒ Boolean): (Seq[Instruction], Seq[Instruction])

    Definition Classes
    TraversableLike → GenTraversableLike
  195. def splitAt (n: Int): (Seq[Instruction], Seq[Instruction])

    Definition Classes
    TraversableLike → GenTraversableLike
  196. def startsWith [B] (that: Seq[B], offset: Int): Boolean

    Definition Classes
    SeqLike
    Annotations
    @bridge()
  197. def startsWith [B] (that: GenSeq[B], offset: Int): Boolean

    Definition Classes
    SeqLike → GenSeqLike
  198. def startsWith [B] (that: Seq[B]): Boolean

    Definition Classes
    GenSeqLike
    Annotations
    @bridge()
  199. def startsWith [B] (that: GenSeq[B]): Boolean

    Definition Classes
    GenSeqLike
  200. def stringPrefix : String

    Definition Classes
    TraversableLike → GenTraversableLike
  201. def subst (map: Map[Instruction, Instruction]): Unit

    Replaces all instructions found in the map.

    Replaces all instructions found in the map.

    map

    ...

  202. def succContents : String

  203. def successors : List[BasicBlock]

    Definition Classes
    BasicBlockProgramPoint
  204. def sum [B >: Instruction] (implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  205. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  206. def tail : Seq[Instruction]

    Definition Classes
    TraversableLike → GenTraversableLike
  207. def tails : Iterator[Seq[Instruction]]

    Definition Classes
    TraversableLike
  208. def take (n: Int): Seq[Instruction]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  209. def takeRight (n: Int): Seq[Instruction]

    Definition Classes
    IterableLike
  210. def takeWhile (p: (Instruction) ⇒ Boolean): Seq[Instruction]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  211. def thisCollection : Seq[Instruction]

    Attributes
    protected[this]
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  212. def toArray [B >: Instruction] (implicit arg0: ClassManifest[B]): Array[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  213. def toBuffer [B >: Instruction] : Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  214. def toCollection (repr: Seq[Instruction]): Seq[Instruction]

    Attributes
    protected[this]
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  215. def toIndexedSeq [B >: Instruction] : IndexedSeq[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  216. def toIterable : Iterable[Instruction]

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  217. def toIterator : Iterator[Instruction]

    Definition Classes
    TraversableLike → GenTraversableOnce
  218. def toList : List[Instruction]

    Definition Classes
    BasicBlock → TraversableOnce → GenTraversableOnce
  219. def toMap [T, U] (implicit ev: <:<[Instruction, (T, U)]): Map[T, U]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  220. def toSeq : Seq[Instruction]

    Definition Classes
    SeqLike → GenSeqLike → TraversableOnce → GenTraversableOnce
  221. def toSet [B >: Instruction] : Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  222. def toStream : Stream[Instruction]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  223. def toString (): String

    Definition Classes
    BasicBlock → SeqLike → TraversableLike → Function1 → AnyRef → Any
  224. def toTraversable : Traversable[Instruction]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  225. def touched : Boolean

    Has this basic block been modified since the last call to 'successors'?

  226. def touched_= (b: Boolean): Unit

  227. def transpose [B] (implicit asTraversable: (Instruction) ⇒ TraversableOnce[B]): Traversable[Traversable[B]]

    Definition Classes
    Traversable → GenericTraversableTemplate
    Annotations
    @bridge()
  228. def union [B >: Instruction, That] (that: GenSeq[B])(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  229. def union [B >: Instruction, That] (that: Seq[B])(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    GenSeqLike
    Annotations
    @bridge()
  230. def unzip [A1, A2] (implicit asPair: (Instruction) ⇒ (A1, A2)): (Seq[A1], Seq[A2])

    Definition Classes
    GenericTraversableTemplate
  231. def unzip3 [A1, A2, A3] (implicit asTriple: (Instruction) ⇒ (A1, A2, A3)): (Seq[A1], Seq[A2], Seq[A3])

    Definition Classes
    GenericTraversableTemplate
  232. def updated [B >: Instruction, That] (index: Int, elem: B)(implicit bf: CanBuildFrom[Seq[Instruction], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  233. var varsInScope : Set[Local]

    Local variables that are in scope at entry of this basic block.

    Local variables that are in scope at entry of this basic block. Used for debugging information.

  234. def view (from: Int, until: Int): SeqView[Instruction, Seq[Instruction]]

    Definition Classes
    SeqLike → IterableLike → TraversableLike
  235. def view : SeqView[Instruction, Seq[Instruction]]

    Definition Classes
    SeqLike → IterableLike → TraversableLike
  236. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  237. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  238. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  239. def withFilter (p: (Instruction) ⇒ Boolean): FilterMonadic[Instruction, Seq[Instruction]]

    Definition Classes
    TraversableLike → FilterMonadic
  240. def zip [A1 >: Instruction, B, That] (that: Iterable[B])(implicit bf: CanBuildFrom[Seq[Instruction], (A1, B), That]): That

    Definition Classes
    IterableLike
    Annotations
    @bridge()
  241. def zip [A1 >: Instruction, B, That] (that: GenIterable[B])(implicit bf: CanBuildFrom[Seq[Instruction], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  242. def zipAll [B, A1 >: Instruction, That] (that: Iterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Seq[Instruction], (A1, B), That]): That

    Definition Classes
    IterableLike
    Annotations
    @bridge()
  243. def zipAll [B, A1 >: Instruction, That] (that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Seq[Instruction], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  244. def zipWithIndex [A1 >: Instruction, That] (implicit bf: CanBuildFrom[Seq[Instruction], (A1, Int), That]): That

    Definition Classes
    IterableLike → GenIterableLike

Deprecated Value Members

  1. def elements : Iterator[Instruction]

    Definition Classes
    IterableLike
    Annotations
    @deprecated
    Deprecated

    use iterator' instead

  2. def equalsWith [B] (that: Seq[B])(f: (Instruction, B) ⇒ Boolean): Boolean

    Definition Classes
    SeqLike
    Annotations
    @deprecated
    Deprecated

    use corresponds instead

  3. def findIndexOf (p: (Instruction) ⇒ Boolean): Int

    Definition Classes
    SeqLike
    Annotations
    @deprecated
    Deprecated

    Use indexWhere(p) instead.

  4. def findLastIndexOf (p: (Instruction) ⇒ Boolean): Int

    Definition Classes
    SeqLike
    Annotations
    @deprecated
    Deprecated

    use lastIndexWhere instead

  5. def first : Instruction

    Definition Classes
    IterableLike
    Annotations
    @deprecated
    Deprecated

    use head' instead

  6. def firstOption : Option[Instruction]

    Definition Classes
    IterableLike
    Annotations
    @deprecated
    Deprecated

    use headOption' instead

  7. def projection : SeqView[Instruction, Seq[Instruction]]

    Definition Classes
    SeqLike → IterableLike
    Annotations
    @deprecated
    Deprecated

    use view' instead

  8. def reversedElements : Iterator[Instruction]

    Definition Classes
    SeqLike
    Annotations
    @deprecated
    Deprecated

    use reverseIterator' instead

Inherited from Seq[Instruction]

Inherited from SeqLike[Instruction, Seq[Instruction]]

Inherited from GenSeq[Instruction]

Inherited from GenSeqLike[Instruction, Seq[Instruction]]

Inherited from Iterable[Instruction]

Inherited from IterableLike[Instruction, Seq[Instruction]]

Inherited from Equals

Inherited from GenIterable[Instruction]

Inherited from GenIterableLike[Instruction, Seq[Instruction]]

Inherited from Traversable[Instruction]

Inherited from GenTraversable[Instruction]

Inherited from GenericTraversableTemplate[Instruction, Seq]

Inherited from TraversableLike[Instruction, Seq[Instruction]]

Inherited from GenTraversableLike[Instruction, Seq[Instruction]]

Inherited from Parallelizable[Instruction, ParSeq[Instruction]]

Inherited from TraversableOnce[Instruction]

Inherited from GenTraversableOnce[Instruction]

Inherited from FilterMonadic[Instruction, Seq[Instruction]]

Inherited from HasNewBuilder[Instruction, Seq[Instruction]]

Inherited from PartialFunction[Int, Instruction]

Inherited from (Int) ⇒ Instruction

Inherited from ProgramPoint[BasicBlock]

Inherited from AnyRef

Inherited from Any