All Packages Class Hierarchy This Package Previous Next Index
Class harpoon.IR.Bytecode.InMerge
java.lang.Object
|
+----harpoon.IR.Bytecode.Instr
|
+----harpoon.IR.Bytecode.InMerge
- public class InMerge
- extends Instr
InMerge
is used to represent a node where
multiple control flows merge. These are typically branch targets.
An InMerge
will have exactly one successor, and
multiple predecessors.
- Version:
- $Id: InMerge.java,v 1.2 1998/10/11 03:01:16 cananian Exp $
- Author:
- C. Scott Ananian
- See Also:
- Instr
-
InMerge(String, int, int)
- Creates a new
InMerge
.
-
arity()
- Return the number of predecessors of this node.
-
getOpcode()
- Return the java bytecode of this instruction.
-
toString()
- Return human-readable representation.
InMerge
public InMerge(String sourcefile,
int linenumber,
int arity)
- Creates a new
InMerge
.
- Parameters:
- arity - the number of predecessors this node will have.
arity
public int arity()
- Return the number of predecessors of this node.
Exactly equivalent to
prev().length
but slightly
more efficient.
getOpcode
public byte getOpcode()
- Return the java bytecode of this instruction.
This function is required by the superclass, but not relevant
to this function. It returns
Op.NOP
.
- Overrides:
- getOpcode in class Instr
toString
public String toString()
- Return human-readable representation.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index