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

SCM Repository

[diderot] View of /branches/vis12/src/compiler/c-util/gen-inputs.sml
ViewVC logotype

View of /branches/vis12/src/compiler/c-util/gen-inputs.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1774 - (download) (annotate)
Sat Mar 31 17:32:46 2012 UTC (8 years, 6 months ago) by jhr
File size: 743 byte(s)
  Working on standalone executables
(* gen-inputs.sml
 *
 * COPYRIGHT (c) 2012 The Diderot Project (http://diderot-language.cs.uchicago.edu)
 * All rights reserved.
 *)

structure GenInputs : sig

    val genRegisterInputs : TargetUtil.target_desc * (TreeIL.Ty.ty * string) list -> CLang.decl

  end = struct

    structure CL = CLang
    structure N = CNames

    fun genRegisterInputs (tgt : TargetUtil.target_desc, inputs) = let
	  val prefix = #namespace tgt
	(* the world pointer type *)
	  val worldPtrTy = CL.T_Ptr(CL.T_Named(prefix ^ "World_t"))
	  in
	    CL.D_Func(
	      [], CL.voidTy, N.registerOpts,
	      [CL.PARAM([], worldPtrTy, "wrld"), CL.PARAM([], CL.T_Ptr(CL.T_Named N.optionsTy), "opts")],
(* FIXME: fill in the code! *)
	      CL.mkBlock[])
	  end

  end

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