public void encode(IRWriterEncoder e) { e.encode(getOperandType().getCoded()); }
public void encode(IRWriterEncoder e) { e.encode(getOperandType().getCoded()); }
@Override public void visit(Operand operand) { // Handle variables separately if (operand instanceof LocalVariable) { printAnsiOp(VARIABLE_COLOR, "*", operand); } else if (operand instanceof TemporaryVariable) { printAnsiOp(VARIABLE_COLOR, operand); } else { // Other operand forms need type identification printAnsi(OPERAND_COLOR, operand.getOperandType().shortName() + "<"); operand.visit(this); printAnsi(OPERAND_COLOR, ">"); } }
@Override public void visit(Operand operand) { // Handle variables separately if (operand instanceof LocalVariable) { printAnsiOp(VARIABLE_COLOR, "*", operand); } else if (operand instanceof TemporaryVariable) { printAnsiOp(VARIABLE_COLOR, operand); } else { // Other operand forms need type identification printAnsi(OPERAND_COLOR, operand.getOperandType().shortName() + "<"); operand.visit(this); printAnsi(OPERAND_COLOR, ">"); } }