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

SCM Repository

[diderot] Annotation of /trunk/src/compiler/mid-to-low/mid-to-low.sml
ViewVC logotype

Annotation of /trunk/src/compiler/mid-to-low/mid-to-low.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 345 - (view) (download)

1 : lamonts 345 (* mid-to-low.sml
2 :     *
3 :     * COPYRIGHT (c) 2010 The Diderot Project (http://diderot.cs.uchicago.edu)
4 :     * All rights reserved.
5 :     *
6 :     * Translation from MidIL to LowIL representations.
7 :     *)
8 :    
9 :     structure MidToLow : sig
10 :    
11 :     val translate : HighIL.program -> MidIL.program
12 :    
13 :     end = struct
14 :    
15 :     structure SrcIL = MidIL
16 :     structure SrcOp = MidOps
17 :     structure DstIL = LowIL
18 :     structure DstOp = LowOps
19 :     structure VMap = SrcIL.Var.Map
20 :    
21 :     fun lookupVar (env, x) = (case VMap.find(env, x)
22 :     of SOME x' => x'
23 :     | NONE => raise Fail("unknown variable "^SrcIL.Var.toString x)
24 :     (* end case *))
25 :    
26 :    
27 :     fun lookup
28 :    
29 :     (* expand the EvalKernel operations into vector operations *)
30 :     fun expandKernel (dimSize,kern,k,vec) =
31 :    
32 :    
33 :    
34 :     (* compute the load address for a given set of voxels indices *)
35 :     fun computeVoxelAddress (info,vec) =
36 :    
37 :    
38 :    
39 :     fun translate prog = raise Fail "FIXME"
40 :    
41 :     end

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