public abstract class SPInstruction extends Instruction
Modifier and Type | Class and Description |
---|---|
static class |
SPInstruction.SPType |
Instruction.IType
Modifier and Type | Field and Description |
---|---|
protected org.apache.sysml.runtime.matrix.operators.Operator |
_optr |
protected boolean |
_requiresLabelUpdate |
protected SPInstruction.SPType |
_sptype |
beginCol, beginLine, DATATYPE_PREFIX, endCol, endLine, filename, GPU_INST_PREFIX, instOpcode, INSTRUCTION_DELIM, instString, LITERAL_PREFIX, LOG, OPERAND_DELIM, SP_INST_PREFIX, type, VALUETYPE_PREFIX
Modifier | Constructor and Description |
---|---|
protected |
SPInstruction(SPInstruction.SPType type,
org.apache.sysml.runtime.matrix.operators.Operator op,
String opcode,
String istr) |
protected |
SPInstruction(SPInstruction.SPType type,
String opcode,
String istr) |
Modifier and Type | Method and Description |
---|---|
String |
getGraphString() |
SPInstruction.SPType |
getSPInstructionType() |
void |
postprocessInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
This method should be used for any tear down after executing this instruction.
|
Instruction |
preprocessInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
This method should be used for any setup before executing this instruction.
|
abstract void |
processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
This method should be used to execute the instruction.
|
boolean |
requiresLabelUpdate() |
getBeginColumn, getBeginLine, getEndColumn, getEndLine, getExtendedOpcode, getFilename, getInstID, getLineNum, getOpcode, getType, printMe, setInstID, setLocation, setLocation, setLocation, setLocation, setType, toString, updateInstructionThreadID
protected final SPInstruction.SPType _sptype
protected final org.apache.sysml.runtime.matrix.operators.Operator _optr
protected final boolean _requiresLabelUpdate
protected SPInstruction(SPInstruction.SPType type, String opcode, String istr)
protected SPInstruction(SPInstruction.SPType type, org.apache.sysml.runtime.matrix.operators.Operator op, String opcode, String istr)
public SPInstruction.SPType getSPInstructionType()
public boolean requiresLabelUpdate()
requiresLabelUpdate
in class Instruction
public String getGraphString()
getGraphString
in class Instruction
public Instruction preprocessInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec) throws DMLRuntimeException
Instruction
preprocessInstruction
in class Instruction
ec
- execution contextDMLRuntimeException
- if DMLRuntimeException occurspublic abstract void processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec) throws DMLRuntimeException
Instruction
processInstruction
in class Instruction
ec
- execution contextDMLRuntimeException
- if DMLRuntimeException occurspublic void postprocessInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec) throws DMLRuntimeException
Instruction
postprocessInstruction
in class Instruction
ec
- execution contextDMLRuntimeException
- if DMLRuntimeException occursCopyright © 2018 The Apache Software Foundation. All rights reserved.