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 /MLRISC/trunk/emit/asmUtil.sml
ViewVC logotype

Annotation of /MLRISC/trunk/emit/asmUtil.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 427 - (view) (download)
Original Path: sml/trunk/src/MLRISC/emit/asmUtil.sml

1 : monnier 427 (*
2 :     * This is a helper module for assemblers.
3 :     *)
4 :     signature ASM_FORMAT_UTIL =
5 :     sig
6 :     val reginfo : (string -> unit) * Annotations.annotations -> (int -> unit)
7 :     end
8 :    
9 :     structure AsmFormatUtil : ASM_FORMAT_UTIL =
10 :     struct
11 :    
12 :     fun reginfo(emit,an) =
13 :     let fun find [] = (fn _ => ())
14 :     | find(BasicAnnotations.REGINFO f::_) = (fn r => emit(f r))
15 :     | find(_::an) = find an
16 :     in find an end
17 :    
18 :     end

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