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, updateInstructionThreadIDprotected 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 Instructionpublic SPInstruction.SPType getSPInstructionType()
public boolean requiresLabelUpdate()
requiresLabelUpdate in class Instructionpublic String getGraphString()
getGraphString in class Instructionpublic Instruction preprocessInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
InstructionpreprocessInstruction in class Instructionec - execution contextpublic abstract void processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
InstructionprocessInstruction in class Instructionec - execution contextpublic void postprocessInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
InstructionpostprocessInstruction in class Instructionec - execution contextCopyright © 2018 The Apache Software Foundation. All rights reserved.