Class PrimitiveInfo
- java.lang.Object
-
- ru.ispras.microtesk.translator.nml.ir.primitive.PrimitiveInfo
-
public final class PrimitiveInfo extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PrimitiveInfo()
PrimitiveInfo(PrimitiveInfo other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canThrowException()
ArgumentMode
getArgUsage(java.lang.String name)
java.lang.Object
getAttribute(java.lang.Class<?> attributeClass)
int
getBlockSize()
ru.ispras.fortress.expression.Node
getConditionForBranch()
Returns the branch condition for the branch instruction.boolean
isBranch()
boolean
isConditionalBranch()
boolean
isLoad()
boolean
isMemoryReference()
boolean
isStore()
void
setArgUsage(java.lang.String name, ArgumentMode usage)
void
setAttribute(java.lang.Object attribute)
void
setBlockSize(int value)
void
setBranch(boolean value)
void
setCanThrowException(boolean value)
void
setConditionalBranch(boolean value)
void
setConditionForBranch(ru.ispras.fortress.expression.Node value)
Sets the branch condition for the branch instruction.void
setLoad(boolean value)
void
setMemoryReference(boolean value)
void
setStore(boolean value)
java.lang.String
toString()
-
-
-
Constructor Detail
-
PrimitiveInfo
public PrimitiveInfo()
-
PrimitiveInfo
public PrimitiveInfo(PrimitiveInfo other)
-
-
Method Detail
-
canThrowException
public boolean canThrowException()
-
setCanThrowException
public void setCanThrowException(boolean value)
-
isBranch
public boolean isBranch()
-
setBranch
public void setBranch(boolean value)
-
isConditionalBranch
public boolean isConditionalBranch()
-
setConditionalBranch
public void setConditionalBranch(boolean value)
-
setConditionForBranch
public void setConditionForBranch(ru.ispras.fortress.expression.Node value)
Sets the branch condition for the branch instruction.- Parameters:
value
-Node
where the branch condition and the operands are located.
-
getConditionForBranch
public ru.ispras.fortress.expression.Node getConditionForBranch()
Returns the branch condition for the branch instruction.- Returns:
Node
where the branch condition and the operands are located.
-
isMemoryReference
public boolean isMemoryReference()
-
setMemoryReference
public void setMemoryReference(boolean value)
-
isLoad
public boolean isLoad()
-
setLoad
public void setLoad(boolean value)
-
isStore
public boolean isStore()
-
setStore
public void setStore(boolean value)
-
getBlockSize
public int getBlockSize()
-
setBlockSize
public void setBlockSize(int value)
-
getArgUsage
public ArgumentMode getArgUsage(java.lang.String name)
-
setArgUsage
public void setArgUsage(java.lang.String name, ArgumentMode usage)
-
setAttribute
public void setAttribute(java.lang.Object attribute)
-
getAttribute
public java.lang.Object getAttribute(java.lang.Class<?> attributeClass)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-