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

SCM Repository

[diderot] View of /branches/vis12-cl/src/compiler/IL/exit-kind.sml
ViewVC logotype

View of /branches/vis12-cl/src/compiler/IL/exit-kind.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2825 - (download) (annotate)
Mon Nov 10 21:06:31 2014 UTC (4 years, 10 months ago) by jhr
File size: 1083 byte(s)
  porting bug fixes from vis12 branch
(* exit-kind.sml
 *
 * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
 * All rights reserved.
 *
 * The CFG representation has different kinds of exits, depending on the
 * context and operation.
 *)

structure ExitKind =
  struct

    datatype kind
      = FRAGMENT                (* exit node in a CFG fragment that is going to be embedded in *)
                                (* other code *)
      | SINIT                   (* strand initialization *)
      | 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 FRAGMENT = "FRAGMENT"
      | toString SINIT = "SINIT"
      | toString RETURN = "RETURN"
      | toString ACTIVE = "ACTIVE"
      | toString STABILIZE = "STABILIZE"
      | toString DIE = "DIE"
      | toString UNREACHABLE = "DIE"

  end

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