public class CopyInstr extends OneOperandResultBaseInstr implements FixedArityInstr
result
EMPTY_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,
java.util.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) |
getOperand1, getOperands, setOperand, setOperand1
getResult, updateResult
canBeDeletedFromScope, canRaiseException, cloneOperands, computeScopeFlags, dumpableFields, getOperation, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, isDeletable, markDead, renameVars, simplifyOperands, toString, toStringNonOperandArgs, transfersControl
public Operand getSource()
public Operand simplifyAndGetResult(IRScope scope, java.util.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-2018 JRuby. All Rights Reserved.