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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3349 - (view) (download)

1 : jhr 567 (* exit-kind.sml
2 :     *
3 : jhr 3349 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
4 :     *
5 :     * COPYRIGHT (c) 2015 The University of Chicago
6 : jhr 567 * All rights reserved.
7 :     *
8 :     * The CFG representation has different kinds of exits, depending on the
9 :     * context and operation.
10 :     *)
11 :    
12 :     structure ExitKind =
13 :     struct
14 :    
15 :     datatype kind
16 : jhr 624 = FRAGMENT (* exit node in a CFG fragment that is going to be embedded in *)
17 :     (* other code *)
18 : jhr 1157 | SINIT (* strand initialization *)
19 : jhr 624 | RETURN (* return from function/method *)
20 : jhr 567 | ACTIVE (* normal return from update method *)
21 :     | STABILIZE (* stabilize in update method *)
22 :     | DIE (* die in update method *)
23 :    
24 : jhr 624 fun toString FRAGMENT = "FRAGMENT"
25 : jhr 1157 | toString SINIT = "SINIT"
26 : jhr 624 | toString RETURN = "RETURN"
27 : jhr 567 | toString ACTIVE = "ACTIVE"
28 :     | toString STABILIZE = "STABILIZE"
29 :     | toString DIE = "DIE"
30 :    
31 :     end

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