public class CopyInstr extends ResultBaseInstr implements FixedArityInstr
result
EMPTY_OPERANDS, operands
Constructor and Description |
---|
CopyInstr(Operation op,
Variable result,
Operand source) |
CopyInstr(Variable result,
Operand source) |
Modifier and Type | Method and Description |
---|---|
Instr |
clone(CloneInfo ii)
Clone the instruction for use in an inlining context (either when a scope is inlined into
another scope, or when a block has to be cloned because its associated call belongs to
an inlined scope).
|
static CopyInstr |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
Operand |
getSource() |
Operand |
simplifyAndGetResult(IRScope scope,
Map<Operand,Operand> valueMap)
This method takes as input a map of operands to their values, and outputs
the result of this instruction.
|
void |
visit(IRVisitor visitor) |
getResult, updateResult
canBeDeleted, canRaiseException, cloneOperands, computeScopeFlags, getIPC, getOperands, getOperation, getRPC, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, markDead, renameVars, setIPC, setRPC, simplifyOperands, toString, toStringNonOperandArgs, transfersControl
public Operand getSource()
public Operand simplifyAndGetResult(IRScope scope, Map<Operand,Operand> valueMap)
Instr
simplifyAndGetResult
in class Instr
scope
- where this instr existsvalueMap
- Mapping from operands to their simplified valuespublic Instr clone(CloneInfo ii)
Instr
public static CopyInstr decode(IRReaderDecoder d)
public void encode(IRWriterEncoder e)
encode
in class ResultBaseInstr
Copyright © 2001-2015 JRuby. All Rights Reserved.