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

SCM Repository

[diderot] View of /trunk/src/compiler/IL/gen/high-il.in
ViewVC logotype

View of /trunk/src/compiler/IL/gen/high-il.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 392 - (download) (annotate)
Thu Oct 14 15:34:28 2010 UTC (10 years, 9 months ago) by jhr
File size: 713 byte(s)
  Moving IL types out of the Op structures into their own per-IL structures.
(* high-il.sml
 *
 * COPYRIGHT (c) 2010 The Diderot Project (http://diderot.cs.uchicago.edu)
 * All rights reserved.
 *
 * High-level version of the Diderot IL.
 *
 * Note: this file is generated from gen/high-il.spec and gen/high-il.in.
 *)

structure HighOps =
  struct

    type ty = HighILTypes.ty

    val samety = HighILTypes.same
    val hashty = HighILTypes.hash
    val tyToString = HighILTypes.toString

  (* required helper functions for the string type *)
    fun samestring (s1 : string, s2) = (s1 = s2)
    val hashstring = HashString.hashString
    fun stringToString s = String.concat["\"", s, "\""]

@BODY@

  end

structure HighIL = SSAFn(
  structure Ty = HighILTypes
  structure Op = HighOps)

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