public class UnaryOperatorNode extends LoadNode
vresult = <op>(v)
| Modifier and Type | Class and Description |
|---|---|
static class |
UnaryOperatorNode.Op
The different kinds of unary operators.
|
EXCEPTION_REG, FIRST_ORDINARY_REG, NO_VALUE, RETURN_REG| Constructor and Description |
|---|
UnaryOperatorNode(UnaryOperatorNode.Op op,
int arg_reg,
int result_reg,
SourceLocation location)
Constructs a new unary operator node.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canThrowExceptions()
Returns true if this node may throw exceptions.
|
void |
check(BasicBlock b)
Perform a consistency check of this node.
|
int |
getArgRegister()
Returns the argument register.
|
UnaryOperatorNode.Op |
getOperator()
Returns the operator.
|
void |
setArgRegister(int arg_reg)
Sets the argument register.
|
java.lang.String |
toString()
Returns a string description of this node.
|
void |
visitBy(NodeVisitor v)
Visits this node with the given visitor.
|
getResultRegisterclone, getBlock, getDuplicateOf, getImplicitAfterCall, getIndex, getSourceLocation, getThisOrDuplicateOf, isArtificial, isRegistersDone, setArtificial, setBlock, setDuplicateOf, setImplicitAfterCall, setIndex, setRegistersDone, setSourceLocationpublic UnaryOperatorNode(UnaryOperatorNode.Op op, int arg_reg, int result_reg, SourceLocation location)
op - The unary operator.arg_reg - The register for the argument.result_reg - The register for the result.location - The source location.public boolean canThrowExceptions()
AbstractNodecanThrowExceptions in class AbstractNodepublic void check(BasicBlock b)
AbstractNodecheck in class AbstractNodeb - basic block containing this nodepublic int getArgRegister()
public UnaryOperatorNode.Op getOperator()
public void setArgRegister(int arg_reg)
public java.lang.String toString()
AbstractNodetoString in class AbstractNodepublic void visitBy(NodeVisitor v)
NodeCopyright © 2009-2019 Aarhus University