Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis15/src/compiler/cfg-ir/exit-kind.sml
ViewVC logotype

View of /branches/vis15/src/compiler/cfg-ir/exit-kind.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3505 - (download) (annotate)
Fri Dec 18 02:47:03 2015 UTC (4 years, 1 month ago) by jhr
File size: 865 byte(s)
working on merge
(* exit-kind.sml
 *
 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
 *
 * COPYRIGHT (c) 2015 The University of Chicago
 * All rights reserved.
 *
 * The CFG representation has different kinds of exits, depending on the
 * context and operation.
 *)

structure ExitKind =
  struct

    datatype kind
      = RETURN                  (* return from function/method *)
      | ACTIVE                  (* normal return from update method *)
      | STABILIZE               (* stabilize in update method *)
      | DIE                     (* die in update method *)
      | UNREACHABLE             (* dummy exit node that is unreachable *)

    fun toString RETURN = "RETURN"
      | toString ACTIVE = "ACTIVE"
      | toString STABILIZE = "STABILIZE"
      | toString DIE = "DIE"
      | toString UNREACHABLE = "UNREACHABLE"

  end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0