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

SCM Repository

[diderot] View of /branches/vis15/src/compiler/codegen/pseudo-vars.sml
ViewVC logotype

View of /branches/vis15/src/compiler/codegen/pseudo-vars.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3873 - (download) (annotate)
Wed May 18 13:38:23 2016 UTC (3 years, 1 month ago) by jhr
File size: 644 byte(s)
working on merge
(* pseudo-vars.sml
 *
 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
 *
 * COPYRIGHT (c) 2016 The University of Chicago
 * All rights reserved.
 *)

structure PseudoVars =
  struct

  (* TreeIR "variables" that are used to get the names needed to access the
   * global and strand state variables.  These are just used as keys to lookup
   * the C names in the environment, so their type is irrelevant.
   *)
    local
      fun new name = TreeVar.new (name, TreeTypes.IntTy)
    in
    val selfIn = new "$selfIn"
    val selfOut = new "$selfOut"
    val global = new "$global"
    end (* local *)

  end

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