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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3349 - (download) (annotate)
Tue Oct 27 15:16:36 2015 UTC (4 years, 9 months ago) by jhr
File size: 906 byte(s)
making copyrights consistent for all code in the repository
(* 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
      = 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