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

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/tree-ir/tree-ir.sml
ViewVC logotype

Diff of /branches/vis15/src/compiler/tree-ir/tree-ir.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3691, Fri Mar 18 20:58:57 2016 UTC revision 3767, Mon Apr 18 18:42:10 2016 UTC
# Line 12  Line 12 
12  structure TreeIR =  structure TreeIR =
13    struct    struct
14    
15      structure Op = LowOps      structure Op = TreeOps
16      structure Ty = LowTypes      structure Ty = TreeTypes
17    
18      datatype program = Program of {      datatype program = Program of {
19          props : Properties.t list,          props : Properties.t list,
# Line 49  Line 49 
49    
50      and stm      and stm
51        = S_Comment of string list        = S_Comment of string list
52        | S_Assign of var list * exp        | S_Unpack of var list * exp      (* unpack vector pieces into local variables *)
53          | S_Assign of var * exp
54        | S_GAssign of global_var * exp        | S_GAssign of global_var * exp
55        | S_IfThen of exp * block        | S_IfThen of exp * block
56        | S_IfThenElse of exp * block * block        | S_IfThenElse of exp * block * block
57        | S_Foreach of var * exp * block        | S_Foreach of var * exp * block
58      (* special Diderot forms *)      (* special Diderot forms *)
59        | S_LoadNrrd of var * Ty.ty * string        | S_LoadNrrd of var * string
60        | S_Input of global_var * string * string option * exp option (* get input *)        | S_Input of global_var * string * string option * exp option (* get input *)
61        | S_InputNrrd of global_var * string * string option * string option (* get image/seq input *)        | S_InputNrrd of global_var * string * string option * string option (* get image/seq input *)
62        | S_New of Atom.atom * exp list   (* new strand creation *)        | S_New of Atom.atom * exp list   (* new strand creation *)
63        | S_Save of state_var list * exp  (* save strand state *)        | S_Save of state_var * exp  (* save strand state *)
64        | S_Exit of exp list        | S_Exit of exp list
65      (* return functions for methods *)      (* return functions for methods *)
66        | S_Active        | S_Active
# Line 72  Line 73 
73        | E_Var of var        | E_Var of var
74        | E_Lit of Literal.t        | E_Lit of Literal.t
75        | E_Op of Op.rator * exp list        | E_Op of Op.rator * exp list
76        | E_Cons of Ty.ty * exp list        | E_Cons of exp list * Ty.ty
77        | E_Seq of Ty.ty * exp list        | E_Seq of exp list * Ty.ty
78          | E_Pack of exp list              (* pack vector pieces into composite vector value *)
79    
80      and global_var = GV of {      and global_var = GV of {
81          name : string,          (* name (should be unique) *)          name : string,          (* name (should be unique) *)
# Line 129  Line 131 
131          val toString : var -> string          val toString : var -> string
132          val ty : var -> Ty.ty          val ty : var -> Ty.ty
133    
134            structure Set : ORD_SET where type Key.ord_key = var
135          structure Map : ORD_MAP where type Key.ord_key = var          structure Map : ORD_MAP where type Key.ord_key = var
136    
137        end = struct        end = struct
# Line 147  Line 150 
150                fun compare (V{id=a, ...}, V{id=b, ...}) = Stamp.compare(a, b)                fun compare (V{id=a, ...}, V{id=b, ...}) = Stamp.compare(a, b)
151              end              end
152          in          in
153            structure Set = RedBlackSetFn (VarOrd)
154          structure Map = RedBlackMapFn (VarOrd)          structure Map = RedBlackMapFn (VarOrd)
155          end (* local *)          end (* local *)
156        end        end

Legend:
Removed from v.3691  
changed lines
  Added in v.3767

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