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 5097 - (download) (annotate)
Mon Jul 17 14:06:14 2017 UTC (21 months ago) by jhr
File size: 803 byte(s)
  Implement "--D" compiler option (to help with debugging the generated
  code)
(* 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 : CmdLineConstants.t * 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.DEBUGGER => 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