public abstract class Instruction extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Instruction.IType |
Modifier and Type | Field and Description |
---|---|
static String |
DATATYPE_PREFIX |
static String |
FEDERATED_INST_PREFIX |
static String |
GPU_INST_PREFIX |
static String |
INSTRUCTION_DELIM |
static String |
LITERAL_PREFIX |
static String |
OPERAND_DELIM |
static String |
SP_INST_PREFIX |
static String |
VALUETYPE_PREFIX |
Modifier and Type | Method and Description |
---|---|
int |
getBeginColumn() |
int |
getBeginLine() |
int |
getEndColumn() |
int |
getEndLine() |
String |
getExtendedOpcode() |
String |
getFilename() |
String |
getGraphString() |
long |
getInstID()
Getter for instruction unique identifier
|
String |
getInstructionString() |
int |
getLineNum()
Getter for instruction line number
|
String |
getOpcode() |
Operator |
getOperator() |
PrivacyConstraint |
getPrivacyConstraint() |
abstract Instruction.IType |
getType() |
void |
postprocessInstruction(ExecutionContext ec)
This method should be used for any tear down after executing this instruction.
|
Instruction |
preprocessInstruction(ExecutionContext ec)
This method should be used for any setup before executing this instruction.
|
void |
printMe() |
abstract void |
processInstruction(ExecutionContext ec)
This method should be used to execute the instruction.
|
boolean |
requiresLabelUpdate() |
void |
setInstID(long id)
Setter for instruction unique identifier
|
void |
setLocation(DataIdentifier id) |
void |
setLocation(Instruction oldInst) |
void |
setLocation(Lop lop) |
void |
setLocation(String filename,
int beginLine,
int endLine,
int beginCol,
int endCol) |
void |
setPrivacyConstraint(Lop lop) |
void |
setPrivacyConstraint(PrivacyConstraint pc) |
String |
toString() |
void |
updateInstructionThreadID(String pattern,
String replace)
All instructions that have thread-specific filenames or names encoded in it
should overwrite this method in order to update (1) the in-memory instruction
and (2) the instruction string
|
public static final String OPERAND_DELIM
public static final String DATATYPE_PREFIX
public static final String VALUETYPE_PREFIX
public static final String LITERAL_PREFIX
public static final String INSTRUCTION_DELIM
public static final String SP_INST_PREFIX
public static final String GPU_INST_PREFIX
public static final String FEDERATED_INST_PREFIX
public String getFilename()
public int getBeginLine()
public int getEndLine()
public int getBeginColumn()
public int getEndColumn()
public abstract Instruction.IType getType()
public void setLocation(String filename, int beginLine, int endLine, int beginCol, int endCol)
public void setLocation(Lop lop)
public void setLocation(DataIdentifier id)
public void setLocation(Instruction oldInst)
public void setPrivacyConstraint(Lop lop)
public void setPrivacyConstraint(PrivacyConstraint pc)
public PrivacyConstraint getPrivacyConstraint()
public Operator getOperator()
public int getLineNum()
public void setInstID(long id)
id
- Instruction unique identifierpublic long getInstID()
public void printMe()
public String getInstructionString()
public String getGraphString()
public String getOpcode()
public String getExtendedOpcode()
public boolean requiresLabelUpdate()
public void updateInstructionThreadID(String pattern, String replace)
pattern
- ?replace
- ?public Instruction preprocessInstruction(ExecutionContext ec)
ec
- execution contextpublic abstract void processInstruction(ExecutionContext ec)
ec
- execution contextpublic void postprocessInstruction(ExecutionContext ec)
ec
- execution contextCopyright © 2020 The Apache Software Foundation. All rights reserved.