edu.toronto.cs.expr
Class CILFunctionDefOp
java.lang.Object
edu.toronto.cs.expr.NamedOp
edu.toronto.cs.expr.CILFunctionDefOp
- All Implemented Interfaces:
- Operator
public class CILFunctionDefOp
- extends NamedOp
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FUNCTION_DEF
public static final CILFunctionDefOp FUNCTION_DEF
getReturnType
public static Expr getReturnType(Expr e)
getFunctionName
public static java.lang.String getFunctionName(Expr e)
getFunctionNameFromSig
public static java.lang.String getFunctionNameFromSig(Expr e)
getParameterDecls
public static Expr getParameterDecls(Expr e)
hasParameters
public static boolean hasParameters(Expr e)
- Parameters:
e
- a FUNCTION_DEF Expr
- Returns:
- true if the function has parameters (other than void)
getParameterNames
public static Expr getParameterNames(Expr e)
getLocalDecls
public static Expr getLocalDecls(Expr e)
getBody
public static Expr getBody(Expr e)
getNumCallSites
public static int getNumCallSites(Expr e)
isNonVoid
public static boolean isNonVoid(Expr e)