public class LoadConstInst extends LoadInst
Modifier and Type | Field and Description |
---|---|
static int |
BOOL
Boolean constant ID
|
static int |
INT
Integer constant ID
|
static int |
NULL
Null constant ID
|
static int |
STR
String constant ID
|
destination, source
Constructor and Description |
---|
LoadConstInst(java.lang.String destination,
java.lang.String source)
LoadConstInst constructor
|
Modifier and Type | Method and Description |
---|---|
<ReturnType,ArgumentType> |
accept(TACInstVisitor<ReturnType,ArgumentType> visitor,
ArgumentType o)
Abstract visitor method.
|
int |
getType()
Get the type of the constant (e.g., LoadConstInst.INT)
|
void |
setSource(java.lang.String source)
Set the source operand
|
equals, getDestination, getSource, getString, setDestination
addComment, checkBoolConst, checkConst, checkIntConst, checkLabel, checkStrConst, checkVar, getBinaryOpcode, getComments, getOp, getOpcode, getUnaryOpcode, isBinary, isCall, isIf, isLoad, isParam, isPhi, isReturn, isStore, isUnary, isValidID, removeComments, toString
public static final int INT
public static final int BOOL
public static final int STR
public static final int NULL
public LoadConstInst(java.lang.String destination, java.lang.String source)
destination
- destination variablesource
- source constant (int, boolean, String, or null -- String
needs double quotes)public int getType()
public void setSource(java.lang.String source)
public <ReturnType,ArgumentType> ReturnType accept(TACInstVisitor<ReturnType,ArgumentType> visitor, ArgumentType o)
TACInst