public static Value Undefined(SSAType type) { if (type.kind == TypeKind.Integer) { var result = new ConstInt(type, 0); result.flags |= SSAFlags.undef; return(result); } else if (type.kind == TypeKind.Float || type.kind == TypeKind.Double) { var result = new ConstReal(type, 0); result.flags |= SSAFlags.undef; return(result); } else if (type.kind == TypeKind.Pointer) { var result = new ConstPtr(type, 0); result.flags |= SSAFlags.undef; return(result); } Debug.Assert(false); return(null); }
public void Visit(ConstInt constInt) { }
public void Visit(ConstInt constInt) { result.Push(BuiltIns.Int); }
public void Visit(ConstInt constInt) { result.Push(constInt); }