public abstract class CPInstruction extends Instruction
Modifier and Type | Class and Description |
---|---|
static class |
CPInstruction.CPType |
Instruction.IType
DATATYPE_PREFIX, FEDERATED_INST_PREFIX, GPU_INST_PREFIX, INSTRUCTION_DELIM, LITERAL_PREFIX, OPERAND_DELIM, SP_INST_PREFIX, VALUETYPE_PREFIX
Modifier and Type | Method and Description |
---|---|
CPInstruction.CPType |
getCPInstructionType() |
String |
getGraphString() |
Instruction.IType |
getType() |
Instruction |
preprocessInstruction(ExecutionContext ec)
This method should be used for any setup before executing this instruction.
|
abstract void |
processInstruction(ExecutionContext ec)
This method should be used to execute the instruction.
|
boolean |
requiresLabelUpdate() |
static String |
updateLabels(String instList,
LocalVariableMap labelValueMapping)
Takes a delimited string of instructions, and replaces ALL placeholder labels
(such as ##mVar2## and ##Var5##) in ALL instructions.
|
getBeginColumn, getBeginLine, getEndColumn, getEndLine, getExtendedOpcode, getFilename, getInstID, getInstructionString, getLineNum, getOpcode, getOperator, getPrivacyConstraint, postprocessInstruction, printMe, setInstID, setLocation, setLocation, setLocation, setLocation, setPrivacyConstraint, setPrivacyConstraint, toString, updateInstructionThreadID
public Instruction.IType getType()
getType
in class Instruction
public CPInstruction.CPType getCPInstructionType()
public boolean requiresLabelUpdate()
requiresLabelUpdate
in class Instruction
public String getGraphString()
getGraphString
in class Instruction
public Instruction preprocessInstruction(ExecutionContext ec)
Instruction
preprocessInstruction
in class Instruction
ec
- execution contextpublic abstract void processInstruction(ExecutionContext ec)
Instruction
processInstruction
in class Instruction
ec
- execution contextpublic static String updateLabels(String instList, LocalVariableMap labelValueMapping)
instList
- instruction list as stringlabelValueMapping
- local variable mapCopyright © 2020 The Apache Software Foundation. All rights reserved.