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/x86/instructions/x86ExpandCopies.sml
ViewVC logotype

View of /sml/trunk/src/MLRISC/x86/instructions/x86ExpandCopies.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 796 - (download) (annotate)
Tue Mar 6 00:04:33 2001 UTC (18 years, 7 months ago) by leunga
File size: 539 byte(s)

   Support for alternative control-flow, exception handlers added.
(*
 * Expand copies 
 *
 * -- Allen
 *)
functor X86ExpandCopies(X86Shuffle : X86SHUFFLE) : EXPAND_COPIES =
struct

   structure I = X86Shuffle.I

   fun expandCopies(I.COPY{dst, src, tmp}) = 
         X86Shuffle.shuffle{tmp=tmp, dst=dst, src=src}
     | expandCopies(I.FCOPY{dst, src, tmp}) = 
         X86Shuffle.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