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

SCM Repository

[smlnj] View of /MLRISC/trunk/emit/asmUtil.sml
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 545 - (download) (annotate)
Thu Feb 24 13:56:44 2000 UTC (19 years, 4 months ago) by george
Original Path: sml/trunk/src/MLRISC/emit/asmUtil.sml
File size: 420 byte(s)
  Changes to MLTREE
(*
 * This is a helper module for assemblers.
 *)
signature ASM_FORMAT_UTIL =
sig
   val reginfo : 
          (string -> unit) * (int -> int) * Annotations.annotations -> 
              (int -> unit)
end

structure AsmFormatUtil : ASM_FORMAT_UTIL =
struct

  fun reginfo(emit,regmap,an) =
      case #get MLRiscAnnotations.REGINFO an of
         SOME f => (fn r => emit(f(regmap, r)))
      |  NONE => (fn _ => ())

end

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