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 /sml/trunk/src/MLRISC/sparc/instructions/sparcExpandCopies.sml
ViewVC logotype

View of /sml/trunk/src/MLRISC/sparc/instructions/sparcExpandCopies.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 796 - (download) (annotate)
Tue Mar 6 00:04:33 2001 UTC (20 years ago) by leunga
File size: 561 byte(s)

   Support for alternative control-flow, exception handlers added.
(*
 * Expand copies 
 *
 * -- Allen
 *)
functor SparcExpandCopies(SparcShuffle : SPARCSHUFFLE) : EXPAND_COPIES =
struct

   structure I = SparcShuffle.I

   fun expandCopies(I.COPY{dst, src, tmp, ...}) = 
         SparcShuffle.shuffle{tmp=tmp, dst=dst, src=src}
     | expandCopies(I.FCOPY{dst, src, tmp, ...}) = 
         SparcShuffle.shufflefp{tmp=tmp, dst=dst, src=src}
     | expandCopies(I.ANNOTATION{i,a}) = 
         (case expandCopies i of
           []    => []
         | i::is => I.ANNOTATION{i=i,a=a}::is
         )
     | expandCopies i = [i]

end

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