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

SCM Repository

[diderot] View of /trunk/src/compiler/driver/backend.sml
ViewVC logotype

View of /trunk/src/compiler/driver/backend.sml

Parent Directory Parent Directory | Revision Log Revision Log

Revision 1232 - (download) (annotate)
Mon May 16 23:37:52 2011 UTC (9 years ago) by jhr
File size: 727 byte(s)
  Porting many changes from the pure-cfg branch, including value numbering
  and support for parallel execution on SMP systems.
(* backend.sml
 * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
 * All rights reserved.

structure BackEnd : sig

    val generate : TargetUtil.target_desc -> string * LowIL.program -> unit

  end = struct

    fun pickBackend target = (case target
	   of TargetUtil.TARGET_C => CBackEnd.generate
	    | TargetUtil.TARGET_CL => raise Fail "OpenCL not supported yet"
	    | TargetUtil.TARGET_CUDA => raise Fail "CUDA not supported yet"
	  (* end case *))

    fun generate {target, parallel, double, debug} = let
	  val gen = pickBackend target
	    fn (basename, prog) => gen {
		basename=basename, double=double, parallel=parallel, debug=debug, prog=prog


ViewVC Help
Powered by ViewVC 1.0.0