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, 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() |
Instruction.IType |
getType() |
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, printMe, setInstID, setLocation, setLocation, setLocation, setLocation, 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 Instruction.IType getType()
getType
in class Instruction
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)
Instruction
preprocessInstruction
in class Instruction
ec
- execution contextpublic abstract void processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
Instruction
processInstruction
in class Instruction
ec
- execution contextpublic void postprocessInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
Instruction
postprocessInstruction
in class Instruction
ec
- execution contextCopyright © 2018 The Apache Software Foundation. All rights reserved.