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 3863 - (download) (annotate)
Sun May 15 17:18:04 2016 UTC (3 years ago) by jhr
File size: 813 byte(s)
  working on merge
(* 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

  (* dummy target info *)
    fun info (tgt : TargetOptions.t) = {
	    layout = if (#scalar tgt)
		then DefaultLayout.scalar
		else DefaultLayout.layout (DefaultLayout.gccVectorSizes (#double tgt)),
	    isInline =
	       fn LowOps.EigenVecs2x2 => false
		| LowOps.EigenVecs3x3 => false
		| LowOps.EigenVals2x2 => false
		| LowOps.EigenVals3x3 => false
		| _ => true
	  }

    fun get (tgt : TargetOptions.t) = {
	    info = info tgt,
	    generate = fn _ => ()
	  }

  end

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