Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/src/MLRISC/mltree/instr-gen.sml
ViewVC logotype

Annotation of /sml/trunk/src/MLRISC/mltree/instr-gen.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (view) (download)

1 : leunga 646 (*
2 :     * Generate a linear sequence of instructions
3 :     *)
4 :     functor InstrGen
5 :     (structure I : INSTRUCTIONS
6 :     structure Stream : INSTRUCTION_STREAM
7 :     ) : INSTR_GEN =
8 :     struct
9 :     structure C = I.C
10 :     structure I = I
11 :     structure S = Stream
12 :    
13 :     (* Pretty stupid, eh? *)
14 :     fun newStream(instrs) =
15 :     let fun emit i = instrs := i :: !instrs
16 :     fun can'tUse _ = MLRiscErrorMsg.error("InstrGen","unimplemented")
17 :     in Stream.STREAM
18 :     { beginCluster = can'tUse,
19 :     endCluster = can'tUse,
20 :     emit = emit,
21 :     pseudoOp = can'tUse,
22 :     defineLabel = can'tUse,
23 :     entryLabel = can'tUse,
24 :     comment = can'tUse,
25 :     annotation = can'tUse,
26 :     exitBlock = can'tUse,
27 :     alias = can'tUse,
28 :     phi = can'tUse
29 :     }
30 :     end
31 :    
32 :     end

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