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

SCM Repository

[diderot] View of /branches/charisee/src/compiler/mid-to-low/mid-to-low.sml
ViewVC logotype

View of /branches/charisee/src/compiler/mid-to-low/mid-to-low.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 345 - (download) (annotate)
Mon Sep 20 19:22:51 2010 UTC (9 years ago) by lamonts
Original Path: trunk/src/compiler/mid-to-low/mid-to-low.sml
File size: 899 byte(s)
adding the translate directory for mid-to-low il
(* mid-to-low.sml
 *
 * COPYRIGHT (c) 2010 The Diderot Project (http://diderot.cs.uchicago.edu)
 * All rights reserved.
 *
 * Translation from MidIL to LowIL representations.
 *)

structure MidToLow : sig

    val translate : HighIL.program -> MidIL.program

  	end = struct

    structure SrcIL = MidIL
    structure SrcOp = MidOps
    structure DstIL = LowIL
    structure DstOp = LowOps
    structure VMap = SrcIL.Var.Map

    fun lookupVar (env, x) = (case VMap.find(env, x)
	   of SOME x' => x'
	    | NONE => raise Fail("unknown variable "^SrcIL.Var.toString x)
	  (* end case *))
	  
	
	fun lookup

  (* expand the EvalKernel operations into vector operations *)
    fun expandKernel (dimSize,kern,k,vec) = 
    
    
    
  (* compute the load address for a given set of voxels indices *) 
    fun computeVoxelAddress (info,vec) = 
   
   

    fun translate prog = raise Fail "FIXME"

  end

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