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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1685 - (download) (annotate)
Sun Jan 22 15:23:36 2012 UTC (7 years, 8 months ago) by jhr
File size: 853 byte(s)
  Create a branch to implement things that we need for the Vis 2012 paper
(* 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 *)

    fun toString FRAGMENT = "FRAGMENT"
      | toString SINIT = "SINIT"
      | toString RETURN = "RETURN"
      | toString ACTIVE = "ACTIVE"
      | toString STABILIZE = "STABILIZE"
      | toString DIE = "DIE"

  end

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