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

SCM Repository

[diderot] View of /branches/vis15/src/compiler/driver/targets.sml
ViewVC logotype

View of /branches/vis15/src/compiler/driver/targets.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3937 - (download) (annotate)
Mon Jun 6 13:16:10 2016 UTC (2 years, 11 months ago) by jhr
File size: 665 byte(s)
  Working on merge: FIXMEs
(* targets.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 Targets : sig

    val get : TargetOptions.t -> {
	    info : TreeIR.target_info,
	    generate : TreeIR.program -> unit
	  }

  end = struct

    fun get (tgt : TargetOptions.t) = (case #platform tgt
	   of TargetOptions.SEQUENTIAL => TargetCPU.target tgt
	    | TargetOptions.PARALLEL => TargetCPU.target tgt
	    | TargetOptions.OPENCL => raise Fail "OpenCL not supported yet"
	    | TargetOptions.CUDA => raise Fail "CUDA not supported yet"
	  (* end case *))

  end

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